GNU bug report logs - #443
[Fwd: emacs installation - segmentation fault during unexec]

Previous Next

Package: emacs;

Reported by: esf <at> cfmu.eurocontrol.int

Date: Wed, 18 Jun 2008 14:35:03 UTC

Severity: normal

Tags: patch

Merged with 900

Found in version 22.3

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 443 in the body.
You can then email your comments to 443 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#443; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to esf <at> cfmu.eurocontrol.int:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: esf <at> cfmu.eurocontrol.int
To: bug-gnu-emacs <at> gnu.org
Subject: [Fwd: emacs installation - segmentation fault during unexec]
Date: Wed, 18 Jun 2008 16:24:40 +0200
Sorry,

My previous message could not be sent because of mailbox limitation.
The attached file is worth 12MB.

Is there anywhere I can send it ?
If not, here is the backtrace:

(gdb) bt
#0  0x0063c17c in memcpy () from /lib/tls/libc.so.6
#1  0x0817cb56 in unexec (
    new_name=0x85e9e94 
"/tmp/esf_emacs-22.1/generated/work/emacs-22.1/src/emacs",
    old_name=0x85e9ed0 
"/tmp/esf_emacs-22.1/generated/work/emacs-22.1/src/temacs", 
data_start=137480080, bss_start=0, entry_address=0) at unexelf.c:950
#2  0x080eb898 in Fdump_emacs (filename=140594875, symfile=140594859)
    at emacs.c:2277
#3  0x0815326a in Feval (form=138374717) at eval.c:2331
#4  0x0815363f in Fprogn (args=138375061) at eval.c:447
#5  0x08153452 in Feval (form=138379957) at eval.c:2275
#6  0x08153452 in Feval (form=138381677) at eval.c:2275
#7  0x0816ba89 in readevalloop (readcharfun=138194961, stream=0x83f3080,
    sourcename=138356763, evalfun=0x8152ec0 <Feval>, printflag=0,
    unibyte=138127561, readfun=138127561, start=138127561, end=138127561)
    at lread.c:1543
#8  0x0816d05c in Fload (file=Variable "file" is not available.
) at lread.c:1009
#9  0x081532d9 in Feval (form=138112413) at eval.c:2342
#10 0x080f3253 in top_level_2 () at keyboard.c:1338
#11 0x0815280b in internal_condition_case (bfun=0x80f3240 <top_level_2>,
    handlers=138173017, hfun=0x80f6960 <cmd_error>) at eval.c:1481
#12 0x080f5d51 in top_level_1 () at keyboard.c:1346
#13 0x081528cc in internal_catch (tag=138166201,
    func=0x80f5d20 <top_level_1>, arg=138127561) at eval.c:1222
#14 0x080f678a in command_loop () at keyboard.c:1303
#15 0x080f6b38 in recursive_edit_1 () at keyboard.c:1006
#16 0x080f6c25 in Frecursive_edit () at keyboard.c:1067
#17 0x080ecb92 in main (argc=Cannot access memory at address 0xaf800
) at emacs.c:1762
(gdb)



Forgot to indicate that emacs-version is 22.1.1


Thanks for your concern.

Regards,
Pierre-Louis ESCOUFLAIRE


-------- Original Message --------
Subject: emacs installation - segmentation fault during unexec
Date: Wed, 18 Jun 2008 15:40:15 +0200
From: esf <at> cfmu.eurocontrol.int
To: bug-gnu-emacs <at> gnu.org


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing
list, and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:



Emacs build core-dumped during unexec() / memcopy().
See attached file 'emacs-22.1-with_coredump.tar.gz'.

The archive contains the coredump at  'emacs-22.1/src/core.433'.
The coredump was generated from       'emacs-22.1/src/temacs'
                    with command       'temacs -batch -l loadup dump'.
More information can be found in      'emacs/pkg_*.log'.

Unfortunately, the bug seems to appear randomly.
I hope the given information is enough.


Thanks for your concern.

Regards,
Pierre-Louis ESCOUFLAIRE


____

This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.

Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy.

Any views expressed in this message are those of the sender.






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#443; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: esf <at> cfmu.eurocontrol.int
Cc: 443 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#443: [Fwd: emacs installation - segmentation fault during unexec]
Date: Wed, 18 Jun 2008 11:15:28 -0400
> Forgot to indicate that emacs-version is 22.1.1

Please try it again with Emacs-22.2 or (even better) with the
Emacs-CVS trunk.

