🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #95

Re: gdb-4.5 on sparc fails

#95
From: Simon J Gerraty
Date: Thu, 16 Apr 1992 06:49
62 lines
2488 bytes
In <9204151658.AA23466@lookout.uswest.com> dir%lookout@lookout.USwest.COM (Daniel I. Rosenblatt) writes:
>Nothing modified from standard 'configure' (tried cc and gcc-2.1).
>Most notable failure is a stack trace on a 'core' file doesn't work:

Same here.  configure sun4os4, built with gcc-2.1 -g (no -O)
The following show gdb-4.2 working ok, and gdb-4.5 not

Script started on Thu Apr 16 16:42:44 1992
/tmp
<sjg@sun0:1>$ gdb-4.2 daemon core
Reading symbols from daemon...done.
Core file invoked as `daemon'.
Program terminated with signal 6, Abort.
Shared libraries:
Reading symbols from /usr/lib/libc.so.1.6...done.
0xf7732898 in sigpause ()
(gdb) bt
#0  0xf7732898 in sigpause ()
#1  0xf774965c in sleep ()
#2  0x260c in main (argc=1, argv=0xf7fff8d4)
    at /home/sun0/sjg/rlpd/daemon.c:164
(gdb) frame 2
#2  0x260c in main (argc=1, argv=0xf7fff8d4)
    at /home/sun0/sjg/rlpd/daemon.c:164
164	    sleep(20);
(gdb) l
159	  opid = getpid();
160	  (void) daemon(err);
161	  pid = getpid();
162	  fprintf(stderr, "%d forked from %d\n", pid, opid);
163	  for (i = 0; i < 5; i++)
164	    sleep(20);
165	  return 0;
166	}
167	#endif
(gdb) print pid
$1 = 24979
(gdb) print opid
$2 = 24977
(gdb) q
<sjg@sun0:2>$ gdb daemon core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.5, Copyright 1992 Free Software Foundation, Inc...
Warning: core file may not match specified executable file.
Core was generated by `daemon'.
Program terminated with signal 6, Abort.
Cannot access memory at address 0x0.
#0  0xf7732898 in sigpause ()
(gdb) bt
#0  0xf7732898 in sigpause ()
Cannot access memory at address 0xf7732890.
(gdb) q
<sjg@sun0:3>$ exit

script done on Thu Apr 16 16:44:00 1992
-- 
Simon J. Gerraty		<sjg@melb.bull.oz.au> (Work)
				<sjg@zen.void.oz.au>  (Home)

#include <disclaimer,_witty_comment>
Technical Details
Message-ID: <1992Apr16.064927.9621@melb.bull.oz.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!melb.bull.oz.AU!sjg
References: <9204151658.AA23466@lookout.uswest.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!melb.bull.oz.AU!sjg
From: sjg@melb.bull.oz.AU (Simon J Gerraty)
Subject: Re: gdb-4.5 on sparc fails
Message-ID: <1992Apr16.064927.9621@melb.bull.oz.au>
Sender: gnulists@ai.mit.edu
Organization: Bull HN Information Systems Australia
References: <9204151658.AA23466@lookout.uswest.com>
Distribution: gnu
Date: Thu, 16 Apr 1992 06:49:27 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 63