bug-ddd
[Top][All Lists]
Advanced

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

bug detected


From: Hans-Henrik Staerfeldt
Subject: bug detected
Date: Tue, 16 Jan 2001 17:26:23 +0100 (MET)

I hope this helps.

Thank you for an exellent program :-)


  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  325393
  Current serial number in output stream:  325396
/bin/sh -c 'exec gdb -q -fullname' [7412713]: Agent wouldn't die (Hangup)
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  325395
  Current serial number in output stream:  325608

X error (invalid Window parameter).

Oops!  You have found a bug in DDD.

If you can reproduce this bug, please send a bug report
to <bug-ddd@gnu.org>, giving a subject like

    DDD 3.2 (mips-sgi-irix6.5) gets `BadWindow' error

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.

* What you were doing to get this message.

I was using the display window, where i had displayed a
pointer to (an array of) long int (allocated trhough calloc).

I displayed the first value of the array (*())

I selected that value (value was 0)

I pressed Plot History()

It crashed :-).

I just tried it again. It is reproducable.

content of ~/.ddd/log :


GNU DDD 3.2 (mips-sgi-irix6.5)
Copyright (C) 1995-1999 Technische Universitaet Braunschweig, Germany.
Copyright (C) 1999-2000 Universitaet Passau, Germany.
Compiled with GCC 2.8.1, libstdc++ 2.8.1
Requires X11R6, Xt11R6, Motif 1.2.4 (OSF/Motif Version 1.2.4)
Includes DDD core, Manual, App defaults, XPM 3.4.6, Athena Panner
Built 2000-02-15 by Hans-Henrik Staerfeldt <hhs@cbs.dtu.dk>.
$  ddd
+  /bin/sh -c 'exec gdb -q -fullname'
#  Hello, world!
#  Starting GDB...
#  Raising core file size limit from 10485760 to -1 bytes...
#  Raising core file size limit from 10485760 to -1 bytes...done.
#  Running GDB (pid 7377726, tty /dev/ttyq32)...
#  Current language: c/c++
<- "(gdb) "
-> "set prompt (gdb) "
<- "(gdb) "
-> "set height 0"
<- "(gdb) "
-> "set width 0"
<- "(gdb) "
-> "set annotate 1"
<- "(gdb) "
-> " set verbose off"
<- "(gdb) "
-> "info line"
<- "No line number information available."
<- "(gdb) "
-> "list"
<- "No symbol table is loaded.  Use the \"file\" command."
<- "(gdb) "
-> "info line"
<- "No line number information available."
<- "(gdb) "
-> "output 4711"
<- "4711(gdb) "
-> "show language"
<- "The current source language is \"auto; currently c\"."
<- "(gdb) "
-> "pwd"
<- "Working directory /home/genome6/hhs/peder."
<- "(gdb) "
-> "info breakpoints"
<- "No breakpoints or watchpoints."
<- "(gdb) "
-> "show history filename"
<- "The filename in which to record the command history is 
\"/home/genome6/hhs/peder/.gdb_history\"."
<- "(gdb) "
-> "show history size"
<- "The size of the command history is 256."
<- "(gdb) "
-> "info files"
<- "(gdb) "
-> "info program"
<- "The program being debugged is not being run."
<- "(gdb) "
-> "source /var/tmp/caaa0RkuX"
<- "(gdb) "
-> "info breakpoints"
<- "No breakpoints or watchpoints."
<- "(gdb) "
-> "# reset"
<- "(gdb) "
-> "info breakpoints"
<- "No breakpoints or watchpoints."
<- "(gdb) "
-> "display"
<- "(gdb) "
-> "info display"
<- "There are no auto-display expressions now."
<- "(gdb) "
-> "set environment TERM dumb"
<- "(gdb) "
-> "info files"
<- "(gdb) "
-> "info program"
<- "The program being debugged is not being run."
<- "(gdb) "
-> "help detach"
<- "Detach a process or file previously attached."
<- "If a process, it is no longer traced, and it continues its execution.  If 
you"
<- "were debugging a file, the file is closed and gdb no longer accesses it."
<- "(gdb) "
-> "help run"
<- "Start debugged program.  You may specify arguments to give it."
<- "Args may include \"*\", or \"[...]\"; they are expanded using \"sh\"."
<- "Input and output redirection with \">\", \"<\", or \">>\" are also allowed."
<- ""
<- "With no arguments, uses arguments last specified (with \"run\" or \"set 
args\")."
<- "To cancel previous arguments and run with no arguments,"
<- "use \"set args\" without arguments."
<- "(gdb) "
-> "help step"
<- "Step program until it reaches a different source line."
<- "Argument N means do this N times (or till program stops for another 
reason)."
<- "(gdb) "
-> "help stepi"
<- "Step one instruction exactly."
<- "Argument N means do this N times (or till program stops for another 
reason)."
<- "(gdb) "
-> "help next"
<- "Step program, proceeding through subroutine calls."
<- "Like the \"step\" command as long as subroutine calls do not happen;"
<- "when they do, the call is treated as one instruction."
<- "Argument N means do this N times (or till program stops for another 
reason)."
<- "(gdb) "
-> "help nexti"
<- "Step one instruction, but proceed through subroutine calls."
<- "Argument N means do this N times (or till program stops for another 
reason)."
<- "(gdb) "
#  Starting GDB...done.
#  Welcome to DDD 3.2 "Man Ray" (mips-sgi-irix6.5)
-> "help until"
<- "Execute until the program reaches a source line greater than the current"
<- "or a specified line or address or function (same args as break command)."
<- "Execution will also stop upon exit from the current stack frame."
<- "(gdb) "
-> "help finish"
<- "Execute until selected stack frame returns."
<- "Upon return, the value returned is printed and put in the value history."
<- "(gdb) "
-> "help cont"
<- "Continue program being debugged, after signal or breakpoint."
<- "If proceeding from breakpoint, a number N may be used as an argument,"
<- "which means to set the ignore count of that breakpoint to N - 1 (so that"
<- "the breakpoint won\'t break until the Nth time it is reached)."
<- "(gdb) "
-> "help signal"
<- "Continue program giving it signal specified by the argument."
<- "An argument of \"0\" means continue program without giving it a signal."
<- "(gdb) "
-> "help kill"
<- "Kill execution of program being debugged."
<- "(gdb) "
-> "help up"
<- "Select and print stack frame that called this one."
<- "An argument says how many frames up to go."
<- "(gdb) "
-> "help down"
<- "Select and print stack frame called by this one."
<- "An argument says how many frames down to go."
<- "(gdb) "
-> "frame"
<- "No stack."
<- "(gdb) "
-> "display countA"
<- "No symbol table is loaded.  Use the \"file\" command."
<- "(gdb) "
!  No symbol table is loaded.  Use the "file" command.
-> "help recentMenu"
<- "Undefined command: \"recentMenu\".  Try \"help\"."
<- "(gdb) "
#  Filtering files...
#  Filtering files...done.
-> "info files"
<- "(gdb) "
-> "info program"
<- "The program being debugged is not being run."
<- "(gdb) "
-> "file /home/genome6/hhs/peder/origin"
<- "Reading symbols from /home/genome6/hhs/peder/origin...done."
<- "(gdb) "
-> "info line"
<- "No line number information available."
<- "(gdb) "
-> "list"
<- "Source file is more recent than executable."
<- "246\t      "
<- "247\t      movewindow( p );"
<- "248\t      if (p%1000==0)"
<- "249\t\tshowscore( p );"
<- "250\t   }"
<- "251\t}"
<- "252\t"
<- "253\tint main(int argc,char *argv[]) {"
<- "254\t"
<- "255\t   init();"
<- "(gdb) "
-> "info line"
<- "Line 255 of \"origin.c\" starts at address 0x10002b9c <main+40> and ends at 
0x10002ba8 <main+52>."
<- "\032\032/home/genome6/hhs/peder/origin.c:255:4835:beg:0x10002b9c"
<- "(gdb) "
-> "info breakpoints"
<- "No breakpoints or watchpoints."
<- "(gdb) "
-> "display"
<- "(gdb) "
-> "info display"
<- "There are no auto-display expressions now."
<- "(gdb) "
#  Reading file "/home/genome6/hhs/peder/origin.c"...
#  Reading file "/home/genome6/hhs/peder/origin.c"...done.
#  File "/home/genome6/hhs/peder/origin.c" 266 lines, 7947 characters
#  Setting buttons...
#  Setting buttons...done.
-> "info files"
<- "Symbols from \"/home/genome6/hhs/peder/origin\"."
<- "Local exec file:"
<- "\t`/home/genome6/hhs/peder/origin\', file type elf32-bigmips."
<- "\tEntry point: 0x100015d0"
<- "\t0x10000114 - 0x10000129 is .interp"
<- "\t0x10000130 - 0x100001b0 is .MIPS.options"
<- "\t0x100001b0 - 0x100001c8 is .reginfo"
<- "\t0x100001c8 - 0x100002f0 is .dynamic"
<- "\t0x100002f0 - 0x10000318 is .liblist"
<- "\t0x10000ad4 - 0x100011b4 is .dynsym"
<- "\t0x10000318 - 0x10000711 is .dynstr"
<- "\t0x10000714 - 0x10000ad4 is .hash"
<- "\t0x100011b4 - 0x10001222 is .MIPS.symlib"
<- "\t0x10001224 - 0x10001244 is .rel.dyn"
<- "\t0x10001244 - 0x100015b4 is .msym"
<- "\t0x100015b4 - 0x100015d0 is .MIPS.stubs"
<- "\t0x100015d0 - 0x10003dd8 is .text"
<- "\t0x10003dd8 - 0x10003e28 is .init"
<- "\t0x10003e28 - 0x10003e60 is .fini"
<- "\t0x10014000 - 0x100143dc is .rodata"
<- "\t0x100143e0 - 0x10014418 is .data"
<- "\t0x10014418 - 0x1001441c is .eh_frame"
<- "\t0x1001441c - 0x10014424 is .dtors"
<- "\t0x10014424 - 0x1001442c is .ctors"
<- "\t0x1001442c - 0x10014558 is .got"
<- "\t0x10014560 - 0x10014be0 is .bss"
<- "(gdb) "
-> "info program"
<- "The program being debugged is not being run."
<- "(gdb) "
-> "output offset"
<- "{0 <repeats 64 times>}(gdb) "
-> "output countA"
<- "(long int *) 0x0(gdb) "
-> "frame"
<- "No stack."
<- "(gdb) "
-> "display countA"
<- "(gdb) "
-> "display"
<- "1: countA = (long int *) 0x0"
<- "(gdb) "
#  Creating display...
#  Creating display...done.
#  Display 1: countA (enabled)
#  Display 1: countA (enabled)
-> "output SIGMA"
<- "No symbol \"SIGMA\" in current context."
<- "(gdb) "
-> "info source"
<- "Current source file is origin.c"
<- "Compilation directory is /home/genome6/hhs/peder"
<- "Located in /home/genome6/hhs/peder/origin.c"
<- "Contains 266 lines."
<- "Source language is c."
<- "Compiled with DWARF 2 debugging format."
<- "(gdb) "
-> "tbreak origin.c:73"
<- "Breakpoint 1 at 0x10001a80: file origin.c, line 73."
<- "(gdb) "
-> "info breakpoints"
<- "Num Type           Disp Enb Address    What"
<- "1   breakpoint     del  y   0x10001a80 in init at origin.c:73"
<- "(gdb) "
-> "cont"
<- "The program is not being run."
<- "(gdb) "
-> "info breakpoints"
<- "Num Type           Disp Enb Address    What"
<- "1   breakpoint     del  y   0x10001a80 in init at origin.c:73"
<- "(gdb) "
#  Updating displays...
#  Updating displays...done.
#  The program is not being run.

