bug-ddd
[Top][All Lists]
Advanced

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

DDD 3.3.1 (x86_64-redhat-linux-gnu) gets `BadWindow' error


From: Yingping Lu
Subject: DDD 3.3.1 (x86_64-redhat-linux-gnu) gets `BadWindow' error
Date: Mon, 26 Sep 2005 14:41:19 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

Hello,

When I was using ddd to debug xfs_repair code, I got "BadWindow" error, and ddd exited just after I launched it. I already used "-g" in building xfs_repair to generate symbol info. The platform is Linux x86_64. Any idea how to get around?

Thanks,

Yingping

PS:
uname -a:
Linux penguin12 2.4.21-32.0.1.EL.sgi15smp #1 SMP Mon Aug 15 01:18:43 CDT 2005 x86_64 x86_64 x86_64 GNU/Linux

[root@penguin12 repair]# ddd xfs_repair
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
(Annoyed?  Try 'Edit->Preferences->General->Suppress X Warnings'!)
Warning: Cannot convert string "%s" to type %s
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
Warning: Cannot convert string "%s" to type %s
Warning: Could not load font "-*-lucidatypewriter-medium-*-*-*-*-120-*-*-*-*-iso 8859-*", using font "fixed" instead Warning: Could not load font "-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-iso 8859-*", using font "fixed" instead Warning: Could not load font "-*-lucidatypewriter-bold-*-*-*-*-120-*-*-*-*-iso88 59-*", using font "fixed" instead
X Error of failed request:  BadWindow (invalid Window parameter)
 Major opcode of failed request:  3 (X_GetWindowAttributes)
 Resource id in failed request:  0xc3cb32
 Serial number of failed request:  6167
 Current serial number in output stream:  6168
 Widget hierarchy of resource:  unknown
X Error of failed request:  BadWindow (invalid Window parameter)
 Major opcode of failed request:  3 (X_GetWindowAttributes)
 Resource id in failed request:  0xc3cc26
 Serial number of failed request:  7604
 Current serial number in output stream:  7605
 Widget hierarchy of resource:  unknown
[root@penguin12 repair]# ddd xfs_repair
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
(Annoyed?  Try 'Edit->Preferences->General->Suppress X Warnings'!)
Warning: Cannot convert string "%s" to type %s
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
Warning: Cannot convert string "%s" to type %s
Warning: Could not load font "-*-lucidatypewriter-medium-*-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead Warning: Could not load font "-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead Warning: Could not load font "-*-lucidatypewriter-bold-*-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead
X Error of failed request:  BadWindow (invalid Window parameter)
 Major opcode of failed request:  3 (X_GetWindowAttributes)
 Resource id in failed request:  0xc3d5f2
 Serial number of failed request:  6179
 Current serial number in output stream:  6180
 Widget hierarchy of resource:  unknown
X Error of failed request:  BadWindow (invalid Window parameter)
 Major opcode of failed request:  3 (X_GetWindowAttributes)
 Resource id in failed request:  0xc3d6e6
 Serial number of failed request:  7491
 Current serial number in output stream:  7492
 Widget hierarchy of resource:  unknown
X Error of failed request:  BadWindow (invalid Window parameter)
 Major opcode of failed request:  3 (X_GetWindowAttributes)
 Resource id in failed request:  0xc3d6e6
 Serial number of failed request:  10526
 Current serial number in output stream:  10527
 Widget hierarchy of resource:  unknown
Xlib: unexpected async reply (sequence 0x3343)!
X Error of failed request:  BadWindow (invalid Window parameter)
 Major opcode of failed request:  3 (X_GetWindowAttributes)
 Resource id in failed request:  0xc3d6e6
 Serial number of failed request:  10643
 Current serial number in output stream:  13126
 Widget hierarchy of resource:  unknown

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.3.1 (x86_64-redhat-linux-gnu) 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.

GNU DDD 3.3.1 (x86_64-redhat-linux-gnu)
Copyright (C) 1995-1999 Technische Universitdt Braunschweig, Germany.
Copyright (C) 1999-2001 Universitdt Passau, Germany.

