bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DDD 3.3.1 (mips-sgi-irix6.5) gets `Signal 11' signal


From: H. Sampath kumar
Subject: DDD 3.3.1 (mips-sgi-irix6.5) gets `Signal 11' signal
Date: Fri, 20 Sep 2002 12:22:19 +0530

Hi,

I am trying to run ddd on a simple program. It core dumps with signal 11. The C code is

int main(void)
{
        int i=10;
        printf("%d",i);
        return 0;
}

It works fine if I just run the program or even if I step. But if I display local variables and run the program it dumps core.
I am attaching the log file and the core file.

My operating system is
IRIX khandala 6.5 01101246 IP32

My cc version is
MIPSpro Compilers: Version 7.3.1.2m

please let me know if you need any other information.

thanks,
 

-- 
H. Sampath Kumar
MIEL, Bangalore.
**********************************************************************
It is better to burn out than fade away
                -- Kurt Cobain
**********************************************************************
 

Attachment: core
Description: Binary data

GNU DDD 3.3.1 (mips-sgi-irix6.5)
Copyright (C) 1995-1999 Technische Universit├Ąt Braunschweig, Germany.
Copyright (C) 1999-2001 Universit├Ąt Passau, Germany.

Compiled with /bin/CC
Requires X11R6, Xt11R6, Motif 1.2.4 (OSF/Motif Version 1.2.4)
Includes XPM 3.4.6, Athena Panner, VSL library, Manual, License, News, App 
defaults, DDD core
Built 2002-06-05 by Clint R. Harris  <address@hidden>.
$  ddd
+  /bin/sh -c 'exec gdb -q -fullname'
#  Hello, world!
#  Starting GDB...
#  Running GDB (pid 2968, tty /dev/ttyq5)...
#  Current language: C/C++
#  VSL: ../vsllib/builtin.vsl:110: 'font(box, font)' already defined
#  VSL: ../vsllib/fonts.vsl:38: font(box, font): (this is the previous 
definition)
<- "(gdb) "
-> "set prompt (gdb) \n"
<- "(gdb) "
-> "set height 0\n"
<- "(gdb) "
-> "set width 0\n"
<- "(gdb) "
-> "set annotate 1\n"
<- "(gdb) "
-> " set verbose off\n"
<- "(gdb) "
-> "info line\n"
<- "No line number information available.\n"
<- "(gdb) "
-> "list\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info line\n"
<- "No line number information available.\n"
<- "(gdb) "
-> "output 4711\n"
<- "4711(gdb) "
-> "show language\n"
<- "The current source language is \"auto; currently c\".\n"
<- "(gdb) "
-> "show version\n"
<- "GNU gdb 4.18\n"
<- "Copyright 1998 Free Software Foundation, Inc.\n"
<- "GDB is free software, covered by the GNU General Public License, and you 
are\n"
<- "welcome to change it and/or distribute copies of it under certain 
conditions.\n"
<- "Type \"show copying\" to see the conditions.\n"
<- "There is absolutely no warranty for GDB.  Type \"show warranty\" for 
details.\n"
<- "This GDB was configured as \"mips-sgi-irix6.2\".\n"
<- "(gdb) "
-> "pwd\n"
<- "Working directory /users/hskumar/BACKUP/src.\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
<- "(gdb) "
-> "show history filename\n"
<- "The filename in which to record the command history is 
\"/users/hskumar/BACKUP/src/.gdb_history\".\n"
<- "(gdb) "
-> "show history size\n"
<- "The size of the command history is 256.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info sources\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info line main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line MAIN\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info files\n"
<- "(gdb) "
-> "info line main_\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
<- "(gdb) "
-> "info line MAIN_\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line main__\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line MAIN__\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line _main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line _MAIN\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line __main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line __MAIN\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line my_main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line the_main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line vxworks_main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info line main_vxworks\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
<- "(gdb) "
-> "set confirm off\n"
<- "(gdb) "
-> "source /var/tmp//ddd002951\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "# reset\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
<- "(gdb) "
-> "display\n"
<- "(gdb) "
-> "info display\n"
<- "There are no auto-display expressions now.\n"
<- "(gdb) "
-> "set environment TERM dumb\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
<- "(gdb) "
-> "info files\n"
<- "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
<- "(gdb) "
-> "help detach\n"
<- "Detach a process or file previously attached.\n"
<- "If a process, it is no longer traced, and it continues its execution.  If\n"
<- "you were debugging a file, the file is closed and gdb no longer accesses 
it.\n"
<- "(gdb) "
-> "help run\n"
<- "Start debugged program.  You may specify arguments to give it.\n"
<- "Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n"
<- "Input and output redirection with \">\", \"<\", or \">>\" are also 
allowed.\n"
<- "\n"
<- "With no arguments, uses arguments last specified (with \"run\" or \"set 
args\").\n"
<- "To cancel previous arguments and run with no arguments,\n"
<- "use \"set args\" without arguments.\n"
<- "(gdb) "
#  Starting GDB...done.
#  Welcome to DDD 3.3.1 "Blue Gnu" (mips-sgi-irix6.5)
-> "help step\n"
<- "Step program until it reaches a different source line.\n"
<- "Argument N means do this N times (or till program stops for another 
reason).\n"
<- "(gdb) "
-> "help stepi\n"
<- "Step one instruction exactly.\n"
<- "Argument N means do this N times (or till program stops for another 
reason).\n"
<- "(gdb) "
-> "help next\n"
<- "Step program, proceeding through subroutine calls.\n"
<- "Like the \"step\" command as long as subroutine calls do not happen;\n"
<- "when they do, the call is treated as one instruction.\n"
<- "Argument N means do this N times (or till program stops for another 
reason).\n"
<- "(gdb) "
-> "help nexti\n"
<- "Step one instruction, but proceed through subroutine calls.\n"
<- "Argument N means do this N times (or till program stops for another 
reason).\n"
<- "(gdb) "
-> "help until\n"
<- "Execute until the program reaches a source line greater than the current\n"
<- "or a specified line or address or function (same args as break command).\n"
<- "Execution will also stop upon exit from the current stack frame.\n"
<- "(gdb) "
-> "help finish\n"
<- "Execute until selected stack frame returns.\n"
<- "Upon return, the value returned is printed and put in the value history.\n"
<- "(gdb) "
-> "help cont\n"
<- "Continue program being debugged, after signal or breakpoint.\n"
<- "If proceeding from breakpoint, a number N may be used as an argument,\n"
<- "which means to set the ignore count of that breakpoint to N - 1 (so that\n"
<- "the breakpoint won\'t break until the Nth time it is reached).\n"
<- "(gdb) "
-> "help signal\n"
<- "Continue program giving it signal specified by the argument.\n"
<- "An argument of \"0\" means continue program without giving it a signal.\n"
<- "(gdb) "
-> "help kill\n"
<- "Kill execution of program being debugged.\n"
<- "(gdb) "
-> "help up\n"
<- "Select and print stack frame that called this one.\n"
<- "An argument says how many frames up to go.\n"
<- "(gdb) "
-> "help down\n"
<- "Select and print stack frame called by this one.\n"
<- "An argument says how many frames down to go.\n"
<- "(gdb) "
#  Filtering files...
#  Filtering files...done.
-> "info files\n"
<- "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
<- "(gdb) "
-> "file /users/hskumar/BACKUP/src/tmp\n"
<- "(gdb) "
-> "info line\n"
<- "No line number information available"
<- "."
<- "\n"
<- "(gdb) "
-> "list\n"
<- "1\t\n"
<- "2\tint main(void)\n"
<- "3\t{\n"
<- "4\t\tint i=10;\n"
<- "5\t\tprintf(\"%d\",i);\n"
<- "6\t\treturn 0;\n"
<- "7\t}\n"
<- "(gdb) "
-> "info line\n"
<- "Line number 7 is out of range for \"tmp.c\".\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
<- "(gdb) "
-> "display\n"
<- "(gdb) "
-> "info display\n"
<- "There are no auto-display expressions now.\n"
<- "(gdb) "
#  Reading file "/users/hskumar/BACKUP/src/tmp.c"...
#  Reading file "/users/hskumar/BACKUP/src/tmp.c"...done.
#  File "/users/hskumar/BACKUP/src/tmp.c" 7 lines, 75 characters
#  Setting buttons...
#  Setting buttons...done.
-> "info source\n"
<- "Current source file is tmp.c\n"
<- "Located in /users/hskumar/BACKUP/src/tmp.c\n"
<- "Contains 7 lines.\n"
<- "Source language is c.\n"
<- "Compiled with ECOFF debugging format.\n"
<- "(gdb) "
-> "info files\n"
<- "Symbols from \"/users/hskumar/BACKUP/src/tmp\".\n"
<- "Local exec file:\n"
<- "\t`/users/hskumar/BACKUP/src/tmp\', file type elf32-bigmips.\n"
<- "\tEntry point: 0x400ad0\n"
<- "\t0x00400134 - 0x00400147 is .interp\n"
<- "\t0x00400148 - 0x004001c8 is .MIPS.options\n"
<- "\t0x004001c8 - 0x004001e0 is .reginfo\n"
<- "\t0x004001e0 - 0x004002f0 is .dynamic\n"
<- "\t0x004002f0 - 0x00400304 is .liblist\n"
<- "\t0x0040063c - 0x004008fc is .dynsym\n"
<- "\t0x00400304 - 0x00400483 is .dynstr\n"
<- "\t0x00400484 - 0x0040063c is .hash\n"
<- "\t0x004008fc - 0x00400928 is .MIPS.symlib\n"
<- "\t0x00400928 - 0x00400a88 is .msym\n"
<- "\t0x00400a88 - 0x00400acc is .MIPS.stubs\n"
<- "\t0x00400ad0 - 0x00400c50 is .text\n"
<- "\t0x00400c60 - 0x00400c90 is .init\n"
<- "\t0x10004000 - 0x10004010 is .rodata\n"
<- "\t0x10004010 - 0x1000407c is .got\n"
<- "\t0x1000407c - 0x10004088 is .bss\n"
<- "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
<- "(gdb) "
-> "frame\n"
<- "No stack.\n"
<- "(gdb) "
-> "info locals\n"
<- "No frame selected.\n"
<- "(gdb) "
#  Creating status display...
#  Creating status display...done.
#  Display -1: `info locals` (enabled)
#  Display -1: `info locals` (enabled)
-> "set environment TERM dumb\n"
<- "(gdb) "
-> "run\n"
<- "10"
<- "\n"
<- "Program exited normally.\n"
<- "Current language:  auto; currently asm\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
<- "(gdb) "
-> "info locals\n"
<- "No frame selected.\n"
<- "(gdb) "
!  Signal 11
-> "\003"
<- "Quit\n"
<- "(gdb) "
+  /bin/sh -c 'gdb -x /var/tmp//ddd002951 ddd core'
GNU gdb 4.18
Copyright 1998 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 "mips-sgi-irix6.2"...
Core was generated by `ddd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libXm.so.1...done.
Reading symbols from /usr/lib/libXaw.so.2...done.
Reading symbols from /usr/lib/libXmu.so...done.
Reading symbols from /usr/lib/libXt.so...done.
Reading symbols from /usr/lib/libXpm.so.1...done.
Reading symbols from /usr/lib/libXext.so...done.
Reading symbols from /usr/lib/libX11.so.1...done.
Reading symbols from /usr/lib/libgen.so...done.
Reading symbols from /usr/lib/libcurses.so...done.
Reading symbols from /usr/lib/libm.so...done.
Reading symbols from /usr/lib/libC.so...done.
Reading symbols from /usr/lib/libc.so.1...done.
#0  0x0 in ?? ()
#0  0x0 in ?? ()
#  Display -1: `info locals` (enabled)
-> "output i\n"
<- "No symbol \"i\" in current context."
<- "\n"
<- "(gdb) "
-> "quit\n"
#  Running GDB (pid 2968, tty /dev/ttyq5)...Exit 0.
#  Saving history in "/users/hskumar/.ddd/history"...
#  Saving history in "/users/hskumar/.ddd/history"...done.
#  Thanks for using DDD 3.3.1!  (We apologize for the inconvenience.)
file /users/hskumar/BACKUP/src/C++/out
file /users/hskumar/BACKUP/src/C++/a.out
file /users/hskumar/BACKUP/src/out
file /users/hskumar/BACKUP/src/a.out
file /users/hskumar/BACKUP/src/tmp
print E
break E
break size.C:25
run
step
print E
print x
step
graph display x
step
graph display x
break size.C:32
run
step
file /users/hskumar/BACKUP/src/C++/a.out
run
step
graph display x
print x
graph display x.i
graph display E
graph display x
step
next
graph display x
print x
graph display x
graph disable display 1
graph enable display 1
graph disable display 1
graph enable display 1
set variable E = 0
set variable E = 1
finish
nexti
stepi
down
make
down
graph display E
graph disable display 2
graph enable display 2
graph disable display 2
file /users/hskumar/BACKUP/src/C++/a.out
quit
file /users/hskumar/BACKUP/src/C++/a.out
disable 1
delete 2
delete 1
break size.C:29
run
graph display x
run
graph refresh
file /users/hskumar/BACKUP/src/C++/a.out
run
stepi
graph display j
graph display x.i
graph display struct
graph display XXX
stepi
list 'XXX'
quit
file /users/hskumar/BACKUP/src/C++/a.out
break size.C:28
break size.C:33
break size.C:35
run
cont
print x
graph display j
graph display `info locals`
file /users/hskumar/BACKUP/src/C++/out
quit
file /users/hskumar/BACKUP/src/C++/out
break tmp.C:6
run
quit
file /users/hskumar/BACKUP/src/C++/out
break tmp.C:6
run
graph display `info locals`
graph display i
stepi
file /users/hskumar/BACKUP/src/C++/a.out
break tmp.C:6
run
stepi
graph display `info locals`
stepi
file /users/hskumar/BACKUP/src/C++/out
file /users/hskumar/BACKUP/src/C++/a.out
run
break tmp.C:4
run
stepi
graph display `info locals`
frame 7
frame 6
file /users/hskumar/BACKUP/src/a.out
file /users/hskumar/BACKUP/src/out
file /users/hskumar/BACKUP/src/a.out
tbreak tmp.c:4
delete 1
break tmp.c:5
run
graph display `info locals`
list '`info locals`'
watch `info locals`
print `info locals`
file /users/hskumar/BACKUP/src/out
file /users/hskumar/BACKUP/src/a.out
run
break tmp.c:5
run
stepi
cont
run
stepi
step
stepi
cont
run
step
graph display i
run
graph display `info locals`
run
file /users/hskumar/BACKUP/src/tmp
break tmp.c:6
run
graph display `info locals`
step
file /users/hskumar/BACKUP/src/tmp
graph display `info locals`
run
quit


reply via email to

[Prev in Thread] Current Thread [Next in Thread]