From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16891 invoked from network); 25 Jun 1998 14:07:42 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 25 Jun 1998 14:07:42 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id IAA17522; Thu, 25 Jun 1998 08:07:17 -0600 From: Michal Jaegermann Message-Id: <199806251407.IAA17522@ellpspace.math.ualberta.ca> Subject: Re: gdb error with RH5.0 To: m.dickebohm@uni-koeln.de Date: Thu, 25 Jun 1998 08:07:16 -0600 (MDT) Cc: axp-list@redhat.com In-Reply-To: from "Markus Dickebohm" at Jun 25, 98 12:51:38 pm Content-Type: text Markus Dickebohm writes: > > I tried to compile the latest gnuplot beta version on our Alphastation > yesterday Did you use -Wall and paid a close attention to what your compiler has to say? BTW - a version using 340 runs on various Alphas like a clockwork. I did not try so far with later versions. > > Otherwise, you told GDB there was a function where there isn't one, or > (more likely) you have encountered a bug in GDB. > 0x1555610708c in ?? () > (gdb) > > The program was compiled with "-g". > Do I have a buggy gdb or is this a known bug in RH5.0? Most likely you smashed a stack by passing to a function arguments of sizes other that this function expected (missing prototypes?); or you wrote over stack pieces - once again, because of sizes of some objects were quietly assumed to be 4. Once you did that your debugger is understandably confused and tracking such errors with gdb is usually a prolonged investigation. It is much easier to catch them in an earlier stage. gdb does seem to have some problems of its own but in most cases I have seen this was a programmer error. Bugs in questions are masked on 32-bit platforms, so they are quite popular, but they are still ordinary bugs. Michal