public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Insight seg fault at startup
@ 2000-11-16 18:26 Jochen Heinzmann
  0 siblings, 0 replies; 2+ messages in thread
From: Jochen Heinzmann @ 2000-11-16 18:26 UTC (permalink / raw)
  To: insight

Hi,

I downloaded, compiled and installed insight successfully
from insight+dejagnu20001115 but I have problems starting
gdb. It starts okay with the -nw option, but otherwise
creates a segfault after a second of thinking.
I dumped the core and had a look, it discovers some error,
tries to print the error with vprintf and stuffs up the
argument list and crashes WITHOUT printing the error.
Attached is the text of the stack. If anybody could give me
a hand figuring out what my problem is it would be much
appreciated.

Thanks a lot in advance,

Best Regards,
Jochen

#0  0x401a1631 in vfprintf () from /lib/libc.so.6
#1  0x401af7ef in vasprintf () from /lib/libc.so.6
#2  0x80ea6a7 in vfprintf_maybe_filtered (stream=0x83547f8,
    format=0x73206f4e <Address 0x73206f4e out of bounds>,
args=0xbfff9538,
    filter=1) at utils.c:1955
#3  0x80ea721 in vfprintf_filtered (stream=0x83547f8,
    format=0x73206f4e <Address 0x73206f4e out of bounds>,
args=0xbfff9538)
    at utils.c:1970
#4  0x80e917d in verror (string=0x73206f4e <Address 0x73206f4e out of
bounds>,
    args=0xbfff9538) at utils.c:621
#5  0x80e91ea in error () at utils.c:636
#6  0x80a0e5b in decode_line_1 (argptr=0xbfff9648, funfirstline=1,
    default_symtab=0x0, default_line=0, canonical=0x0) at
linespec.c:1262
#7  0x809a122 in decode_line_spec (string=0x8659d17 "", funfirstline=1)
    at symtab.c:3344
#8  0x80c701d in gdb_loc (clientData=0x80c6f70, interp=0x836c828,
objc=2,
    objv=0x836d52c) at ./gdbtk/generic/gdbtk-cmds.c:3166
#9  0x80c3ff3 in wrapped_call (opaque_args=0xbfff97d8)
    at ./gdbtk/generic/gdbtk-cmds.c:536
#10 0x80e424c in catch_errors (func=0x80c3fd8 <wrapped_call>,
args=0xbfff97d8,
    errstring=0x829e1c3 "", mask=6) at top.c:607
#11 0x80c3f16 in call_wrapper (clientData=0x80c6f70, interp=0x836c828,
objc=2,
    objv=0x836d52c) at ./gdbtk/generic/gdbtk-cmds.c:474
#12 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x865a920)
    at ./../generic/tclExecute.c:955
#13 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x8486eb0)
    at ./../generic/tclBasic.c:2645
#14 0x82742ba in TclObjInterpProc (clientData=0x847ef70,
interp=0x836c828,
    objc=1, objv=0x836d524) at ./../generic/tclProc.c:996
#15 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x8547c30)
    at ./../generic/tclExecute.c:955
#16 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x848c778)
    at ./../generic/tclBasic.c:2645
#17 0x81a64d0 in Itcl_EvalMemberCode (interp=0x836c828, mfunc=0x84e6eb8,

    member=0x8518780, contextObj=0x8454eb0, objc=1, objv=0x836d520)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1029

#18 0x81a6df0 in Itcl_ExecMethod (clientData=0x84e6eb8,
interp=0x836c828,
    objc=1, objv=0x836d520)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1546

#19 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x851a730)
    at ./../generic/tclExecute.c:955
#20 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x8521d40)
    at ./../generic/tclBasic.c:2645
#21 0x81a64d0 in Itcl_EvalMemberCode (interp=0x836c828, mfunc=0x84fd128,

    member=0x8511fe8, contextObj=0x8454eb0, objc=1, objv=0x851a470)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1029

#22 0x81a7bc6 in Itcl_InvokeMethodIfExists (interp=0x836c828,
    name=0x82e5778 "constructor", contextClass=0x85119b0,
    contextObj=0x8454eb0, objc=0, objv=0x836d520)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:2441

