Article View: gnu.gdb.bug
Article #160Problem with -mapped option in gdb4.6
From: Otto Lind
Date: Wed, 05 Aug 1992 06:41
Date: Wed, 05 Aug 1992 06:41
44 lines
2169 bytes
2169 bytes
Gdb is dumping core when using a mapped symbol file that was created using
the -mapped option (on both sun 4.1.1 and 4.1.2, sparc2 and sparc1). The
following shows the problem:
% gdb -batch -nx -mapped -readnow foo
% ls -l foo.syms
-rw-rw-r-- 1 otto 15392768 Aug 4 23:32 foo.syms
% gdb foo
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.6, Copyright 1992 Free Software Foundation, Inc...
(gdb) list
Memory fault - core dumped
% gdb /remote/pokey/conn4/gnu/src/gdb-4.6/gdb/gdb 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.6, Copyright 1992 Free Software Foundation, Inc...
Core was generated by `gdb'.
Program terminated with signal 11, Segmentation fault.
#0 0xf76e23c0 in strlen ()
(gdb) where
#0 0xf76e23c0 in strlen ()
#1 0x10808 in open_source_file (s=0xe0eab4e0) at source.c:573
#2 0x10c28 in print_source_lines (s=0xe0eab4e0, line=73, stopline=10,
noerror=0) at source.c:786
#3 0x115a8 in list_command (arg=0x0, from_tty=1) at source.c:1017
#4 0x38cc in execute_command (p=0xe600c "", from_tty=1) at main.c:915
#5 0x3a8c in command_loop () at main.c:976
#6 0x36cc in main (argc=2, argv=0xf7fff784) at main.c:853
Is this a known problem? Any patchs/workarounds available?
Thanks in advance,
Otto
--
Otto Lind Sybase, Inc.
otto@sybase.com 6475 Christie Ave Emeryville, CA 94608
{pacbell,pyramid,sun}!sybase!otto (510) 596-3691
Technical Details
Message-ID:
<21990@sybase.sybase.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!fugue.UUCP!ottoShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!fugue.UUCP!otto From: otto@fugue.UUCP (Otto Lind) Subject: Problem with -mapped option in gdb4.6 Message-ID: <21990@sybase.sybase.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 5 Aug 1992 06:41:36 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 45