From: Torsten Zirzlaff <zirzlaff@nienor.in-berlin.de>
Subject: Two erros which got me concerned
Date: Wed, 28 May 1997 22:59:01 +0200 [thread overview]
Message-ID: <199705282059.WAA03671@tinuviel> (raw)
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
reply other threads:[~1997-05-28 20:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox