bug-ddd
[Top][All Lists]
Advanced

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

DDD error when plotting using array slices


From: Raoul Nigel Haynes
Subject: DDD error when plotting using array slices
Date: Thu, 28 Mar 2002 18:37:34 +0000

[SYNOPSIS]
DDD repeatedly bombs out with an internal error (segmentation fault)
when plotting a range of array values using 'array slice notation'. I
have isolated the problem using the following code fragment which is
illustrated below (lines have been added for brevity):

 1 int main(void)
 2 {
 3   int i;
 4   int j[16] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
 5
 6   while(1) {
 7     for (i = 0; i < 16; i++) {
 8       j[i] = i + 1;
 9     }
10
11     for (i = 0; i < 16; i++)j[i] = 0;
12   }
13 }

I set a breakpoint at line 8 and once hit, invoke the followibng
command:

(gdb) graph plot j[0] @ 16

The plot updates correctly but on the second pass thru the while loop
(after zeroing the elements), DDD bombs out with the following:

--------------------------
Oops!  You have found a bug in DDD.

If you can reproduce this bug, please send a bug report
to <address@hidden>, giving a subject like

    DDD 3.3 (i686-pc-linux-gnu) gets `Segmentation fault' signal

To enable us to fix the bug, you should include the following
information:
* What you were doing to get this message.  Report all the facts.
* The contents of the `~/.ddd/log' file as generated by this session.
Please read also the section "Reporting Bugs" in the DDD manual.

We thank you for your support.

/bin/sh -c 'exec gdb -q -fullname '\''tst'\''' [4515]: Agent wouldn't
die (Hangup)
Memory fault (core dumped) 
---------------------------

The DDD configuration information is shown below:

[CONFIGURATION INFORMATION]
$ ddd --configuration
GNU DDD 3.3 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.

Compiled with GCC 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk), GNU
libc 2.2
Requires X11R6, Xt11R6, Motif 2.1 (GNU/LessTif Version 2.1 Release
0.93.0)
Includes Athena Panner, DDD core
Built 2002-01-17 by Robin J Bishop <address@hidden>

>> Inferior debugger - gdb 5.0

Please find attached the log file generated.

Rgds,
--Raoul.
-- 
This email and any files transmitted with it, including replies and
forwarded
copies subsequently transmitted from Aspex Technology Limited, are
confidential
and solely for the use of the intended recipient.  Any opinions
expressed in
this email are those of the individual and not necessarily those of
Aspex
Technology Limited.  If you are not the intended recipient, be advised
that
you have received this email in error and that any use is strictly
prohibited.
If you have received this email in error, please notify us immediately
by
e-mail and delete the original message without keeping any copies.

Aspex Technology Limited is registered in England and Wales No.3469577.
The registered office for Aspex Technology Limited is
York House, Cottingley Business Park, Bradford, BD16 1PF.
GNU DDD 3.3 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.

Compiled with GCC 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk), GNU libc 2.2
Requires X11R6, Xt11R6, Motif 2.1 (GNU/LessTif Version 2.1 Release 0.93.0)
Includes Athena Panner, DDD core
Built 2002-01-17 by Robin J Bishop <address@hidden>.
$  ddd tst
+  /bin/sh -c 'exec gdb -q -fullname '\''tst'\'''
#  Hello, world!
#  Opening session "110a030404000101731825600000278720060"...
#  Enabling core dumps...
#  Enabling core dumps...done.
#  Running GDB (pid 3813, tty /dev/pts/3)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/v/home/rad/radrnh/.ddd/vsllib/ddd.vsl"
#  Trying 
"/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/DDD/vsllib/ddd.vsl"
#  Searching 
"vsllib/ddd.vsl"..."/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/DDD/vsllib/ddd.vsl".
#  Another DDD is running (pid 22203, host 10.3.4.4)
<- "(gdb) "
-> "set prompt (gdb) \n"
#  Creating 
"/v/home/rad/radrnh/.ddd/sessions/110a030404000101731825600000278720060/"...
#  Creating 
"/v/home/rad/radrnh/.ddd/sessions/110a030404000101731825600000278720060/"...done.
#  Copying "/v/home/rad/radrnh/.ddd/init" to 
"/v/home/rad/radrnh/.ddd/sessions/110a030404000101731825600000278720060/init"...
#  Copying "/v/home/rad/radrnh/.ddd/init" to 
"/v/home/rad/radrnh/.ddd/sessions/110a030404000101731825600000278720060/init"...done.
#  Copying "/v/home/rad/radrnh/.ddd/history" to 
"/v/home/rad/radrnh/.ddd/sessions/110a030404000101731825600000278720060/history"...
#  Copying "/v/home/rad/radrnh/.ddd/history" to 
"/v/home/rad/radrnh/.ddd/sessions/110a030404000101731825600000278720060/history"...done.
#  Saving session in 
"/v/home/rad/radrnh/.ddd/sessions/110a030404000101731825600000278720060/init"...
#  Searching "ddd/Ddd"...
#  Trying "/v/home/rad/radrnh/.ddd/ddd/Ddd"
#  Trying "/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/DDD/ddd/Ddd"
#  Trying "/usr/local/packages/aspex/package/ddd-3.3/share/ddd-3.3/ddd/Ddd"
#  Searching 
"ddd/Ddd"..."/usr/local/packages/aspex/package/ddd-3.3/share/ddd-3.3/ddd/Ddd".
#  Saving session in 
"/v/home/rad/radrnh/.ddd/sessions/110a030404000101731825600000278720060/init"...done.
<- "(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"
<- "1\tint main(void)\n"
   "2\t{\n"
   "3\t  int i;\n"
   "4\t  int j[16] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};\n"
   "5\t\n"
   "6\t  while(1) {\n"
   "7\t    for (i = 0; i < 16; i++) {\n"
   "8\t      j[i] = i + 1;\n"
   "9\t    }\n"
   "10\t\n"
   "(gdb) "
-> "info line\n"
<- "Line 10 of \"tst.c\" is at address 0x8048410 <main+80> but contains no 
code.\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:10:167:beg:0x8048410\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 5.0\n"
   "Copyright 2000 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 \"i686-pc-linux-gnu\".\n"
   "(gdb) "
-> "pwd\n"
<- "Working directory 
/a/asp-08/root/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count.\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 
\"/a/asp-08/root/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/.gdb_history\".\n"
   "(gdb) "
-> "show history size\n"
<- "The size of the command history is 1000.\n"
   "(gdb) "
#  Reading file 
"/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c"...
#  Reading file 
"/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c"...done.
#  File 
"/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c" 13 
lines, 220 characters
-> "info source\n"
<- "Current source file is tst.c\n"
   "Compilation directory is 
/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/\n"
   "Located in 
/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c\n"
   "Contains 13 lines.\n"
   "Source language is c.\n"
   "Compiled with stabs debugging format.\n"
   "(gdb) "
-> "info files\n"
<- "Symbols from 
\"/a/asp-08/root/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst\".\n"
   "Local exec file:\n"
   
"\t`/a/asp-08/root/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst\', 
file type elf32-i386.\n"
   "\tEntry point: 0x80482d0\n"
   "\t0x080480f4 - 0x08048107 is .interp\n"
   "\t0x08048108 - 0x08048128 is .note.ABI-tag\n"
   "\t0x08048128 - 0x08048154 is .hash\n"
   "\t0x08048154 - 0x080481b4 is .dynsym\n"
   "\t0x080481b4 - 0x08048227 is .dynstr\n"
   "\t0x08048228 - 0x08048234 is .gnu.version\n"
   "\t0x08048234 - 0x08048254 is .gnu.version_r\n"
   "\t0x08048254 - 0x0804825c is .rel.got\n"
   "\t0x0804825c - 0x08048274 is .rel.plt\n"
   "\t0x08048274 - 0x0804828c is .init\n"
   "\t0x0804828c - 0x080482cc is .plt\n"
   "\t0x080482d0 - 0x08048484 is .text\n"
   "\t0x08048484 - 0x080484a2 is .fini\n"
   "\t0x080484a4 - 0x080484ec is .rodata\n"
   "\t0x080494ec - 0x080494f8 is .data\n"
   "\t0x080494f8 - 0x080494fc is .eh_frame\n"
   "\t0x080494fc - 0x08049504 is .ctors\n"
   "\t0x08049504 - 0x0804950c is .dtors\n"
   "\t0x0804950c - 0x08049528 is .got\n"
   "\t0x08049528 - 0x080495c8 is .dynamic\n"
   "\t0x080495c8 - 0x080495e0 is .bss\n"
   "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
   "(gdb) "
