Subject: bug#17598: Emacs pretest 24.3.91 - AIX - SIGSEV when customize

From: Gilles PION <[email-masked]>
Date: Wed, 28 May 2014 10:40:26 +0200

> De : Dmitry Antipov <[email-masked]>
> A : Gilles PION <[email-masked]>, 
> Cc : Paul Eggert <[email-masked]>, [email-masked]
> Date : 28/05/2014 09:48
> Objet : Re: bug#17598: Emacs pretest 24.3.91 - AIX - SIGSEV when 
customize
> 
> On 05/27/2014 07:38 PM, Paul Eggert wrote:
> 
> > If it's still crashing, that suggests the problem is not in 
> unexaix.c after all, unfortunately.
> 
> Is it possible to run undumped (i.e. temacs) on AIX? If there is an 
issue with
> unexec, it shouldn't affect undumped executable.
Yes, it crashes too:
$ gdb ./emacs-24.3.91/src/temacs 
/../
(gdb) run  --no-site-file  --no-init-file
/../
Pure-hashed: 23622 strings, 3448 vectors, 37051 conses, 3241 bytecodes, 82 
others
#  emacs windows appears here , doing M-x configure then moving cursor, as 
usual
Fatal error 6: Resource lost
Program received signal SIGABRT, Aborted.
[Switching to Thread 1]
0xd0508b20 in pthread_kill () from /usr/lib/libpthread.a(shr_xpg5.o)

So you're right, the issue is not unexec related

> 
> > What happens if you run "./configure --enable-checking=all && make"?
> 
> Latest backtrace (with SIGSEGV in malloc) is probably caused by heap
> corruption.
> Are there some built-in debugging facilities in AIX malloc 
implementation
> (something similar to glibc mcheck, for example)?

The previous run uses "temacs" from a new build using those suggested 
"configure" parameters,

backtrace:
(gdb) where
#0  0xd0508b20 in pthread_kill () from /usr/lib/libpthread.a(shr_xpg5.o)
#1  0xd0507f8c in _p_raise () from /usr/lib/libpthread.a(shr_xpg5.o)
#2  0x1000c4f8 in terminate_due_to_signal ()
#3  0x1003483c in emacs_abort ()
#4  0x10020a04 in xfree ()
#5  0x1029c5ec in x_uncatch_errors ()
#6  0x10288fe8 in xfont_list_pattern ()
#7  0x1028a214 in xfont_list ()
#8  0x10271940 in font_list_entities ()
#9  0x1027480c in font_find_for_lface.constprop.12 ()
#10 0x10274f48 in font_load_for_lface ()
#11 0x1025a8d0 in realize_face ()
#12 0x1025cd80 in lookup_face.isra.22 ()
#13 0x10260b3c in face_at_buffer_position ()
#14 0x100c1230 in handle_face_prop ()
#15 0x100a89c0 in handle_stop ()
#16 0x100c1d64 in next_element_from_buffer ()
#17 0x100acf80 in get_next_display_element ()
#18 0x100bd448 in display_line ()
#19 0x100ccba0 in try_window.constprop.53 ()
#20 0x100e8f28 in redisplay_window ()
#21 0x100ebfbc in redisplay_window_0 ()
#22 0x10053f4c in internal_condition_case_1 ()
#23 0x1008a4b4 in redisplay_windows ()
#24 0x100d08e0 in redisplay_internal ()
#25 0x100497c8 in read_char ()
#26 0x1004ba00 in read_key_sequence.constprop.46 ()
#27 0x1004e354 in command_loop_1 ()
#28 0x10053d94 in internal_condition_case ()
#29 0x10036c00 in command_loop_2 ()
#30 0x10053c3c in internal_catch ()
#31 0x1003e414 in recursive_edit_1 ()
#32 0x1003e630 in Frecursive_edit ()
#33 0x10000ee4 in main ()

--
Gilles

                                                                   

. Si vous n'êtes pas destinataires de ce message, merci d'avertir
l'expéditeur de l'erreur de distribution et de le détruire
immédiatement.
Ce message contient des informations confidentielles ou appartenant
a La Française des Jeux. Il est établi a l'intention exclusive de
ses destinataires. Toute divulgation, utilisation, diffusion ou
reproduction (totale ou partielle) de ce message ou des
informations qu'il contient, doit être préalablement autorisée.
Tout message électronique est susceptible d'altération et son
intégrité ne peut etre assurée. La Française des Jeux décline toute
responsabilité au titre de ce message s'il a été modifie ou
falsifie.