Stephan Eickschen wrote:
But running it yields to core dumps... I tried to investigate on it with ddd but unfortunatly, I get stucked right after the starting shot. I have to mention, that I did not write the program on my own - and I am not a pascal hacker. I used to code in pascal some years ago, but "switched" to C.
Maybe some of the wizards out there is able to help me to find the "malicious" code? As far as I know, the program was original written for BorlandPascal and then transferred to AIX using "extended syntax" (?). I tested it at home on ly linux box with gpc and everything works fine. So I installed gpc on our sun's but now I am in trouble...
Hard to tell without seeing anything of your code. I don't know ddd well, but in gdb, `info stack' shows the active stack frames, i.e. the sequence of routines called when the crash occurred. This might give a hint as to where the problem is. (It's not impossible that the bugs really is in GPC, but it might just as well be in your code, and without more information, I could only guess.)
One obvious difference between Sparc and IA32 is endianness, so if the code contains any low-level tricks (which is not uncommon in BP code), you might want to check them out if they implicitly assume little-endian or something like that.
Frank