-> "set confirm off\n"
<- "(gdb) "
-> "source /tmp/fileOchBHC\n"
<- "Byte order is not selectable.The target endianness is set automatically 
(currently little endian)\n"
   "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\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 files\n"
<- "Symbols from 
\"/a/asp-08/root/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst\".\n"
   "Local exec file:\n"
   
"\t`/a/asp-08/root/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst\', 
file type elf32-i386.\n"
   "\tEntry point: 0x80482d0\n"
   "\t0x080480f4 - 0x08048107 is .interp\n"
   "\t0x08048108 - 0x08048128 is .note.ABI-tag\n"
   "\t0x08048128 - 0x08048154 is .hash\n"
   "\t0x08048154 - 0x080481b4 is .dynsym\n"
   "\t0x080481b4 - 0x08048227 is .dynstr\n"
   "\t0x08048228 - 0x08048234 is .gnu.version\n"
   "\t0x08048234 - 0x08048254 is .gnu.version_r\n"
   "\t0x08048254 - 0x0804825c is .rel.got\n"
   "\t0x0804825c - 0x08048274 is .rel.plt\n"
   "\t0x08048274 - 0x0804828c is .init\n"
   "\t0x0804828c - 0x080482cc is .plt\n"
   "\t0x080482d0 - 0x08048484 is .text\n"
   "\t0x08048484 - 0x080484a2 is .fini\n"
   "\t0x080484a4 - 0x080484ec is .rodata\n"
   "\t0x080494ec - 0x080494f8 is .data\n"
   "\t0x080494f8 - 0x080494fc is .eh_frame\n"
   "\t0x080494fc - 0x08049504 is .ctors\n"
   "\t0x08049504 - 0x0804950c is .dtors\n"
   "\t0x0804950c - 0x08049528 is .got\n"
   "\t0x08049528 - 0x080495c8 is .dynamic\n"
   "\t0x080495c8 - 0x080495e0 is .bss\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) "
#  Opening session "110a030404000101731825600000278720060"...done.
#  Welcome to DDD 3.3 "Blues by Night" (i686-pc-linux-gnu)
-> "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) "
-> "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) "
-> "break tst.c:8\n"
<- "Breakpoint 1 at 0x80483f0: file tst.c, line 8.\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "(gdb) "
-> "set environment TERM dumb\n"
<- "(gdb) "
-> "run\n"
<- "\n"
<- "Breakpoint 1, main () at tst.c:8\n"
<- 
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
<- "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
<- "\tbreakpoint already hit 1 time\n"
<- "(gdb) "
-> "frame\n"
<- "#0  main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
<- "(gdb) "
-> "display j[0] @ 15\n"
<- "(gdb) "
-> "display\n"
<- "1: j[0] @ 15 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}\n"
<- "(gdb) "
#  Creating display...
#  Creating display...done.
>> "set term xlib\n"
   "set parametric\n"
   "set urange [0:1]\n"
   "set vrange [0:1]\n"
   "set trange [0:1]"
>> "set noborder\n"
   "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Display 1: j[0] @ 15 (enabled, scope main)
#  Display 1: j[0] @ 15 (enabled, scope main)
#  Retrieving Plot Settings...
>> "save \"/tmp/fileCPSvDb\""
#  Retrieving Plot Settings...done.
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 2 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 3 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 4 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 5 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 6 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 7 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 8 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 9 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 10 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 11 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 11, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 12 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 13 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 13, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 14 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 15 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 16 times\n"
   "(gdb) "
#  Updating displays...
>> "plot \"/tmp/fileLc3I5l\" title \"j[0] @ 15\""
#  Updating displays...done.
#  In display 1: j[0] @ 15 (double-click to show more)
#  In display 1: j[0] @ 15 (double-click to show more)
-> "cont\n"
<- "\n"
   "Breakpoint 1, main () at tst.c:8\n"
   
"\032\032/net/asp-08/ufs2/sys/sw/MMPCOS/mmpcos/src/Debugger/Examples/Count/tst.c:8:141:beg:0x80483f0\n"
   "1: j[0] @ 15 = {0 <repeats 15 times>}\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x080483f0 in main at tst.c:8\n"
   "\tbreakpoint already hit 17 times\n"
   "(gdb) "
