From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199705282059.WAA03671@tinuviel> Date: Wed, 28 May 1997 22:59:01 +0200 From: Torsten Zirzlaff Subject: Two erros which got me concerned Hi. I had observed two strange things in my RH 4.1+ (glibc 0.961212-5) installation. The first thing is when I debug a program with gdb (gdb 4.16-6) it dumps a core when I try to step or next over a instruction like: data = (char *)malloc((size_t)(size * sizeof(char))); The same with calloc. Another strange behaviour I encountered was when I use function like: double my_fkt(double input) { /* some calculation with input */ return output; } When I follow the instructions in the function the results are ok, but when I leave it the function I receive a different result which is constant during the whole program session. Any suggestions what might the problem here? And at last I had encountered real problems to create a global variable through modules, but it doesn't work. On other systems like i386-Linux, DEC/OSF, SunOS, HPUX and MS-DOS it work well there. Any suggestions what I made wrong or is this just a inconvenience? Would be nice to solve these problems, because I can't be sure if a runtime error is real or just a problem on my system. Ciao Torsten -- s-mail: Dudenstr. 24 Torsten Zirzlaff 10965 Berlin (official) http://satchmo.physik.tu-berlin.de/~zirzlaff Germany e-mail : zirzlaff@nienor.in-berlin.de phone: +49 30 789 90 144 zirzlaff@satchmo.physik.tu-berlin.de data: +49 30 789 90 145 +-----------------------------------------------------------------------------+ | The shortest unit of time in the universe is the New York Second, defined | | as the period of time between the traffic lights turning green and the cab | | behind you honking. -- Terry Pratchett 'Lords and Ladies' | +-----------------------------------------------------------------------------+ -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com