From: Ralf Fassel <ralf@akutech.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: `print' does not print
Date: Fri, 22 Mar 2002 23:18:44 +0100 [thread overview]
Message-ID: <15515.44484.750836.448899@jupiter.akutech-local.de> (raw)
In-Reply-To: <1190-Fri22Mar2002221156+0200-eliz@is.elta.co.il>
* 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
next prev parent reply other threads:[~2002-03-22 22:18 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200203202019.g2KKJfs4410490@jupiter.akutech-local.de>
[not found] ` <ap3lmcnkjy4.fsf@fosters.umd.edu>
2002-03-21 16:25 ` `print' does not print Eli Zaretskii
2002-03-21 17:10 ` D. Goel
2002-03-21 18:49 ` Ralf Fassel
2002-03-21 20:15 ` Ralf Fassel
2002-03-21 21:14 ` Ralf Fassel
2002-03-22 10:17 ` Eli Zaretskii
2002-03-22 10:41 ` Ralf Fassel
2002-03-22 11:58 ` Eli Zaretskii
2002-03-22 14:22 ` Ralf Fassel
2002-03-22 17:00 ` Eli Zaretskii
2002-03-22 17:47 ` Ralf Fassel
2002-03-22 18:35 ` Eli Zaretskii
2002-03-22 19:17 ` Ralf Fassel
2002-03-22 20:11 ` Eli Zaretskii
2002-03-22 22:18 ` Ralf Fassel [this message]
2002-03-23 8:54 ` Eli Zaretskii
2002-03-23 14:19 ` Ralf Fassel
2002-03-23 16:48 ` Eli Zaretskii
2002-03-23 17:10 ` Ralf Fassel
2002-03-22 20:44 ` Stefan Monnier
2002-03-23 16:13 ` Richard Stallman
2002-03-24 16:51 ` Ralf Fassel
2002-03-24 18:16 ` Eli Zaretskii
2002-03-24 20:22 ` Ralf Fassel
2002-03-25 6:02 ` Eli Zaretskii
2002-03-25 13:47 ` Ralf Fassel
2002-03-25 14:35 ` Eli Zaretskii
2002-03-25 14:49 ` David Kaelbling
2002-03-25 20:05 ` Eli Zaretskii
2002-03-25 20:15 ` David Kaelbling
2002-03-26 5:46 ` Eli Zaretskii
2002-03-26 14:20 ` David Kaelbling
2002-03-26 14:28 ` Eli Zaretskii
2002-03-26 14:43 ` Ralf Fassel
2002-03-25 17:41 ` Ralf Fassel
2002-03-25 17:55 ` David Kaelbling
2002-03-25 20:14 ` Eli Zaretskii
2002-03-25 21:33 ` Ralf Fassel
2002-03-26 5:48 ` Eli Zaretskii
2002-03-26 14:43 ` David Kaelbling
2002-03-26 17:30 ` Ralf Fassel
2002-03-27 5:49 ` Eli Zaretskii
2002-03-27 9:00 ` Ralf Fassel
2002-03-27 9:10 ` Eli Zaretskii
2002-04-12 9:37 ` Eli Zaretskii
2002-04-12 11:31 ` Ralf Fassel
[not found] ` <15542.50594.404120.372721@jupiter.akutech-local.de>
2002-04-12 15:08 ` David Kaelbling
2002-04-13 10:33 ` Eli Zaretskii
2002-04-13 10:52 ` Eli Zaretskii
2002-04-13 19:06 ` Richard Stallman
2002-03-25 12:01 ` Richard Stallman
2002-03-22 12:24 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15515.44484.750836.448899@jupiter.akutech-local.de \
--to=ralf@akutech.de \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).