Your message dated Tue, 11 Dec 2001 16:25:53 +0100 with message-id <[EMAIL PROTECTED]> and subject line Fixed in xxgdb 1.12-9.4potato has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 22 Apr 2001 17:57:18 +0000 >From [EMAIL PROTECTED] Sun Apr 22 12:57:18 2001 Return-path: <[EMAIL PROTECTED]> Received: from fandango.cs.unitn.it [193.205.199.228] (root) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14rO6n-0007AF-00; Sun, 22 Apr 2001 12:57:18 -0500 Received: from nikita.dz.net (full200.sara.unitn.it [193.205.210.200]) by fandango.cs.unitn.it (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id TAA12398 for <[EMAIL PROTECTED]>; Sun, 22 Apr 2001 19:57:30 +0200 X-Authentication-Warning: fandango.cs.unitn.it: Host full200.sara.unitn.it [193.205.210.200] claimed to be nikita.dz.net Received: (from [EMAIL PROTECTED]) by nikita.dz.net (8.9.3/8.9.3/Debian 8.9.3-21) id OAA02581 for [EMAIL PROTECTED]; Sun, 22 Apr 2001 14:34:25 +0200 From: Massimo Dal Zotto <[EMAIL PROTECTED]> Message-Id: <[EMAIL PROTECTED]> Subject: libXaw error when open() returns fd 0 To: [EMAIL PROTECTED] Date: Sun, 22 Apr 2001 14:34:24 +0200 (MEST) X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Delivered-To: [EMAIL PROTECTED] Package: xlib6g Version: 3.3.6-11potato32 Severity: serious After upgrading xlib6g to version 3.3.6-11potato32 the xxgdb source window can't display the source text. The error printed on stderr is: Warning: Cannot open file /tmp/nap-1.4.4-ps8/nap.c; Resource temporarily unavailable Tracing xxgdb gives the following interesting output: [pid 31074] access("/tmp/nap-1.4.4-ps8/nap.c", R_OK) = 0 [pid 31074] open("/tmp/nap-1.4.4-ps8/nap.c", O_RDONLY) = 0 [pid 31074] fstat(0, {st_mode=S_IFREG|0644, st_size=48333, ...}) = 0 [pid 31074] brk(0x80b6000) = 0x80b6000 [pid 31074] read(0, "/* Copyright (c) 2000 Kevin Sul"..., 48334) = 48333 [pid 31074] brk(0x80b9000) = 0x80b9000 [pid 31074] close(0) = 0 [pid 31074] open("/tmp/nap-1.4.4-ps8/nap.c", O_RDONLY) = 0 [pid 31074] open("/usr/X11R6/lib/X11/XtErrorDB", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 31074] getuid() = 0 [pid 31074] geteuid() = 0 [pid 31074] getuid() = 0 [pid 31074] write(2, "Warning: ", 9Warning: ) = 9 [pid 31074] write(2, "Cannot open file /home/dz/src/pa"..., 99Cannot open file /tmp/nap-1.4.4-ps8/nap.c; Resource temporarily unavailable) = 99 [pid 31074] write(2, "\n", 1 ) = 1 After examining the xxgdb sources I have deduced that the bug is in libXaw which signals an error if the fd returned by open() is 0. This is confirmed by the fact that the following patch to xxgdb fixes the bug: --- xxgdb-1.12/calldbx.c.orig Sun Apr 22 12:23:18 2001 +++ xxgdb-1.12/calldbx.c Sun Apr 22 13:59:34 2001 @@ -325,6 +325,10 @@ close(0); close(1); + /* Reallocate fd 0 and 1 to prevent libXaw bug in DisplayFile() - dz */ + open("/dev/null", O_RDONLY); + open("/dev/null", O_RDONLY); + #ifdef _POSIX_SOURCE fcntl(master, F_SETFL, O_NONBLOCK); #else Packages installed: $ ldd xxgdb libXaw.so.6 => /usr/X11R6/lib/libXaw.so.6 (0x40014000) libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x4004d000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4005f000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x400a7000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x400b0000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x400c6000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400d2000) libc.so.6 => /lib/libc.so.6 (0x4017a000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) $ dpkg -l xxgdb gdb libc6 xlib6g Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-========-================-================================================= ii xxgdb 1.12-9.3 A X front-end to the GNU debugger gdb ii gdb 4.18.19990928-1 The GNU Debugger ii libc6 2.1.3-17 GNU C Library: Shared libraries and Timezone data ii xlib6g 3.3.6-11potato32 shared libraries required by X clients -- Massimo Dal Zotto +----------------------------------------------------------------------+ | Massimo Dal Zotto email: [EMAIL PROTECTED] | | Via Marconi, 141 phone: ++39-0461534251 | | 38057 Pergine Valsugana (TN) www: http://www.cs.unitn.it/~dz/ | | Italy pgp: see my www home page | +----------------------------------------------------------------------+ --------------------------------------- Received: (at 94892-done) by bugs.debian.org; 11 Dec 2001 15:28:59 +0000 >From [EMAIL PROTECTED] Tue Dec 11 09:28:59 2001 Return-path: <[EMAIL PROTECTED]> Received: from jagor.srce.hr [161.53.2.130] (mvela) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 16Dopx-0000nd-00; Tue, 11 Dec 2001 09:28:57 -0600 Received: (from [EMAIL PROTECTED]) by jagor.srce.hr (8.9.3/8.9.3) id QAA27522 for [EMAIL PROTECTED]; Tue, 11 Dec 2001 16:25:53 +0100 (MET) Date: Tue, 11 Dec 2001 16:25:53 +0100 From: Matej Vela <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Fixed in xxgdb 1.12-9.4potato Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Delivered-To: [EMAIL PROTECTED] Here are the relevant changelog entries: xxgdb (1.12-9.4potato) stable; urgency=low [...] * Applied a patch from Massimo Dal Zotto <[EMAIL PROTECTED]>. This is a workaround for a serious bug (#94892) in libXaw. -- Bas Zoetekouw <[EMAIL PROTECTED]> Sun, 22 Apr 2001 20:47:42 +0200 xfree86 (4.1.0-1) unstable; urgency=medium [...] * patch #000_post-410: some fixes from xf-4_1-branch: [...] + Fix problem in Ib/Xaw/AsciiSrc.c:nitStringOrFile() when descriptor 0 is closed, as a zero return value from open(2) is taken as an error (splite at purdue.edu). [...] -- Branden Robinson <[EMAIL PROTECTED]> Sat, 28 Jul 2001 00:37:19 -0500 (Unfortunately, xxgdb 1.12-9.4potato is stuck in potato-proposed-updates, but keeping this bug open won't change that.) Thanks, Matej