Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64832 - emacs crashed
Summary: emacs crashed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-21 03:28 UTC by Mars Cao
Modified: 2022-04-21 08:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mars Cao 2004-09-21 03:28:52 UTC
After emerge -u world, Emacs crashed after I press keyboard two times. Error message: "segmentation fault. fatal error 11" I am using Gentoo 2.6.5 and Gnome. 

Reproducible: Always
Steps to Reproduce:
1. Use kernel 2.6.5 and gnome, xorg 
2. start emacs
3. pree key two times
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-09-21 09:40:34 UTC
Please paste the output of `emerge info`.
Comment 2 Mars Cao 2004-09-21 13:13:28 UTC
Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) III Mobile CPU      1000MHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xprint xv zlib"
Comment 3 Mars Cao 2004-09-21 13:14:05 UTC
Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) III Mobile CPU      1000MHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xprint xv zlib"
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-09-22 21:58:12 UTC
If you shrink down CFLAGS to "-O -pipe", does it make difference?
Someone told me that he had similar problem but when he built emacs
with USE="debug" (with the same CFLAGS) he didn't have the problem.
Comment 5 Mars Cao 2004-09-28 07:59:06 UTC
neither changing cflags nor using "use=debug" can solve this issue.
Comment 6 Mars Cao 2004-09-30 14:31:57 UTC
After emerge -u world, emacs works again.
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-01 01:26:02 UTC
might be caused by borked libraries...
thanks for your cooperation.
Comment 8 Mars Cao 2004-10-03 20:26:35 UTC
after rebooting my machine, I got that phenomenon again. Here is the result I use strace to fllow emacs:

...
gettimeofday({1096859982, 424789}, NULL) = 0
--- SIGIO (I/O possible) @ 0 (0) ---
sigreturn()                             = ? (mask now [ALRM])
gettimeofday({1096859982, 428136}, NULL) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 1000}}, NULL) = 0
sigreturn()                             = ? (mask now [])
read(4, "\2h\315\7\270-}\0018\0\0\0%\0@\2\0\0\0\0\265\1r\2\261\001"..., 32) = 32read(4, 0xbfffbe10, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(5, [4], NULL, NULL, NULL)        = 1 (in [4])
--- SIGIO (I/O possible) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
read(4, "\1\250\316\7\0\0\0\0\1\1\1\1\1\1\0\0\1\1\1\0\26\0\0\000"..., 32) = 32
write(4, "T\30\4\0 \0\0\0\335b\335b\335b\30\0", 16) = 16
read(4, 0xbfffbe10, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(5, [4], NULL, NULL, NULL)        = 1 (in [4])
--- SIGIO (I/O possible) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
read(4, "\1\250\317\7\0\0\0\0bbbbbb\0\0bbb\0\26\0\0\0008\236\210"..., 32) = 32
write(4, "\\\30\5\0 \0\0\0\6\0\335bGray62\6\0", 20) = 20
read(4, 0xbfffbe60, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(5, [4], NULL, NULL, NULL)        = 1 (in [4])
--- SIGIO (I/O possible) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
read(4, "\1\0\320\7\0\0\0\0\236\236\236\236\236\236\236\236\236"..., 32) = 32
write(4, "T\30\4\0 \0\0\0\236\236\236\236\236\236ay", 16) = 16
read(4, 0xbfffbe10, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(5, [4], NULL, NULL, NULL)        = 1 (in [4])
--- SIGIO (I/O possible) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
read(4, "\1\250\321\7\0\0\0\0\236\236\236\236\236\236\0\0\236\236"..., 32) = 32
write(4, "T\30\4\0 \0\0\0%\346%\346%\346ay", 16) = 16
read(4, 0xbfffbe10, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(5, [4], NULL, NULL, NULL)        = 1 (in [4])
--- SIGIO (I/O possible) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
read(4, "\1\250\322\7\0\0\0\0\346\346\346\346\346\346\0\0\346\346"..., 32) = 32
brk(0)                                  = 0x85b4000
brk(0x85b5000)                          = 0x85b5000
brk(0)                                  = 0x85b5000
close(3)                                = 0
munmap(0x408fe000, 131072)              = 0
getpid()                                = 4042
kill(4042, SIGIO)                       = 0
--- SIGIO (I/O possible) @ 0 (0) ---
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGSEGV, {SIG_DFL}, {0x80d8c90, [], SA_RESTART}, 8) = 0
getpgid(0)                              = 4042
ioctl(0, TIOCGPGRP, [4041])             = 0
rt_sigaction(SIGIO, {SIG_IGN}, {0x80e29e0, [], SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [SEGV], [SEGV IO], 8) = 0
getpid()                                = 4042
kill(4042, SIGSEGV)                     = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Comment 9 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-13 20:36:06 UTC
Could you use sys-apps/memtest86 or something to
test whether your memory is corrupted?
Comment 10 Mars Cao 2004-10-14 10:08:22 UTC
It should not. I have this problem on two machines. One is Pentinum III, another is AMD XP. At least the memory on AMD XP machine is good. 
Comment 11 Mars Cao 2004-10-19 11:32:39 UTC
It seems it is a problem of xorg. After I reemerged xorg-x11, the problem is solved 
Comment 12 Troels Henriksen 2004-12-10 02:26:37 UTC
What happens if you run Emacs with -nw, thus preventing it from loading the X interface?
Comment 13 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-04-09 07:23:33 UTC
I assume the problem was solved (by remerging xorg-x11).
Thanks for your cooperation.