Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Two erros which got me concerned
@ 1997-05-28 20:59 Torsten Zirzlaff
  0 siblings, 0 replies; only message in thread
From: Torsten Zirzlaff @ 1997-05-28 20:59 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-05-28 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-28 20:59 Two erros which got me concerned Torsten Zirzlaff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox