From: Ralf Fassel <ralf@akutech.de>
Cc: rms@gnu.org, bug-gnu-emacs@gnu.org
Subject: Re: `print' does not print
Date: Mon, 25 Mar 2002 14:47:41 +0100 [thread overview]
Message-ID: <15519.10877.452978.802301@jupiter.akutech-local.de> (raw)
In-Reply-To: <Pine.SUN.3.91.1020325075538.11836E@is>
* Eli Zaretskii
| Assuming for a moment that the problem is caused by some disruption
| of memory allocation for the standard handles, one thing to try is
| to use setvbuf to allocate a buffer for stdout, somewhere near the
| beginning of `main'. Does that help?
The code snipped I tried is:
if (initialized) {
if (setvbuf (stdout, stdout_buffer, _IOLBF, BUFSIZ)) {
write(2, "setvbuf failed\n", 15);
exit(1);
}
write (2,"setbuf ok\n",10);
}
where `stdout_buffer' was a global char[BUFSIZ] in emacs.c (malloc'ing
it didn't make any difference).
Didn't help
- at the start of main in emacs.c, #737 just before calling `sort_args()'
- at the end of main before calling `Frecursive_edit()'
- in `printchar', where I had to trick a bit to invoke it only once at
first invocation (reset a static init-var in main to 0, since that
init-var was already initialized in the dumped emacs)
- any variation of
_IOFBF causes input/output to be fully buffered.
_IOLBF causes output to be line buffered; the buffer will be flushed
when a newline is written, the buffer is full, or input is
requested.
_IONBF causes input/output to be completely unbuffered.
for the buffering.
It also tried to use unbuffered I/O via setbuf() with a NULL pointer,
didn't help either.
It also did not help to freopen() stdout to some file at the same
places.
=========================================================
I then had a look what had actually changed in unexelf.c, and with the
following diff applied to unexelf.c I can make it work again
(i.e. disabling the SGI-specials introduced for the .got section):
*** unexelf.c.21.2 Mon Jan 28 17:33:22 2002
--- unexelf.c Mon Mar 25 14:40:55 2002
***************
*** 1033,1038 ****
--- 1033,1039 ----
".lit4")
|| !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
".lit8")
+ #if 0
#if __sgi
/* According to David Kaelbling <drk@bobo.hudson.sgi.com>,
the SGI-specific section below is required to avoid core
***************
*** 1042,1047 ****
--- 1043,1049 ----
|| !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
".got")
#endif
+ #endif
|| !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
".sdata1")
|| !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
***************
*** 1220,1228 ****
--- 1222,1232 ----
".lit4")
|| !strcmp ((old_section_names + NEW_SECTION_H (nn).sh_name),
".lit8")
+ #if 0
#if __sgi
|| !strcmp ((old_section_names + NEW_SECTION_H (nn).sh_name),
".got")
+ #endif
#endif
|| !strcmp ((old_section_names + NEW_SECTION_H (nn).sh_name),
".sdata1")
I did configure emacs as
# ./configure --prefix=/software/emacs/21.2
# -exec-prefix=/software/emacs/21.2/IRIX-6 --with-pop
# --with-x-toolkit=athena
R'
next prev parent reply other threads:[~2002-03-25 13:47 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15519.10877.452978.802301@jupiter.akutech-local.de \
--to=ralf@akutech.de \
--cc=bug-gnu-emacs@gnu.org \
--cc=rms@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.