public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@redhat.com>
To: Barry Branham <bbranham@networkusa.net>
Cc: insight@sourceware.cygnus.com
Subject: Re: insight crash
Date: Sun, 07 Jan 2001 10:07:00 -0000	[thread overview]
Message-ID: <3A58B007.581CB93F@redhat.com> (raw)
In-Reply-To: <3A589F95.8F407222@networkusa.net>

Barry Branham wrote:
> 
> I recompiled gnomine with -g.  Insight again just starts with a blank source
> window - no menu bar, just the frame.  'ddd' opens it fine, however.
> 

At the bottom of the source window there are two comboboxes.  Do they
show
any files in there?

Do you have any ~/.gdbinit file around?

Another thing to try: delete your ~/.gdbtkinit file and see if it makes
any 
difference.


> Here's the result of running my application with Insight and then using regular
> gdb on the resulting Insight core with a longer backtrace - the  looping stack
> frame involves 'VkSimpleWindow' which is part of the Viewkit package I
> mentioned.  As noted in my first post, I was using Insight to debug this same
> program on RH 6.2 before I changed to RH7.0 and it worked.
> 

Now I am getting confused.  This is supposed to be a core dum of gdb
right?
It runs in one address space while your program, that gdb calls the
"inferior"
runs in another address space.  Gdb only sees your program's stack
because it
reads small chunks of inferior memory using system calls (ptrace).

Bottom line: you can't see the inferior programs stack in a core dump
from a 
gdb program.

Maybe this core dump is from your application.  The file command says it
is a 'gdb'
core file because your program was invoked through GDB (so the command
line where
it was started from was actually "gdb"). 

But this is just a theory.  And it does not explain why it works with
-nw.

Can you try the following:
gdb -x -nw /usr/local/bin/Dash
...
symbol-file /usr/local/bin/Dash

I saw once gdb dump core when rereading the symbols from a file.

It is quite hard to debug this things from afar.  I haven't seem any
behavior
like that before, so I depend on you running experiments.

Regards,
Fernando


