Subject: bug#7098: Emacs24 crash with segmentation fault

From: Thierry Volpiatto <[email-masked]>
Date: Sat, 25 Sep 2010 09:40:55 +0200

Eli Zaretskii <[email-masked]> writes:

>> From: Thierry Volpiatto <[email-masked]>
>> Cc: [email-masked]
>> Date: Fri, 24 Sep 2010 21:58:36 +0200
>> 
>> However, i will build an emacs from git tomorrow and try to downgrade
>> until i find a working version.
>
> Thank you.

I build a new emacs from:

,----
|    commit de05ee3f1862edbd14741c4022377992efa1c6e6
|    Commit: Stefan Monnier <[email-masked]>
|    CommitDate: Tue Sep 21 15:09:22 2010 +0200
| 
|       * lisp/newcomment.el (comment-normalize-vars): Better test validity of
|       comment-end-skip.
`----

It work fine a long time but finish by crashing also just moving down
with arrow keys in the git log buffer.
But with better debug infos, i hope this will help you:

,----
| Program received signal SIGSEGV, Segmentation fault.
| 0x0817ddb5 in mark_object (arg=268415134) at alloc.c:5493
| 5493          if (XMISCANY (obj)->gcmarkbit)
`----

And without gdb:

*** glibc detected *** emacs-dev: free(): invalid next size (normal): 0x0aa917f8 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6b861)[0xb6843861]
/lib/libc.so.6(+0x6d0c8)[0xb68450c8]
/lib/libc.so.6(cfree+0x6d)[0xb68481ad]
emacs-dev[0x817ed31]
emacs-dev[0x81824fa]
emacs-dev[0x8196ad8]
emacs-dev[0x8197007]
emacs-dev[0x819725d]
emacs-dev[0x818bcd6]
emacs-dev[0x8197007]
emacs-dev[0x819725d]
emacs-dev[0x8199a09]
emacs-dev[0x8197007]
emacs-dev[0x819725d]
emacs-dev[0x81974d9]
emacs-dev[0x8197703]
emacs-dev[0x81ceaa1]
emacs-dev[0x81973e4]
emacs-dev[0x8197703]
emacs-dev[0x81ceaa1]
emacs-dev[0x81973e4]
emacs-dev[0x8197703]
emacs-dev[0x81ceaa1]
emacs-dev[0x81973e4]
emacs-dev[0x8197703]
emacs-dev[0x8198bb9]
emacs-dev[0x8197976]
emacs-dev[0x81ceaa1]
emacs-dev[0x8196f78]
emacs-dev[0x8199712]
emacs-dev[0x81cdceb]
emacs-dev[0x81973e4]
emacs-dev[0x8197703]
emacs-dev[0x81ceaa1]
emacs-dev[0x81973e4]
emacs-dev[0x8197703]
emacs-dev[0x8195c9e]
emacs-dev[0x8087e02]
emacs-dev[0x8087e75]
emacs-dev[0x8087f64]
emacs-dev[0x807beff]
emacs-dev[0x8084a46]
emacs-dev[0x8081272]
emacs-dev[0x80859b1]
emacs-dev[0x808d3eb]
emacs-dev[0x80906a5]
emacs-dev[0x8092bb6]
emacs-dev[0x8195e97]
emacs-dev[0x80949ee]
emacs-dev[0x8134120]
emacs-dev[0x813641c]
emacs-dev[0x8138512]
emacs-dev[0x8195f91]
emacs-dev[0x8130b85]
emacs-dev[0x8196071]
emacs-dev[0x8130d31]
emacs-dev[0x81310bb]
emacs-dev[0x81311e2]
emacs-dev[0x8127651]
/lib/libc.so.6(__libc_start_main+0xe6)[0xb67eebb6]
emacs-dev[0x8056e61]
======= Memory map: ========
08048000-08215000 r-xp 00000000 08:07 6146965    /home/thierry/tmp/emacs-git/src/emacs
08215000-08216000 r--p 001cc000 08:07 6146965    /home/thierry/tmp/emacs-git/src/emacs
08216000-087cd000 rw-p 001cd000 08:07 6146965    /home/thierry/tmp/emacs-git/src/emacs
087cd000-0ae3b000 rw-p 00000000 00:00 0          [heap]
b5500000-b5521000 rw-p 00000000 00:00 0
b5521000-b5600000 ---p 00000000 00:00 0
b56b8000-b56d4000 r-xp 00000000 08:05 1002254    /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgcc_s.so.1
b56d4000-b56d5000 r--p 0001b000 08:05 1002254    /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgcc_s.so.1
b56d5000-b56d6000 rw-p 0001c000 08:05 1002254    /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgcc_s.so.1
b56ee000-b5727000 r--p 00000000 08:05 980574     /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf
b5727000-b5750000 rw-p 00000000 00:00 0
b5758000-b5e49000 rw-p 00000000 00:00 0
b5e49000-b5ea2000 rw-p 00000000 00:00 0
b5ea2000-b5ecf000 rw-p 00000000 00:00 0
b5ed6000-b5ee7000 rw-p 00000000 00:00 0
b5ee7000-b5f29000 rw-p 00000000 00:00 0
b5f39000-b5f84000 rw-p 00000000 00:00 0
b5f84000-b5fc2000 rw-p 00000000 00:00 0
b5fc2000-b5fc7000 r-xp 00000000 08:03 1126182    /lib/libnss_dns-2.11.2.so
b5fc7000-b5fc8000 r--p 00004000 08:03 1126182    /lib/libnss_dns-2.11.2.so
b5fc8000-b5fc9000 rw-p 00005000 08:03 1126182    /lib/libnss_dns-2.11.2.so
b5fc9000-b6018000 r--p 00000000 08:05 986084     /usr/share/fonts/dejavu/DejaVuSansMono.ttf
b6018000-b60bf000 r--p 00000000 08:05 986360     /usr/share/fonts/dejavu/DejaVuSans.ttf
b60bf000-b60f6000 r--p 00000000 08:05 980548     /usr/share/fonts/dejavu/DejaVuSansMono-BoldOblique.ttf
b60f6000-b6156000 rw-s 00000000 00:04 6258688    /SYSV00000000 (deleted)
b6156000-b6179000 r--p 00000000 08:05 800249     /usr/share/locale/fr/LC_MESSAGES/libc.mo
b6179000-b617a000 r-xp 00000000 08:05 702447     /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
b617a000-b617b000 r--p 00000000 08:05 702447     /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
b617b000-b617c000 rw-p 00001000 08:05 702447     /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
b617d000-b61c8000 r--p 00000000 08:05 985963     /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf
b61c8000-b61d9000 r--p 00000000 08:05 32862      /usr/share/locale/fr/LC_MESSAGES/GConf2.mo
b61d9000-b61df000 r--s 00000000 08:06 66589      /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-le32d4.cache-3
b61df000-b61e5000 r--s 00000000 08:06 66856      /var/cache/fontconfig/4460665c0f3e88acdd4c85aa2f409b99-le32d4.cache-3
b61e5000-b61f5000 r--s 00000000 08:06 66840      /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-le32d4.cache-3
b61f5000-b61f9000 r--s 00000000 08:06 66790      /var/cache/fontconfig/a336a40326b5f097d6a660e43ed65741-le32d4.cache-3
b61f9000-b61fb000 r--s 00000000 08:06 65779      /var/cache/fontconfig/5a8e70faeac692eefe28f2b44727cf4d-le32d4.cache-3
b61fb000-b6208000 r--s 00000000 08:06 65556      /var/cache/fontconfig/221fd1126b80b777db535aea535e87ba-le32d4.cache-3
b6208000-b620f000 r--s 00000000 08:06 66610      /var/cache/fontconfig/12b26b760a24f8b4feb03ad48a333a72-le32d4.cache-3
b620f000-b6222000 r--s 00000000 08:06 66015      /var/cache/fontconfig/4b5cf4386f1cde02a336ba961b4ac82d-le32d4.cache-3
b6222000-b6225000 r--s 00000000 08:06 66012      /var/cache/fontconfig/d3169a704c6df42fa91819104f3eb94b-le32d4.cache-3
b6225000-b622a000 r--s 00000000 08:06 65969      /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-le32d4.cache-3
b622a000-b622d000 r--s 00000000 08:06 65851      /var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-le32d4.cache-3
b622d000-b6232000 r--s 00000000 08:06 65761      /var/cache/fontconfig/f349e9996a5320f6dd491cedd2b1f964-le32d4.cache-3
b6232000-b6273000 r--s 00000000 08:06 65759      /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-le32d4.cache-3
b6273000-b62b4000 r--s 00000000 08:06 65676      /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-le32d4.cache-3
b62b4000-b62de000 r--p 00000000 08:05 799918     /usr/share/locale/fr/LC_MESSAGES/gtk20-properties.mo
b62de000-b62e5000 r--s 00000000 08:05 721789     /usr/lib/gconv/gconv-modules.cache
b62e5000-b62ee000 r-xp 00000000 08:03 1126276    /lib/libnss_nis-2.11.2.so
b62ee000-b62ef000 r--p 00008000 08:03 1126276    /lib/libnss_nis-2.11.2.so
b62ef000-b62f0000 rw-p 00009000 08:03 1126276    /lib/libnss_nis-2.11.2.so
b62f0000-b6303000 r-xp 00000000 08:03 1126243    /lib/libnsl-2.11.2.so
b6303000-b6304000 r--p 00012000 08:03 1126243    /lib/libnsl-2.11.2.so
b6304000-b6305000 rw-p 00013000 08:03 1126243    /lib/libnsl-2.11.2.so
b6305000-b6307000 rw-p 00000000 00:00 0
b6307000-b630d000 r-xp 00000000 08:03 1126292    /lib/libnss_compat-2.11.2.so
b630d000-b630e000 r--p 00006000 08:03 1126292    /lib/libnss_compat-2.11.2.so
b630e000-b630f000 rw-p 00007000 08:03 1126292    /lib/libnss_compat-2.11.2.so
b630f000-b6319000 r-xp 00000000 08:03 1126290    /lib/libnss_files-2.11.2.so
b6319000-b631a000 r--p 00009000 08:03 1126290    /lib/libnss_files-2.11.2.so
b631a000-b631b000 rw-p 0000a000 08:03 1126290    /lib/libnss_files-2.11.2.so
b631b000-b6490000 r--p 00000000 08:05 721792     /usr/lib/locale/locale-archive
b6490000-b6494000 rw-p 00000000 00:00 0
b6494000-b64a5000 r-xp 00000000 08:03 1126682    /lib/libbz2.so.1.0.6
b64a5000-b64a6000 r--p 00010000 08:03 1126682    /lib/libbz2.so.1.0.6
b64a6000-b64a7000 rw-p 00011000 08:03 1126682    /lib/libbz2.so.1.0.6
b64a7000-b64b1000 r-xp 00000000 08:05 703058     /usr/lib/libdrm.so.2.4.0
b64b1000-b64b2000 r--p 00009000 08:05 703058     /usr/lib/libdrm.so.2.4.0Fatal error (6)^CErreur de segmentation
t

I will try to go down in the trunk to find a working version.

-- 
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997