#23 0x81a8351 in Itcl_CreateObject (interp=0x836c828,
    name=0x8511f40 ".srcwin0.srcwin", cdefn=0x85119b0, objc=0,
objv=0x836d520,
    roPtr=0xbfffb228)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_objects.c:216

#24 0x81afb82 in Itcl_HandleClass (clientData=0x85119b0,
interp=0x836c828,
    objc=2, objv=0x836d518)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_class.c:877

#25 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x85235f8)
    at ./../generic/tclExecute.c:955
#26 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x8520830)
    at ./../generic/tclBasic.c:2645
#27 0x8273d7c in Tcl_UplevelObjCmd (dummy=0x0, interp=0x836c828, objc=3,

    objv=0x836d50c) at ./../generic/tclProc.c:609
#28 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x83bf998)
              #29 0x823d4e0 in Tcl_EvalObj (interp=0x836c828,
objPtr=0x8385268)
    at ./../generic/tclBasic.c:2645
#30 0x82742ba in TclObjInterpProc (clientData=0x83903e8,
interp=0x836c828,
    objc=3, objv=0x836d500) at ./../generic/tclProc.c:996
#31 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x84ff878)
    at ./../generic/tclExecute.c:955
#32 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x85207d0)
    at ./../generic/tclBasic.c:2645
#33 0x8240882 in Tcl_EvalObjCmd (dummy=0x0, interp=0x836c828, objc=3,
    objv=0x836d4f4) at ./../generic/tclCmdAH.c:492
#34 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x84ff7e8)
    at ./../generic/tclExecute.c:955
#35 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x8520770)
    at ./../generic/tclBasic.c:2645
#36 0x8273d99 in Tcl_UplevelObjCmd (dummy=0x0, interp=0x836c828, objc=6,

    objv=0x836d4dc) at ./../generic/tclProc.c:612
#37 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x8515a18)
    at ./../generic/tclExecute.c:955
#38 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x8521e60)
    at ./../generic/tclBasic.c:2645
#39 0x81a64d0 in Itcl_EvalMemberCode (interp=0x836c828, mfunc=0x851d4e0,

    member=0x851d6f0, contextObj=0x0, objc=2, objv=0x836d4d4)
                         at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1029

#40 0x81a6eaf in Itcl_ExecProc (clientData=0x851d4e0, interp=0x836c828,
    objc=2, objv=0x836d4d4)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1605

#41 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x84592e8)
    at ./../generic/tclExecute.c:955
#42 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x83da0c8)
    at ./../generic/tclBasic.c:2645
#43 0x8240882 in Tcl_EvalObjCmd (dummy=0x0, interp=0x836c828, objc=4,
    objv=0x836d4c4) at ./../generic/tclCmdAH.c:492
#44 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x8457168)
    at ./../generic/tclExecute.c:955
#45 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x8521e78)
    at ./../generic/tclBasic.c:2645
#46 0x81a64d0 in Itcl_EvalMemberCode (interp=0x836c828, mfunc=0x8520f48,

    member=0x8520f60, contextObj=0x0, objc=2, objv=0x836d4b8)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1029

#47 0x81a6eaf in Itcl_ExecProc (clientData=0x8520f48, interp=0x836c828,
    objc=2, objv=0x836d4b8)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:16

    50
#48 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x84ffb88)
    at ./../generic/tclExecute.c:955
#49 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x83da1a0)
    at ./../generic/tclBasic.c:2645
#50 0x8240882 in Tcl_EvalObjCmd (dummy=0x0, interp=0x836c828, objc=4,
    objv=0x836d4a8) at ./../generic/tclCmdAH.c:492
#51 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x85000d0)
    at ./../generic/tclExecute.c:955
#52 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x848c730)
    at ./../generic/tclBasic.c:2645
#53 0x81a64d0 in Itcl_EvalMemberCode (interp=0x836c828, mfunc=0x8510568,

    member=0x8496260, contextObj=0x0, objc=2, objv=0x836d4a0)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1029

#54 0x81a6eaf in Itcl_ExecProc (clientData=0x8510568, interp=0x836c828,
    objc=2, objv=0x836d4a0)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1605

