GNU bug report logs - #17561
24.4.50; Emacs can forget processes

Previous Next

Package: emacs;

Reported by: Jorgen Schaefer <contact <at> jorgenschaefer.de>

Date: Fri, 23 May 2014 15:54:02 UTC

Severity: normal

Tags: moreinfo

Merged with 17337, 17628

Found in version 24.4.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jorgen Schaefer <forcer <at> forcix.cx>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 17561 <at> debbugs.gnu.org
Subject: bug#17561: Emacs can forget processes
Date: Thu, 29 May 2014 01:35:05 +0200
[Message part 1 (text/plain, inline)]
On Wed, 28 May 2014 16:00:39 -0700
Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> On 05/28/2014 01:53 PM, Jorgen Schaefer wrote:
> > Dump of assembler code for function pthread_sigmask:
> >     0x00000000005642c0 <+0>:     sub    $0x8,%rsp
> >     0x00000000005642c4 <+4>:     callq  0x405790 <sigprocmask <at> plt>
> >     0x00000000005642c9 <+9>:     xor    %edx,%edx
> >     0x00000000005642cb <+11>:    test   %eax,%eax
> >     0x00000000005642cd <+13>:    jns    0x5642d6
> > <pthread_sigmask+22> 0x00000000005642cf <+15>:    callq  0x405a10
> > <__errno_location <at> plt> 0x00000000005642d4 <+20>:    mov
> > (%rax),%edx 0x00000000005642d6 <+22>:    mov    %edx,%eax
> >     0x00000000005642d8 <+24>:    add    $0x8,%rsp
> >     0x00000000005642dc <+28>:    retq
> 
> Bingo!  We're on the right track.  sigprocmask is *definitely* the
> wrong thing to call here, and would explain your symptoms.  Can you
> please send the preprocessed output of pthread_sigmask.c?  That is,
> if 'make' uses the following command to build pthread_sigmask.o:
> 
> gcc -std=gnu99 -DHAVE_CONFIG_H  -I../src -g3 -O2 -c pthread_sigmask.c
> 
> then please send the output of:
> 
> gcc -std=gnu99 -DHAVE_CONFIG_H  -I../src -g3 -O2 -E pthread_sigmask.c
> 
> It may be large; OK to send it as a compressed attachment. Thanks.

I bow before your debugging skills!

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../lib -I../src -I../src       -g3
-O2 -MT pthread_sigmask.o -MD -MP -MF .deps/pthread_sigmask.Tpo -E -o
pthread_sigmask.E pthread_sigmask.c

Output attached.

Regards,
Jorgen
[pthread_sigmask.E.gz (application/gzip, attachment)]

This bug report was last modified 10 years and 352 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.