-> "delete 1"
<- "(gdb) "
-> "info breakpoints"
<- "No breakpoints or watchpoints."
<- "(gdb) "
-> "break origin.c:73"
<- "Breakpoint 2 at 0x10001a80: file origin.c, line 73."
<- "(gdb) "
-> "info breakpoints"
<- "Num Type           Disp Enb Address    What"
<- "2   breakpoint     keep y   0x10001a80 in init at origin.c:73"
<- "(gdb) "
-> "set environment TERM dumb"
<- "(gdb) "
-> "run"
<- "Starting program: /home/genome6/hhs/peder/origin "
<- ""
<- "Breakpoint 2, init () at origin.c:73"
<- "\032\032/home/genome6/hhs/peder/origin.c:73:1414:beg:0x10001a80"
<- "1: countA = (long int *) 0x10015008"
<- "(gdb) "
-> "info breakpoints"
<- "Num Type           Disp Enb Address    What"
<- "2   breakpoint     keep y   0x10001a80 in init at origin.c:73"
<- "\tbreakpoint already hit 1 time"
<- "(gdb) "
#  Updating displays...
#  Updating displays...done.
-> "output complement"
<- "\'X\' <repeats 65 times>, \"TXGXXXC\", \'X\' <repeats 12 times>, \"A\", 
\'X\' <repeats 12 times>, \"TXgXXXc\", \'X\' <repeats 12 times>, \"a\", \'X\' 
<repeats 139 times>(gdb) "
#  In display 1: countA (double-click to dereference)
#  In display 1: countA (double-click to dereference)
#  In display 1: countA (double-click to dereference)
#  In display 1: countA (double-click to dereference)
-> "frame"
<- "#0  init () at origin.c:73"
<- "\032\032/home/genome6/hhs/peder/origin.c:73:1414:beg:0x10001a80"
<- "(gdb) "
-> "display *countA"
<- "2: *countA = "
<- "0"
<- "(gdb) "
#  Creating display...
#  Creating display...done.
#  Display 2: *countA (enabled, scope init)
#  Display 2: *countA (enabled, scope init)
#  Display 2: *countA (enabled, scope init)
#  Display 2: *countA (enabled, scope init)
-> "frame"
<- "#0  init () at origin.c:73"
<- "\032\032/home/genome6/hhs/peder/origin.c:73:1414:beg:0x10001a80"
<- "(gdb) "
#  Creating status display...
#  Creating status 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 \"/var/tmp/daaa0RkuX\" title \"*countA\""
#  Updating histories...
>> "set title\n"
   "replot"
#  Updating histories...done.
#  Display -1: `graph history *countA` (enabled)
#  Display -1: `graph history *countA` (enabled)
#  Warning: empty y range [0:0], adjusting to [-1:1]
<= "Warning: empty y range [0:0], adjusting to [-1:1]"
!  X error
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  31639
  Current serial number in output stream:  31642
!  X error
#  Saving history in "/home/genome6/hhs/.ddd/history"...
#  Saving history in "/home/genome6/hhs/.ddd/history"...done.
#  Thanks for using DDD 3.2!  (We apologize for the inconvenience.)
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  31641
  Current serial number in output stream:  31783


Hans Henrik Stærfeldt   |    bombman@diku.dk    | work:  hhs@cbs.dtu.dk      |
Address:                |___  +45 40383492    __|__       +45 45252425     __|
DTU, Kemitorvet,        | Scientific programmer at Center for Biological     |
bygn 208, CBS.          |  Sequence Analysis, Technical University of Denmark|




reply via email to

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