From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ralf Fassel Newsgroups: gmane.emacs.bugs Subject: Re: `print' does not print Date: Fri, 22 Mar 2002 23:18:44 +0100 Organization: Akustik Technologie Goettingen Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <15515.44484.750836.448899@jupiter.akutech-local.de> References: <200203202019.g2KKJfs4410490@jupiter.akutech-local.de> <2593-Fri22Mar2002121734+0200-eliz@is.elta.co.il> <15515.2661.133668.691007@jupiter.akutech-local.de> <3791-Fri22Mar2002135807+0200-eliz@is.elta.co.il> <15515.15905.64808.177966@jupiter.akutech-local.de> <2110-Fri22Mar2002190057+0200-eliz@is.elta.co.il> <15515.28200.228210.321561@jupiter.akutech-local.de> <1659-Fri22Mar2002203525+0200-eliz@is.elta.co.il> <15515.33581.247374.275450@jupiter.akutech-local.de> <1190-Fri22Mar2002221156+0200-eliz@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1016836579 16723 127.0.0.1 (22 Mar 2002 22:36:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 22 Mar 2002 22:36:19 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16oXdz-0004LP-00 for ; Fri, 22 Mar 2002 23:36:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16oXdy-0004Z3-00; Fri, 22 Mar 2002 17:36:18 -0500 Original-Received: from mail.t-intra.de ([62.156.146.210]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16oXNM-0001vq-00 for ; Fri, 22 Mar 2002 17:19:08 -0500 Original-Received: from jupiter.akutech-local.de ([217.84.231.161]) by mail.t-intra.de with Microsoft SMTPSVC(5.5.1877.507.50); Fri, 22 Mar 2002 23:18:46 +0100 Original-Received: (from ralf@localhost) by jupiter.akutech-local.de (8.11.1/8.11.1) id g2MMIjo4517931; Fri, 22 Mar 2002 23:18:45 +0100 (MET) Original-To: Eli Zaretskii In-Reply-To: <1190-Fri22Mar2002221156+0200-eliz@is.elta.co.il> Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:101 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:101 * Eli Zaretskii | Hmmm... what about the stdout FILE object--can you look at its | members and see if something's wrong with it at that point? gcc: Breakpoint 3, printchar (ch=10, fun=273132596) at print.c:333 333 fwrite (str, 1, len, stdout); (gdb) p __iob[1] $1 = { _cnt = 0, _ptr = 0x0, _base = 0x0, _flag = 2 '\002', _o_file = 1 '\001', _file = 1 } (gdb) next 334 noninteractive_need_newline = 1; (gdb) p __iob[1] $2 = { _cnt = 0, _ptr = 0x0, _base = 0x0, _flag = 2 '\002', _o_file = 1 '\001', _file = 1 } unchanged. cc: Breakpoint 4, printchar (ch=10, fun=272911412) at print.c:333 333 fwrite (str, 1, len, stdout); (gdb) p __iob[1] $6 = { _cnt = 0, _ptr = 0x0, _base = 0x0, _flag = 2 '\002', _o_file = 1 '\001', _file = 1 } (gdb) next 334 noninteractive_need_newline = 1; (gdb) p __iob[1] $7 = { _cnt = 0, _ptr = 0x10389f20 "\n", _base = 0x10389f20 "\n", _flag = 66 'B', _o_file = 1 '\001', _file = 1 } filled. So there _is_ a difference: cc fills the struct, gcc doesn't. Here is what happens if I `step' into fwrite: I see with gcc: fwrite () at engine.c:601 _wrtchk () at exportent.c:396 ! setoserror () at aio.c:314 _wrtchk () at exportent.c:383 383 exportent.c: No such file or directory. fwrite () at engine.c:554 printchar (ch=34, fun=273132596) at print.c:334 ========================================================== cc: fwrite () at engine.c:601 _wrtchk () at exportent.c:396 ! _findbuf () at aio.c:397 ctlslave () at aio.c:549 isatty () at aio.c:200 ioctl () at mpconf.c:160 Program received signal SIGTRAP, Trace/breakpoint trap. and I always get that SIGTRAP which restarts the fwrite again, but the difference at ! is obvious. BTW, the bootstrap-emacs in the CVS tree shows the same symptoms as 21.2, no printing. gmake has not yet finished completely (compiling .elc files currently), but I don't expect it to behave differently in the end :-( Bedtime now. R' _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs