* DOUG_LEA_MALLOC + REL_ALLOC leads to binary incompatibility across libc updates
@ 2002-04-29 20:01 Marcus Brinkmann
0 siblings, 0 replies; only message in thread
From: Marcus Brinkmann @ 2002-04-29 20:01 UTC (permalink / raw)
Hi,
when compiling emacs21 on the GNU/Hurd system, it will be compiled
with DOUG_LEA_MALLOC and REL_ALLOC (because the src/s/gnu.h file
does not undefine it like it is done on src/s/gnu-linux.h for
the GNU/Linux platform).
This leads to a binary incompatibility across libc updates,
because the symbol real_morecore will have the address of
__default_morecore compiled into the binary with a fixed value,
and it will not be relocated. I was able to reproduce this on
GNU/Linux by removing the #undef REL_ALLOC in src/s/gnu-linux.h:
marcus@fencepost:~/emacs-test/emacs-21.1.95/src$ LD_LIBRARY_PATH=~marcus/emacs-test/usr/lib/debug ./emacs-21.1.95.1
Fatal error (11).Segmentation fault
(Feel free to play with the files on fencepost if you have an account).
So, maybe adding the same #undef REL_ALLOC in src/s/gnu.h is a good work
around, I don't know. Maybe this should really work and we want
REL_ALLOC, I don't know either. However, I positively tested that
#undef REL_ALLOC in src/s/gnu.h fixes this incompatibility, so at least
I could verify that the behaviour is the same on both GNU systems.
Thanks,
Marcus
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-29 20:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-29 20:01 DOUG_LEA_MALLOC + REL_ALLOC leads to binary incompatibility across libc updates Marcus Brinkmann
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).