Compiled with GCC 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2), GNU libc 2.3
Requires X11R6, Xt11R6, Motif 2.2.3 (Motif Version 2.2.2)
Includes XPM 3.4.11, Athena Panner, DDD core
Built 2003-01-25 by Compile Server <bhcompile@dolly.devel.redhat.com>.
$  ddd xfs_repair
+  /bin/sh -c 'exec gdb -q -fullname '\''xfs_repair'\'''
#  Hello, world!
#  Starting GDB...
#  Enabling core dumps...
#  Enabling core dumps...done.
#  Running GDB (pid 952, tty /dev/pts/11)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/root/.ddd/vsllib/ddd.vsl"
#  Trying "/usr/share/ddd-3.3.1/vsllib/ddd.vsl"
#  Searching "vsllib/ddd.vsl"..."/usr/share/ddd-3.3.1/vsllib/ddd.vsl".
<- "Using host libthread_db library \"/lib64/tls/libthread_db.so.1\".\n"
<- "(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"
<- "430\t\t\t * doesn\'t get flushed out if no_modify is set\n"
   "431\t\t\t */\n"
<- "432\t\t\tmp->m_sb.sb_rsumino = first_prealloc_ino + 2;\n"
   "433\t\t}\n"
   "434\t\n"
   "435\t}\n"
   "436\t\n"
   "437\tint\n"
   "438\tmain(int argc, char **argv)\n"
   "439\t{\n"
<- "(gdb) "
-> "info line\n"
<- "Line 439 of \"xfs_repair.c\" starts at address 0x42a57b <main> and ends at 
0x42a58d <main+18>.\n"
<- 
"\032\032/root/xfs-cmds-clean/xfsprogs/repair/xfs_repair.c:439:10339:beg:0x42a57b\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 Red Hat Linux (6.3.0.0-0.30.1rh)\n"
   "Copyright 2004 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 \"x86_64-redhat-linux-gnu\".\n"
<- "(gdb) "
-> "pwd\n"
<- "Working directory /root/xfs-cmds-clean/xfsprogs/repair.\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 
\"/root/xfs-cmds-clean/xfsprogs/repair/.gdb_history\".\n"
<- "(gdb) "
-> "show history size\n"
<- "The size of the command history is 1000.\n"
<- "(gdb) "
#  Reading file "/root/xfs-cmds-clean/xfsprogs/repair/xfs_repair.c"...
#  Reading file "/root/xfs-cmds-clean/xfsprogs/repair/xfs_repair.c"...done.
#  File "/root/xfs-cmds-clean/xfsprogs/repair/xfs_repair.c" 617 lines, 16427 
characters
!  X error
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0xc3d5f2
  Serial number of failed request:  6179
  Current serial number in output stream:  6180
  Widget hierarchy of resource:  unknown
#  Setting buttons...
#  Setting buttons...done.
-> "info source\n"
<- "Current source file is xfs_repair.c\n"
   "Compilation directory is /root/xfs-cmds-clean/xfsprogs/repair\n"
   "Located in /root/xfs-cmds-clean/xfsprogs/repair/xfs_repair.c\n"
   "Contains 617 lines.\n"
   "Source language is c.\n"
   "Compiled with DWARF 2 debugging format.\n"
   "Does not include preprocessor macro info.\n"
<- "(gdb) "
-> "info files\n"
<- "Symbols from \"/root/xfs-cmds-clean/xfsprogs/repair/xfs_repair\".\n"
   "Local exec file:\n"
   "\t`/root/xfs-cmds-clean/xfsprogs/repair/xfs_repair\', file type 
elf64-x86-64.\n"
   "\tEntry point: 0x401810\n"
<- "\t0x0000000000400200 - 0x000000000040021c is .interp\n"
   "\t0x000000000040021c - 0x000000000040023c is .note.ABI-tag\n"
   "\t0x0000000000400240 - 0x0000000000400470 is .hash\n"
   "\t0x0000000000400470 - 0x0000000000400b18 is .dynsym\n"
   "\t0x0000000000400b18 - 0x0000000000400d8a is .dynstr\n"
   "\t0x0000000000400d8a - 0x0000000000400e18 is .gnu.version\n"
   "\t0x0000000000400e18 - 0x0000000000400e38 is .gnu.version_r\n"
   "\t0x0000000000400e38 - 0x0000000000400eb0 is .rela.dyn\n"
   "\t0x0000000000400eb0 - 0x0000000000401438 is .rela.plt\n"
   "\t0x0000000000401438 - 0x0000000000401450 is .init\n"
   "\t0x0000000000401450 - 0x0000000000401810 is .plt\n"
   "\t0x0000000000401810 - 0x000000000045d0a8 is .text\n"
   "\t0x000000000045d0a8 - 0x000000000045d0b6 is .fini\n"
   "\t0x000000000045d0c0 - 0x00000000004733e4 is .rodata\n"
   "\t0x00000000004733e4 - 0x0000000000474cc0 is .eh_frame_hdr\n"
   "\t0x0000000000474cc0 - 0x000000000047d4f8 is .eh_frame\n"
   "\t0x000000000057d500 - 0x000000000057d738 is .data\n"
   "\t0x000000000057d738 - 0x000000000057d8d8 is .dynamic\n"
   "\t0x000000000057d8d8 - 0x000000000057d8e8 is .ctors\n"
   "\t0x000000000057d8e8 - 0x000000000057d8f8 is .dtors\n"
   "\t0x000000000057d8f8 - 0x000000000057d900 is .jcr\n"
   "\t0x000000000057d900 - 0x000000000057daf8 is .got\n"
   "\t0x000000000057db00 - 0x0000000000591fd0 is .bss\n"
