* gdb error with RH5.0
@ 1998-06-25 10:51 Markus Dickebohm
1998-06-25 14:07 ` Michal Jaegermann
0 siblings, 1 reply; 3+ messages in thread
From: Markus Dickebohm @ 1998-06-25 10:51 UTC (permalink / raw)
To: axp-list
I tried to compile the latest gnuplot beta version on our Alphastation
yesterday (RH5.0 with all updates installed / Kernel 2.0.34).
The gnuplot binary dumps core right away after starting:
[markus@franck gnuplot347]$ ./gnuplot
Segmentation fault (core dumped)
Unfortunaly I can't make a good bug report without any hint, where the
segfault happens. But gdb tells:
$ gdb gnuplot
...
GDB 4.16 (alpha-redhat-linux), Copyright 1996 Free Software Foundation, Inc...
(gdb) run
Starting program: /usr/local/src/math/gnuplot347/gnuplot
Program received signal SIGSEGV, Segmentation fault.
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x1555610708c
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable). In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post' command.
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?
Markus
--
Uni Koeln * Physikalische Chemie II * Luxemburger Str. 116 * D-50939 Koeln
Tel: +49(0)221/470-3087 * Fax: -5144 * mailto:M.Dickebohm@Uni-Koeln.DE
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb error with RH5.0
1998-06-25 10:51 gdb error with RH5.0 Markus Dickebohm
@ 1998-06-25 14:07 ` Michal Jaegermann
1998-06-25 18:06 ` Stefan Schroepfer
0 siblings, 1 reply; 3+ messages in thread
From: Michal Jaegermann @ 1998-06-25 14:07 UTC (permalink / raw)
To: m.dickebohm; +Cc: axp-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb error with RH5.0
1998-06-25 14:07 ` Michal Jaegermann
@ 1998-06-25 18:06 ` Stefan Schroepfer
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Schroepfer @ 1998-06-25 18:06 UTC (permalink / raw)
To: axp-list
Michal Jaegermann wrote:
>
> Markus Dickebohm writes:
> >
> > I tried to compile the latest gnuplot beta version on our Alphastation
> > yesterday
>
> [...]
> 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.
gnuplot beta 347 compiles and runs fine with RH 4.2, so the code
seems to be 64 bit clean. Would a statically linked binary (using
RH 4.2) run on RH 5.0 ?
scr@iis.fhg.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-06-25 18:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-25 10:51 gdb error with RH5.0 Markus Dickebohm
1998-06-25 14:07 ` Michal Jaegermann
1998-06-25 18:06 ` Stefan Schroepfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox