Summary: | app-editors/emacs-24.5 - HPPA: crashes after one keystroke | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ulrich Teichert <krypton> |
Component: | Current packages | Assignee: | GNU Emacs project <gnu-emacs> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | Keywords: | NeedPatch, PMASKED |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | HPPA | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | strace -f -o emacs.strace emacs(-24) -nw |
Description
Ulrich Teichert
2016-01-03 11:27:44 UTC
Sorry for pasting emerge --info into the bug description! gdb isn't too helpful: ut@esketra ~ $ gdb /usr/bin/emacs-24 core GNU gdb (Gentoo 7.9.1 vanilla) 7.9.1 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "hppa2.0-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://bugs.gentoo.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/emacs-24...Reading symbols from /usr/lib/debug//usr/bin/emacs-24.debug...done. done. BFD: Warning: /home/ut/core is truncated: expected core file size >= 8183808, found: 8126464. warning: core file may not match specified executable file. [New LWP 21356] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Core was generated by `emacs'. Program terminated with signal SIGABRT, Aborted. #0 0xf8c0eca0 in raise () from /lib/libpthread.so.0 (gdb) where #0 0xf8c0eca0 in raise () from /lib/libpthread.so.0 #1 0x000e78b8 in terminate_due_to_signal (sig=6, backtrace_limit=-121546968) at emacs.c:376 #2 0x00000000 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) ut@esketra ~ $ gdb /usr/bin/emacs-24 GNU gdb (Gentoo 7.9.1 vanilla) 7.9.1 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "hppa2.0-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://bugs.gentoo.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/emacs-24...Reading symbols from /usr/lib/debug//usr/bin/emacs-24.debug...done. done. (gdb) break terminate_due_to_signal Breakpoint 1 at 0xe782c: file emacs.c, line 348. (gdb) run Starting program: /usr/bin/emacs-24 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". linux-nat.c:1035: internal-error: lin_lwp_attach_lwp: Assertion `lwpid > 0' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) n This is a bug, please report it. For instructions, see: <https://bugs.gentoo.org/>. linux-nat.c:1035: internal-error: lin_lwp_attach_lwp: Assertion `lwpid > 0' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n Command aborted. gdb bug will be reported separately Does this happen in an X window, or when emacs is started in a terminal (e.g. with the -nw option)? (In reply to Ulrich Teichert from comment #1) > Sorry for pasting emerge --info into the bug description! No problem with that. Can you please also post the output of "emerge --info app-editors/emacs" (only the part at the end about "Package Settings"). I forgot to add: This happened after a glibc update. Going back to prior working versions of emacs did not change the issue. Due to the stangeness of the bug and gdb failing too, I suspect that the core problem is the new glibc, although I've rebuild all against the new glibc after updating it. Which is why I can´t go back now ;-{ Happens inside a terminal, this box has no X-server installed, only client libs. Strangely, xemacs works in both cases, both on a remote X-server and locally in a terminal. Will post the additional emerge info shortly, TIA, Uli app-editors/emacs-24.5::gentoo was built with the following: USE="X acl dbus games gpm gtk3 inotify jpeg png xpm zlib -Xaw3d -alsa (-aqua) -athena (-gconf) -gfile -gif -gnutls -gsettings -gtk -gzip-el -hesiod -imagemagick -kerberos -libxml2 -livecd -m17n-lib -motif -pax_kernel (-selinux) -sound -source -svg -tiff -toolkit-scroll-bars -wide-int -xft" CFLAGS="-O2 -pipe -march=2.0 -g" CXXFLAGS="-O2 -pipe -march=2.0 -g" Created attachment 421842 [details]
strace -f -o emacs.strace emacs(-24) -nw
[ebuild R ] app-editors/emacs-24.5:24::gentoo USE="X acl alsa dbus gpm gtk gtk3 inotify jpeg svg tiff xft xpm zlib -Xaw3d (-aqua) -athena -games (-gconf) -gfile -gif -gnutls -gsettings -gzip-el -hesiod -imagemagick -kerberos -libxml2 -livecd -m17n-lib -motif -pax_kernel -png (-selinux) -sound -source -toolkit-scroll-bars -wide-int" 0 KiB
Same problem with emacs-23: [ebuild R ] app-editors/emacs-23.4-r13:23::gentoo USE="X alsa dbus gpm gtk jpeg svg tiff xft xpm -Xaw3d (-aqua) -athena -games (-gconf) -gif -gzip-el -hesiod -kerberos -livecd -m17n-lib -motif -pax_kernel -png -sound -source -toolkit-scroll-bars" 0 KiB I'll see if a rebuild against newer linux-headers + glibc helps, since I apparently hadn't done that yet. (In reply to Jeroen Roovers from comment #7) > I'll see if a rebuild against newer linux-headers + glibc helps, since I > apparently hadn't done that yet. No. With gdb 7.10.1 I'm getting further: *** Error in `/usr/bin/emacs-24': realloc(): invalid pointer: 0xfaf02e00 *** Program received signal SIGABRT, Aborted. 0xf7870034 in ?? () from /lib/libc.so.6 (gdb) where #0 0xf7870034 in ?? () from /lib/libc.so.6 #1 0x00000000 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) Well, don't know if that's really helping... This is getting wierder and wierder.... I tried emacs24.5-r1 and incidentally tested it on a serial console: it worked! Everything was garbled, and refreshing made it worse, but you could enter text and write a file (if you stayed away from CTRL-S...). But it still crashes in an xterm or any other terminal I tried (ssh login from another machine). This is fixed with 25.1 (In reply to Ulrich Teichert from comment #11) > This is fixed with 25.1 Which is in a different slot though. SLOT="24" is not fixed. Dropping hppa@ from CC as discussed in -lisp, given newer versions work. |