> See attached file 'emacs-22.1-with_coredump.tar.gz'.

Coredumps usually don't make any sense anywhere else than on the
machine on which the executable was built.  Never send them like this to
anyone unless requested to.

OTOH, a useful piece of information would be to indicate if you've
encountered your problem on an Commodore 64, a Cray, or a Mac OS
X machine, maybe also mention the version of the OS, ... or better yet:
use M-x report-emacs-bug which will automatically add this info to
your report.


        Stefan





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#443; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#443; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Nick Roberts <nickrob <at> snap.net.nz>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Nick Roberts <nickrob <at> snap.net.nz>
To: esf <at> cfmu.eurocontrol.int
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#443: [Fwd: emacs installation - segmentation fault during
	unexec]
Date: Thu, 19 Jun 2008 08:44:30 +1200
 > My previous message could not be sent because of mailbox limitation.
 > The attached file is worth 12MB.
 > 
 > Is there anywhere I can send it ?
 > If not, here is the backtrace:

Please don't even _think_ about sending a 12MB to the mailing list.  If someone
asks for it you can send it to them.  Otherwise you could upload it somewhere
and point to the URL.  A 12MB file takes about 40 minutes to download on
dial-up and probably 99% of subscribers won't be interested in seeing the data.

-- 
Nick                                           http://www.inet.net.nz/~nickrob





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#443; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #25 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Richard M Stallman <rms <at> gnu.org>
To: esf <at> cfmu.eurocontrol.int, 443 <at> debbugs.gnu.org
Cc: bug-gnu-emacs <at> gnu.org, bug-submit-list <at> donarmstrong.com,
        bug-gnu-emacs <at> gnu.org
Subject: Re: bug#443: [Fwd: emacs installation - segmentation fault during
	unexec]
Date: Thu, 19 Jun 2008 14:14:56 -0400
    My previous message could not be sent because of mailbox limitation.
    The attached file is worth 12MB.

Please do not email such files over 100k without asking first.





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#443; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#443; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to esf <at> cfmu.eurocontrol.int:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #35 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: esf <at> cfmu.eurocontrol.int
To: bug-gnu-emacs <at> gnu.org
Subject: bug#443: [Fwd: emacs installation - segmentation fault during unexec]
Date: Thu, 26 Jun 2008 09:59:35 +0200
Hello,

My deepest apologies for trying to send such a mail, I should have 
thought about it first (sometimes, we are doing stupid things).

Anyway, I tried again with emacs-22.2 and the same problem occurs with 
approximatively the same backtrace, i.e:

#0  0x0026a17c in memcpy () from /lib/tls/libc.so.6
#1  0x0817d5a6 in unexec (new_name=0x857d414 
"/tmp/esf_emacs-22.2/generated/work/emacs-22.2/src/emacs",
    old_name=0x857d450 
"/tmp/esf_emacs-22.2/generated/work/emacs-22.2/src/temacs", 
data_start=137491440, bss_start=0, entry_address=0)
    at unexelf.c:951
#2  0x080ec068 in Fdump_emacs (filename=140370971, symfile=140370955) at 
emacs.c:2286
#3  0x08153bca in Feval (form=138175205) at eval.c:2327
#4  0x08153f9f in Fprogn (args=138175541) at eval.c:449
#5  0x08153db2 in Feval (form=138180437) at eval.c:2271
#6  0x08153db2 in Feval (form=138182397) at eval.c:2271
#7  0x0816c429 in readevalloop (readcharfun=137994313, stream=0x83c2088, 
sourcename=138157243, evalfun=0x8153820 <Feval>, printflag=0,
    unibyte=137926857, readfun=137926857, start=137926857, 
end=137926857) at lread.c:1559
#8  0x0816da7c in Fload (file=Variable "file" is not available.
) at lread.c:1027
#9  0x08153c39 in Feval (form=137911717) at eval.c:2338
#10 0x080f3ab3 in top_level_2 () at keyboard.c:1339
#11 0x0815316b in internal_condition_case (bfun=0x80f3aa0 <top_level_2>, 
handlers=137972361, hfun=0x80f71c0 <cmd_error>) at eval.c:1484
#12 0x080f65b1 in top_level_1 () at keyboard.c:1347
#13 0x0815322c in internal_catch (tag=137968545, func=0x80f6580 
<top_level_1>, arg=137926857) at eval.c:1224
#14 0x080f6fea in command_loop () at keyboard.c:1304
#15 0x080f7398 in recursive_edit_1 () at keyboard.c:1007
#16 0x080f7485 in Frecursive_edit () at keyboard.c:1068
#17 0x080ed362 in main (argc=Cannot access memory at address 0xa1c00
) at emacs.c:1770


Here is only the relevant information (to me, the other information is 
clueless since the problem occurs during emacs build) you requested:

In GNU Emacs 22.2.1 (i686-pc-linux-gnu, X toolkit)
 of 2008-06-26 on lxhesf01
Windowing system distributor `The XFree86 Project, Inc', version 
11.0.40300000
configured using `configure  '--prefix=/tmp/esf_emacs-22.2/generated' 
'--exec-prefix=/tmp/esf_emacs-22.2/generated/libexec/emacs-22.2' 
'--mandir=/tmp/esf_emacs-22.2/generated/man' '--with-xpm' 'CFLAGS=-g 
-O2' 'LDFLAGS= 
-L/tmp/esf_emacs-22.2/generated/work/emacs-22.2/xpm-3.4k/lib' 
'CPPFLAGS=-I/tmp/esf_emacs-22.2/generated/work/emacs-22.2/xpm-3.4k ''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  locale-coding-system: nil
  default-enable-multibyte-characters: nil


Hope this information will help.
Also note that the problem seems to appear randomly so you might have to 
run the installation several times if you need to reproduce the problem.


Thanks for your concern.

Regards,
Pierre-Louis ESCOUFLAIRE

____

This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.

Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy.

Any views expressed in this message are those of the sender.






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#443; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #40 received at 443 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Sven Joachim <svenjoac <at> gmx.de>
To: esf <at> cfmu.eurocontrol.int
Cc: 443 <at> debbugs.gnu.org
Subject: Re: bug#443: [Fwd: emacs installation - segmentation fault during unexec]
Date: Thu, 26 Jun 2008 18:55:56 +0200
On 2008-06-26 09:59 +0200, esf <at> cfmu.eurocontrol.int wrote:

> Anyway, I tried again with emacs-22.2 and the same problem occurs with
> approximatively the same backtrace, i.e:
>
> #0  0x0026a17c in memcpy () from /lib/tls/libc.so.6
> #1  0x0817d5a6 in unexec (new_name=0x857d414
> "/tmp/esf_emacs-22.2/generated/work/emacs-22.2/src/emacs",
>     old_name=0x857d450
> "/tmp/esf_emacs-22.2/generated/work/emacs-22.2/src/temacs",
> data_start=137491440, bss_start=0, entry_address=0)
>     at unexelf.c:951

Which is your kernel version and what is the value of
/proc/sys/kernel/randomize_va_space?

> Also note that the problem seems to appear randomly so you might have
> to run the installation several times if you need to reproduce the
> problem.

Yes, this is random by nature.  Linux 2.6.25 added a feature called
"brk() randomization" that is enabled if
/proc/sys/kernel/randomize_va_space has the value 2, which is the
default unless you built your kernel with CONFIG_COMPAT_BRK=y.

Setting that value to 1, the default from 2.6.12(?) to 2.6.24, should
make the crashes disappear.  Note that a value of 2 is generally
recommended for security reasons.

See also the section "Dumping" in etc/PROBLEMS for related problems.

Sven




Tags added: moreinfo Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Tue, 01 Jul 2008 01:05:07 GMT) Full text and rfc822 format available.

Merged 443 900. Request was from Sven Joachim <svenjoac <at> gmx.de> to control <at> emacsbugs.donarmstrong.com. (Sat, 06 Sep 2008 12:40:04 GMT) Full text and rfc822 format available.

Tags set to: patch Request was from Ulrich Mueller <ulm <at> kph.uni-mainz.de> to control <at> emacsbugs.donarmstrong.com. (Wed, 10 Sep 2008 15:30:04 GMT) Full text and rfc822 format available.

Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to esf <at> cfmu.eurocontrol.int:
bug acknowledged by developer. Full text and rfc822 format available.

Message #51 received at 443-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: 443-done <at> debbugs.gnu.org, 900-done <at> debbugs.gnu.org
Subject: Re: temacs segmentation fault in unexec under Linux 2.6.26 
Date: Thu, 23 Oct 2008 18:18:59 -0400
Since Jan has fixed this in the trunk (2008-10-21 checkin), I'm closing
this bug.




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Ulrich Mueller <ulm <at> gentoo.org>:
bug acknowledged by developer. Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Fri, 21 Nov 2008 15:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 213 days ago.

Previous Next


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