#  Updating displays...
>> "set term xlib\n"
   "set parametric\n"
   "set urange [0:1]\n"
   "set vrange [0:1]\n"
   "set trange [0:1]"
>> "set noborder\n"
   "plot \"/tmp/fileu476hc\" title \"j[0] @ 15\""
!  Segmentation fault
-> "\003"
#  Warning: empty y range [0:0], adjusting to [-1:1]
<= "Warning: empty y range [0:0], adjusting to [-1:1]"
#  Retrieving Plot Settings...
>> "save \"/tmp/filehXyxPU\""
<- "Quit\n"
   "(gdb) "
+  /bin/sh -c 'gdb -x /tmp/fileEkukOK ddd 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 "i686-pc-linux-gnu"...
Core was generated by `ddd tst'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/X11R6/lib/libXm.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXm.so.2
Reading symbols from /usr/X11R6/lib/libXaw.so.7...done.
Loaded symbols for /usr/X11R6/lib/libXaw.so.7
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/X11R6/lib/libXp.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXp.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /usr/lib/libstdc++-libc6.2-2.so.3...done.
Loaded symbols for /usr/lib/libstdc++-libc6.2-2.so.3
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 /usr/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /usr/X11R6/lib/libXpm.so.4
Reading symbols from /usr/lib/libgpm.so.1...done.
Loaded symbols for /usr/lib/libgpm.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0  DispValue::update (this=0x85d27d0, address@hidden, 
    address@hidden, address@hidden, 
    given_type=UnknownType)
    at /usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/Box.h:139
139             if (--_links == 0)
#0  DispValue::update (this=0x85d27d0, address@hidden, 
    address@hidden, address@hidden, 
    given_type=UnknownType)
    at /usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/Box.h:139
#1  0x81d2d9e in DispNode::update (this=0x85d26d0, address@hidden)
    at 
/usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/DispNode.C:170
#2  0x81b4445 in DataDisp::process_displays (address@hidden, 
    address@hidden)
    at 
/usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/DataDisp.C:5325
#3  0x80d8295 in command_completed (data=0x8604348)
    at 
/usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/comm-manag.C:2254
#4  0x81e01a9 in GDBAgent::handle_input (this=0x83b0548, address@hidden)
    at 
/usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/GDBAgent.C:1533
#5  0x81ded4d in GDBAgent::InputHP (agent=0x83b0548, call_data=0xbffdd890)
    at 
/usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/GDBAgent.C:1212
#6  0x807a298 in HandlerList::call (this=0x83b056c, type=10, source=0x83b0548, 
    call_data=0xbffdd890)
    at 
/usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/HandlerL.C:152
#7  0x807b82e in LiterateAgent::dispatch (this=0x83b0548, type=10, 
    data=0x405cb008 "", length=141)
    at /usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/Agent.h:175
#8  0x807b926 in LiterateAgent::inputReady (c=0x83b0548)
    at 
/usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/LiterateA.C:372
#9  0x8079b61 in AsyncAgent::dispatch (this=0x83b0548, inputId=0xbfffd954)
    at 
/usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/AsyncAgent.h:205
#10 0x4021cfde in XtRemoveInput () from /usr/X11R6/lib/libXt.so.6
#11 0x4021d15f in XtAppNextEvent () from /usr/X11R6/lib/libXt.so.6
#12 0x8055d92 in process_next_event ()
    at /usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/ddd.C:2963
#13 0x81204f8 in ddd_main_loop ()
    at 
/usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/mainloop.C:106
#14 0x80548b5 in main (argc=2, argv=0xbfffeb14)
    at /usr/local/packages/aspex/buildarea/otherpack/src/ddd-3.3/ddd/ddd.C:2917
#15 0x404385b0 in __libc_start_main () from /lib/libc.so.6
#  Retrieving Plot Settings...done.
#  Deleting session "110a030404000101731825600000278720060"...
#  Current session is [none].
#  Deleting session "110a030404000101731825600000278720060"...done.
-> "quit\n"
#  Running GDB (pid 3813, tty /dev/pts/3)...Exit 0.
#  Saving history in "/v/home/rad/radrnh/.ddd/history"...
#  Saving history in "/v/home/rad/radrnh/.ddd/history"...done.
#  Thanks for using DDD 3.3!  (We apologize for the inconvenience.)

reply via email to

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