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
Please paste the output of `emerge info`.
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"
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.
neither changing cflags nor using "use=debug" can solve this issue.
After emerge -u world, emacs works again.
might be caused by borked libraries... thanks for your cooperation.
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 +++
Could you use sys-apps/memtest86 or something to test whether your memory is corrupted?
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.
It seems it is a problem of xorg. After I reemerged xorg-x11, the problem is solved
What happens if you run Emacs with -nw, thus preventing it from loading the X interface?
I assume the problem was solved (by remerging xorg-x11). Thanks for your cooperation.