> -------------------
> 
> [bhb@vger Dash]$ /usr/local/bin/gdb /usr/local/bin/Dash
> Segmentation fault (core dumped)
> [bhb@vger Dash]$ which gdb
> /usr/bin/gdb
> [bhb@vger Dash]$ file core
> core: ELF 32-bit LSB core file of 'gdb' (signal 11), Intel 80386, version 1
> [bhb@vger Dash]$ gdb /usr/local/bin/gdb core
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or 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.
> This GDB was configured as "i386-redhat-linux"...
> Core was generated by `/usr/local/bin/gdb /usr/local/bin/Dash'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /usr/lib/libncurses.so.5...done.
> Loaded symbols for /usr/lib/libncurses.so.5
> Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
> Loaded symbols for /usr/X11R6/lib/libX11.so.6
> Reading symbols from /lib/libdl.so.2...done.
> Loaded symbols for /lib/libdl.so.2
> Reading symbols from /lib/libm.so.6...done.
> Loaded symbols for /lib/libm.so.6
> Reading symbols from /lib/libc.so.6...done.
> Loaded symbols for /lib/libc.so.6
> Reading symbols from /lib/ld-linux.so.2...done.
> Loaded symbols for /lib/ld-linux.so.2
> Reading symbols from /lib/libthread_db.so.1...done.
> Loaded symbols for /lib/libthread_db.so.1
> #0  0x401cb245 in chunk_alloc (ar_ptr=0x0, nb=0) at malloc.c:2736
> 2736 malloc.c: No such file or directory.
> (gdb) bt
> #0  0x401cb245 in chunk_alloc (ar_ptr=0x0, nb=0) at malloc.c:2736
> #1  0x401cb08e in __libc_malloc (bytes=32) at malloc.c:2704
> #2  0x80d853a in xmmalloc (md=0x0, size=32) at utils.c:1024
> #3  0x80d85a8 in xmalloc (size=32) at utils.c:1059
> #4  0x8185274 in string_need (s=0xbf800290, n=16) at cplus-dem.c:4721
> #5  0x81853c5 in string_appendn (p=0xbf800290,
>     s=0x85759a8 "mainWindowWidget__C14VkSimpleWindow", n=16) at cplus-dem.c:4808
> #6  0x8184dc2 in demangle_function_name (work=0xbf8002d0, mangled=0xbf8002c4,
>     declp=0xbf800290, scan=0x85759b8 "__C14VkSimpleWindow") at cplus-dem.c:4558
> #7  0x8182963 in iterate_demangle_function (work=0xbf8002d0, mangled=0xbf8002c4,
>     declp=0xbf800290, scan=0x85759b8 "__C14VkSimpleWindow") at cplus-dem.c:2569
> #8  0x8182e5f in demangle_prefix (work=0xbf8002d0, mangled=0xbf8002c4,
> declp=0xbf800290)
>     at cplus-dem.c:2818
> #9  0x8180c80 in internal_cplus_demangle (work=0xbf8002d0,
>     mangled=0x85759a8 "mainWindowWidget__C14VkSimpleWindow") at cplus-dem.c:1108
> #10 0x8180971 in cplus_demangle (mangled=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     options=3) at cplus-dem.c:928
> #11 0x80960d8 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:587
> #12 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #13 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #14 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
> ---Type <return> to continue, or q <return> to quit---
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #15 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #16 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #17 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #18 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #19 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #20 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #21 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #22 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #23 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
> ---Type <return> to continue, or q <return> to quit---
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #24 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #25 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #26 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #27 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #28 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #29 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #30 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #31 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #32 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
> ---Type <return> to continue, or q <return> to quit---q
> block=Quit
> ) at symtab.c:595
> #33 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #34 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #35 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #36 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #37 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #38 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #39 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #40 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
>     at symtab.c:595
> #41 0x8096100 in lookup_symbol (name=0x85759a8
> "mainWindowWidget__C14VkSimpleWindow",
>     block=0x863ac6c, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
> 
> ---Type <return> to continue, or q <return> to quit---q
>  at symtab.Quit
> (gdb) quit
> 
> ------------------
> Don't think there's much more to be gained by continuing here ;-)
> As I mentioned Insight churns for a while then segfaults.
> I'm running a PII 400 with 128Mb, kernel 2.2.16-22.  I'll be glad to send
> whatever other system info you can use.
> 
> Thanks
> Barry

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

  reply	other threads:[~2001-01-07 10:07 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-06 15:19 Barry Branham
2001-01-06 15:40 ` Fernando Nasser
2001-01-06 19:09   ` Barry Branham
2001-01-07  7:17     ` Fernando Nasser
2001-01-07  8:51       ` Barry Branham
2001-01-07 10:07         ` Fernando Nasser [this message]
2001-01-07 13:44           ` Barry Branham
2001-01-07 15:46             ` Fernando Nasser
2001-01-07 19:03               ` Barry Branham
2001-01-08  4:57                 ` Fernando Nasser
2001-01-08  5:37                   ` Barry Branham
2001-01-08  7:10                     ` Fernando Nasser
2001-01-15  7:08                       ` Barry Branham
2001-01-15  7:30                         ` Fernando Nasser
  -- strict thread matches above, loose matches on Subject: below --
2001-10-09  7:49 Insight crash Tom Tromey
2001-12-04 20:49 ` Tom Tromey
2001-05-11 16:48 Tom Tromey
2001-05-11 17:10 ` Fernando Nasser
2001-05-11 18:48   ` Tom Tromey
2000-12-08 12:26 Tom Tromey
2000-12-08 13:58 ` Fernando Nasser
2000-12-11  8:42   ` Fernando Nasser
2000-04-07 17:32 Tom Tromey
2000-04-10  9:02 ` Fernando Nasser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A58B007.581CB93F@redhat.com \
    --to=fnasser@redhat.com \
    --cc=bbranham@networkusa.net \
    --cc=insight@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).