<- "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
<- "(gdb) "
-> "set confirm off\n"
<- "(gdb) "
-> "source /tmp/dddBjA4U6\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 \"/root/xfs-cmds-clean/xfsprogs/repair/xfs_repair\".\n"
   "Local exec file:\n"
   "\t`/root/xfs-cmds-clean/xfsprogs/repair/xfs_repair\', file type 
elf64-x86-64.\n"
   "\tEntry point: 0x401810\n"
   "\t0x0000000000400200 - 0x000000000040021c is .interp\n"
   "\t0x000000000040021c - 0x000000000040023c is .note.ABI-tag\n"
   "\t0x0000000000400240 - 0x0000000000400470 is .hash\n"
   "\t0x0000000000400470 - 0x0000000000400b18 is .dynsym\n"
   "\t0x0000000000400b18 - 0x0000000000400d8a is .dynstr\n"
   "\t0x0000000000400d8a - 0x0000000000400e18 is .gnu.version\n"
   "\t0x0000000000400e18 - 0x0000000000400e38 is .gnu.version_r\n"
   "\t0x0000000000400e38 - 0x0000000000400eb0 is .rela.dyn\n"
   "\t0x0000000000400eb0 - 0x0000000000401438 is .rela.plt\n"
   "\t0x0000000000401438 - 0x0000000000401450 is .init\n"
   "\t0x0000000000401450 - 0x0000000000401810 is .plt\n"
   "\t0x0000000000401810 - 0x000000000045d0a8 is .text\n"
   "\t0x000000000045d0a8 - 0x000000000045d0b6 is .fini\n"
   "\t0x000000000045d0c0 - 0x00000000004733e4 is .rodata\n"
   "\t0x00000000004733e4 - 0x0000000000474cc0 is .eh_frame_hdr\n"
   "\t0x0000000000474cc0 - 0x000000000047d4f8 is .eh_frame\n"
   "\t0x000000000057d500 - 0x000000000057d738 is .data\n"
   "\t0x000000000057d738 - 0x000000000057d8d8 is .dynamic\n"
   "\t0x000000000057d8d8 - 0x000000000057d8e8 is .ctors\n"
   "\t0x000000000057d8e8 - 0x000000000057d8f8 is .dtors\n"
   "\t0x000000000057d8f8 - 0x000000000057d900 is .jcr\n"
   "\t0x000000000057d900 - 0x000000000057daf8 is .got\n"
   "\t0x000000000057db00 - 0x0000000000591fd0 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) "
#  Starting GDB...done.
#  Welcome to DDD 3.3.1 "Blue Gnu" (x86_64-redhat-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"
!  X error
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0xc3d6e6
  Serial number of failed request:  7491
  Current serial number in output stream:  7492
  Widget hierarchy of resource:  unknown
<- "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 location (same args as break command) within the current 
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) "
-> "output temp_mp\n"
<- "No symbol \"temp_mp\" in current context.\n"
<- "(gdb) "
!  X error
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0xc3d6e6
  Serial number of failed request:  10526
  Current serial number in output stream:  10527
  Widget hierarchy of resource:  unknown
!  X error
#  Saving history in "/root/.ddd/history"...
#  Saving history in "/root/.ddd/history"...done.
#  Thanks for using DDD 3.3.1!  (We apologize for the inconvenience.)
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0xc3d6e6
  Serial number of failed request:  10643
  Current serial number in output stream:  13126
  Widget hierarchy of resource:  unknown

reply via email to

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