#55 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x84f9898)
    at ./../generic/tclExecute.c:955
#56 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x8460f40)
    at ./../generic/tclBasic.c:2645
#57 0x81a64d0 in Itcl_EvalMemberCode (interp=0x836c828, mfunc=0x8496a58,

    member=0x8496a70, contextObj=0x0, objc=1, objv=0x836d49c)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1029

#58 0x81a6eaf in Itcl_ExecProc (clientData=0x8496a58, interp=0x836c828,
    objc=1, objv=0x836d49c)
    at
/home/jochen/insight+dejagnu-20001115/itcl/itcl/generic/itcl_methods.c:1605

#59 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x8456f88)
    at ./../generic/tclExecute.c:955
#60 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x8486a30)
    at ./../generic/tclBasic.c:2645
#61 0x82742ba in TclObjInterpProc (clientData=0x8461f10,
interp=0x836c828,
    objc=1, objv=0x836d498) at ./../generic/tclProc.c:996
#62 0x82566ba in TclExecuteByteCode (interp=0x836c828,
codePtr=0x85002e0)
    at ./../generic/tclExecute.c:955
#63 0x823d4e0 in Tcl_EvalObj (interp=0x836c828, objPtr=0x84562e0)
    at ./../generic/tclBasic.c:2645
#64 0x823d2ab in Tcl_Eval (interp=0x836c828,
    string=0x829ec52 "gdbtk_tcl_preloop") at
./../generic/tclBasic.c:2453
#65 0x80c939b in tk_command_loop () at ./gdbtk/generic/gdbtk-hooks.c:364

#66 0x8081d48 in captured_command_loop (data=0x0) at main.c:104
#67 0x80e424c in catch_errors (func=0x8081d30 <captured_command_loop>,
                       args=0x0, errstring=0x8281d82 "", mask=6) at
top.c:607
#68 0x8082803 in captured_main (data=0xbffff9c4) at main.c:749
#69 0x80e424c in catch_errors (func=0x8081d7c <captured_main>,
    args=0xbffff9c4, errstring=0x8281d82 "", mask=6) at top.c:607
#70 0x808282f in main (argc=1, argv=0xbffffa34) at main.c:761
#71 0x4017bcbe in __libc_start_main () from /lib/libc.so.6


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Insight seg fault at startup
@ 2000-11-26 22:14 Jon Schutz
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Schutz @ 2000-11-26 22:14 UTC (permalink / raw)
  To: Jochen Heinzmann; +Cc: insight

Jochen,

    Jochen> I downloaded, compiled and installed insight successfully
    Jochen> from insight+dejagnu20001115 but I have problems starting
    Jochen> gdb. It starts okay with the -nw option, but otherwise
    Jochen> creates a segfault after a second of thinking.  I dumped
    Jochen> the core and had a look, it discovers some error, tries to
    Jochen> print the error with vprintf and stuffs up the argument
    Jochen> list and crashes WITHOUT printing the error.  Attached is
    Jochen> the text of the stack. If anybody could give me a hand
    Jochen> figuring out what my problem is it would be much
    Jochen> appreciated.

I didn't see any other responses on the list, so here's my offering:

I had the same problem with insight+dejagnu20001118 compiled with
gcc version 2.96 20000731 (Red Hat Linux 7.0).  My quick and dirty fix
was to change gdb/symtab.c:120 from

char no_symtab_msg[] = "No symbol table is loaded.  Use the \"file\" command.";

 to

const char *no_symtab_msg = "No symbol table is loaded.  Use the \"file\" command.";


For reasons that escape me, the pointer to no_symtab_msg was being
mangled in the call to error(const char *string,...) with the first
declaration.  An issue with the compiler, I expect.  What worries me
about the quick fix above is that there are many other message
declarations in the source with a similar declaration that may or may
not cause the same fault.  Unfortunately I don't have the time to look
at the problem any deeper, but so far the debugger has been working OK.

Regards,

Jon


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-26 22:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-16 18:26 Insight seg fault at startup Jochen Heinzmann
2000-11-26 22:14 Jon Schutz

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).