Issue223

classification
Title xemacs 21.5-b28 segfaults on aix 5.2, when setting LDR_CNTRL in any way
Type Module
Severity Platform
Keywords
explanation
process
These optional controls are only of interest to committers and tracker administrators.
Status chatting   Reason
Superseder   Submitted 2008-01-14.13:10:45
Priority   Assigned To
Nosy List  

Created on 2008-01-19.06:43:17 by T.Mittelstaedt, last changed 2008-01-19.06:43:17 by T.Mittelstaedt.

Messages
msg383 [hidden] ([hidden]) Date: 2008-01-19.06:43:17
  Message-ID: <478C870D.1080708@cadenas.de>
Stephen,

Thank you for the hint, but - nope - did not work either. I'll just do 
unset LDR_CNTRL before starting xemacs and will be fine!

Dumping under the name xemacs
./xemacs -no-packages -batch -no-autoloads -l update-elc-2.el -f 
batch-update-elc-2 /localbuild/xemacs-21.5.28/src/../lisp
Could not load program ./xemacs:
Error was: Invalid argument
make[1]: *** [update-elc-2] Error 255
make[1]: Leaving directory `/localbuild/xemacs-21.5.28/src'
make: *** [src] Error 2
tmstaedt@buildaix3$
tmstaedt@buildaix3$ ls -l src/xemacs
-rwxrwxr-x    1 tmstaedt dev      284977676 Jan 15 10:43 src/xemacs

LDFLAGS=-Wl,-bmaxdata:0x80000000 CONFIG_SHELL=/opt/freeware/bin/bash 
bash ./configure  --with-system-malloc=yes

Stephen J. Turnbull schrieb:
> Thomas Mittelstaedt writes:
>
>  > #0  0x10244d7c in malloc (size=0) at gmalloc.c:591
>
> If you're crashing in malloc, maybe AIX is one of those systems that
> doesn't like GNU malloc (which is a very old version, by now).
> Perhaps ./configure --with-system-malloc=yes would help.
>
>   

_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta@xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
msg382 [hidden] ([hidden]) Date: 2008-01-19.06:43:17
  Message-ID: <478B5F55.40308@cadenas.de>
Hallo,

I had a problem with a newly built gcc-4.2.2 failing to allocate enough 
memory for a particular file.
So I set an environment variable according to

http://www.ibm.com/developerworks/eserver/articles/aix4java1.html:

LDR_CNTRL=MAXDATA=0x80000000

and the file compiled.
But when I restarted xemacs, it would crash with the stack trace below.

(gdb)
#0  0x10244d7c in malloc (size=0) at gmalloc.c:591
#1  0x100065b8 in xmalloc (size=4) at alloc.c:390
#2  0x100026ac in sort_args (argc=1, argv=0x2ff22624) at emacs.c:2777
#3  0x100010d8 in xemacs_21_5_b28_powerpc_ibm_aix5_2_0_0 (argc=1,
    argv=0x2ff22624, unused_envp=0x0, restart=0) at emacs.c:958
#4  0x10003610 in main (argc=1, argv=0x2ff22624, unused_envp=0x2ff2262c)
    at emacs.c:3172
(gdb)

So I tried to reconfigure and recompile xemacs with LDFLAGS=-Wl,-bmaxdata:0x80000000.
But then the dumped-off xemacs would simply not load:

tmstaedt@buildaix3$ ./xemacs -no-packages -batch -no-autoloads -l update-elc-2.el -f batch-update-elc-2 /localbuild/xemacs-21.5.28/src/../lisp
Could not load program ./xemacs:
Error was: Invalid argument

thomas

_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta@xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
History
Date User Action Args
2008-01-19 06:43:17T.Mittelstaedtsetstatus: new -> chatting
messages: + msg383
2008-01-19 06:43:17T.Mittelstaedtcreate