Bug in GPC?!

Sat, 29 Mar 1997 14:08:43 +0100


Hi all,

I'm writing a somewhat larger Program accessing a mysql-Database.
via a C-Library.

Config: Linux 2.0.29, gpc-2.0 linux-elf latest binary release...

It contains some Records with Pointers to them and an TSQL-Object.
And everthing works fine and sizeof(TSQL) is 368 or so (probably correct).

Now I want to insert another Object Type, say TResult. Just declared the
Object Type like this:

{-----------------------------}
Type TResult = object
		 k:PChar;
             procedure init;
           end;
{-----------------------------}

Thus some strange SIGSEGV's occur running the program. I inserted
WriteLn(SizeOf(TSQL)) which now returns 1.

Remember: I didn't access anything new. I really only DECLARED that new 
type. I tried to track down the Problem to only a few lines of code, but everything runs fine. 

So now i'm a little bit braindead, i didn't find not even a workaraound
(Coding the same without Objects works by now, but I really want to have 
these objects for oversight and portability reasons)

So i deleted some stuff from my prog to put it in a little Testprog,
wich consists of about 200 lines. I will mail this at request, but you 
will need mysql to compile.

nb: I 've been noticed some "fatal signals 11" in some cases of syntactic
failures.

(Quick responses appreciated.)

Thanx in advance 



Sven Engelhardt


Sven Engelhardt (sven@sik.de)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es