Article View: gnu.gdb.bug
Article #101Segv in gdb 4.6 on Sun 4/330
From: Douglas Scott
Date: Mon, 20 Jul 1992 17:46
Date: Mon, 20 Jul 1992 17:46
81 lines
3785 bytes
3785 bytes
System: Sun 4/330 running SunOS 4.1
Compiler: gcc/g++ 2.2.2
Gdb Version: 4.6 with patch for gcc, compiled with native Sun compiler
Code being debugged: C++ code compiled -ggdb, no optimization
Transcript of session:
tango> gdb ./gdb
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...
Setting up the environment for debugging gdb.
During symbol reading, bad block start address patched.
Breakpoint 1 at 0x3a1d8: file utils.c, line 279.
Breakpoint 2 at 0x4a54: file main.c, line 1658.
(top-gdb) cd /home/doug/C++
Working directory /home/doug/C++.
(top-gdb) run mxv
Starting program: /usr/local/bin/gdb mxv
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) break proc_request.c:69
Breakpoint 1 at 0x58b40: file ./proc_request.c, line 69.
(gdb) run test.snd
Starting program: /home/doug/C++/mxv test.snd
Breakpoint 1, SingleFactorFunction::queryForParameters (this=0xf7fff2b0,
c=0x141ac8) at ./proc_request.c:69
69 setFactor(v.doubleValue());
Warning: the current language does not match this frame.
(gdb) print v.doubleValue()
Program received signal 11, Segmentation fault
During symbol reading, bad block start address patched.
0x13fc0 in value_primitive_field (arg1=0x4a5c48, offset=0, fieldno=0,
arg_type=0x3fd0a8) at values.c:856
856 type = TYPE_FIELD_TYPE (arg_type, fieldno);
(top-gdb) bt
#0 0x13fc0 in value_primitive_field (arg1=0x4a5c48, offset=0, fieldno=0,
arg_type=0x3fd0a8) at values.c:856
#1 0x14170 in value_field (arg1=0x4a5c48, fieldno=0) at values.c:898
#2 0x143d4 in value_virtual_fn_field (arg1=0x154188, f=0x4a8bf0, j=0,
type=0x4a8918) at values.c:980
#3 0x1a6cc in search_struct_method (name=0x154530 "doubleValue",
arg1=0x154388, args=0xf7fff7c4, offset=0, static_memfuncp=0xf7fff7f0,
type=0x4a8918) at valops.c:1095
#4 0x1ad8c in value_struct_elt (argp=0xf7fff7ec, args=0xf7fff7c4,
name=0x154530 "doubleValue", static_memfuncp=0xf7fff7f0,
err=0x10657a "structure") at valops.c:1222
#5 0x1604c in evaluate_subexp (expect_type=0x0, exp=0x154508, pos=0xf7fff86c,
noside=EVAL_NORMAL) at eval.c:389
#6 0x1565c in evaluate_expression (exp=0x154508) at eval.c:142
#7 0x24dcc in print_command_1 (exp=0x14500e "v.doubleValue()", inspect=0,
voidprint=1) at printcmd.c:752
#8 0x24fcc in print_command (exp=0x14500e "v.doubleValue()", from_tty=1)
at printcmd.c:803
#9 0x361c in execute_command (p=0x14500e "v.doubleValue()", from_tty=1)
at main.c:915
#10 0x38c0 in command_loop () at main.c:976
#11 0x33c0 in main (argc=2, argv=0xf7fffbd4) at main.c:853
If you need the source code, or more information, please let me know.
---
Douglas Scott (805)893-8352
Center for Computer Music Research and Composition
University of California, Santa Barbara
Internet: (NeXTMail ok) <doug@foxtrot.ccmrc.ucsb.edu>
Technical Details
Message-ID:
<9207201746.AA12853@foxtrot.ccmrc.ucsb.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!foxtrot.ccmrc.ucsb.edu!dougShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!foxtrot.ccmrc.ucsb.edu!doug From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott) Subject: Segv in gdb 4.6 on Sun 4/330 Message-ID: <9207201746.AA12853@foxtrot.ccmrc.ucsb.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 20 Jul 1992 17:46:05 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 82