[Bug 444639] New: Terminal aborts with Illegal Instruction
https://bugzilla.novell.com/show_bug.cgi?id=444639 Summary: Terminal aborts with Illegal Instruction Product: openSUSE 11.1 Version: Beta 5 Platform: PowerPC OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Xfce AssignedTo: bnc-team-xfce@forge.provo.novell.com ReportedBy: olh@novell.com QAContact: qa@suse.de Found By: --- in 11.1beta5, Terminal aborts with Illegal Instruction on a PowerBook G3 I assume some app has altivec in it just because ./configure happend to run on a powerpc host. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c1 Olaf Hering <olh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-xfce@forge.provo.novell.com |sndirsch@novell.com Component|Xfce |X.Org QAContact|qa@suse.de |xorg-maintainer-bugs@forge.provo.novell.com --- Comment #1 from Olaf Hering <olh@novell.com> 2008-11-13 07:13:36 MST --- Core was generated by `Terminal'. Program terminated with signal 4, Illegal instruction. #0 pixman_have_vmx () at pixman-pict.c:1941 1941 asm volatile ( "vor 0, 0, 0" ); Dump of assembler code from 0xead1028 to 0xead1048: 0x0ead1028 <pixman_have_vmx+136>: addi r3,r31,16 0x0ead102c <pixman_have_vmx+140>: bl 0xeadfcd0 <call___do_global_ctors_aux+1424> 0x0ead1030 <pixman_have_vmx+144>: mr. r31,r3 0x0ead1034 <pixman_have_vmx+148>: bne- 0xead103c <pixman_have_vmx+156> 0x0ead1038 <pixman_have_vmx+152>: vor v0,v0,v0 0x0ead103c <pixman_have_vmx+156>: addi r4,r1,24 0x0ead1040 <pixman_have_vmx+160>: li r3,4 0x0ead1044 <pixman_have_vmx+164>: li r5,0 End of assembler dump. (gdb) This is in xorg-x11-libs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c2 --- Comment #2 from Olaf Hering <olh@novell.com> 2008-11-13 07:18:31 MST --- Please add --disable-vmx to pixman configure -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c3 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from Stefan Dirsch <sndirsch@novell.com> 2008-11-13 08:10:36 MST --- Thanks. Will do this for ppc/ppc64. Whatever 'Terminal' is. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c4 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Stefan Dirsch <sndirsch@novell.com> 2008-11-13 08:50:46 MST --- done. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c5 --- Comment #5 from Olaf Hering <olh@novell.com> 2008-11-14 00:01:38 MST --- Terminal is part of xfce -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c6 Andreas Schwab <schwab@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #6 from Andreas Schwab <schwab@novell.com> 2008-11-14 05:05:11 MST --- Why doesn't the kernel call the signal handler? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 Andreas Schwab <schwab@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |olh@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c7 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|sndirsch@novell.com |olh@novell.com Status|NEEDINFO |NEW Info Provider|olh@novell.com | --- Comment #7 from Stefan Dirsch <sndirsch@novell.com> 2008-11-14 05:50:44 MST --- I'm not responsible for the behaviour of the ppc kernel. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sndirsch@novell.com Component|X.Org |Kernel QAContact|xorg-maintainer-bugs@forge.provo.novell.com |qa@suse.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c8 Olaf Hering <olh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Kernel |Basesystem Priority|P5 - None |P1 - Urgent --- Comment #8 from Olaf Hering <olh@novell.com> 2008-11-17 04:00:46 MST --- happens also with 10.3 kernel, and with firefox. A helloworld.c gets handles the SIGILL. So its likely an application bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c9 Olaf Hering <olh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|olh@novell.com |bnc-team-xfce@forge.provo.novell.com Component|Basesystem |Xfce --- Comment #9 from Olaf Hering <olh@novell.com> 2008-11-17 05:37:28 MST --- does not happen when Terminal runs from konsole, happens with all illegal instructions. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c10 --- Comment #10 from Andreas Schwab <schwab@novell.com> 2008-11-18 02:13:47 MST --- Check that SIGILL is not blocked. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c11 --- Comment #11 from Olaf Hering <olh@novell.com> 2008-11-18 04:03:44 MST --- SIGILL is blocked, I do not see why. If the lib wants to use SIGILL, it should probably unblock it before usage. This patch fixes it for me, Terminal and firefox start now: Index: pixman-0.12.0/pixman/pixman-pict.c =================================================================== --- pixman-0.12.0.orig/pixman/pixman-pict.c +++ pixman-0.12.0/pixman/pixman-pict.c @@ -1930,8 +1930,12 @@ static void vmx_test(int sig, siginfo_t pixman_bool_t pixman_have_vmx (void) { struct sigaction sa, osa; + sigset_t ss, oss; int jmp_result; if (!initialized) { + sigemptyset(&ss); + sigaddset(&ss, SIGILL); + sigprocmask(SIG_UNBLOCK, &ss, &oss); sa.sa_flags = SA_SIGINFO; sigemptyset(&sa.sa_mask); sa.sa_sigaction = vmx_test; @@ -1941,6 +1945,7 @@ pixman_bool_t pixman_have_vmx (void) { asm volatile ( ".long 0\n" ); } sigaction(SIGILL, &osa, NULL); + sigprocmask(SIG_SETMASK, &oss, NULL); have_vmx = (jmp_result == 0); initialized = TRUE; } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c12 --- Comment #12 from Olaf Hering <olh@novell.com> 2008-11-18 04:05:58 MST --- Created an attachment (id=252892) --> (https://bugzilla.novell.com/attachment.cgi?id=252892) strace.txt here is an strace, with the patch applied. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c13 --- Comment #13 from Olaf Hering <olh@novell.com> 2008-11-18 04:09:52 MST --- grep -Ew '(clone|execve|rt_sigprocmask)' file does not show who blocked SIGILL -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flag| |SHIP_STOPPER- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User prusnak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c14 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |prusnak@novell.com Status|NEW |NEEDINFO Info Provider| |olh@novell.com --- Comment #14 from Pavol Rusnak <prusnak@novell.com> 2008-11-21 07:26:32 MST --- Is this still an XFCE bug ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c15 Andreas Schwab <schwab@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sndirsch@novell.com --- Comment #15 from Andreas Schwab <schwab@novell.com> 2008-11-21 09:13:16 MST --- setjmp/longjmp does not save/restore the signal mask. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c16 --- Comment #16 from Stefan Dirsch <sndirsch@novell.com> 2008-11-21 10:25:11 MST --- Not sure why I've been added to this bugreport. Is the comment #15 a response to the previous comment or some explanation to me? How is it related to the patch by Olaf? Any details here would be appreciated - whoever wants to provide them. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c17 --- Comment #17 from Olaf Hering <olh@novell.com> 2008-11-22 11:47:13 MST --- I was suspecting something like that already, but I had to move on to more interesting stuff. I will work on it next week. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c18 Olaf Hering <olh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|olh@novell.com | Resolution| |FIXED --- Comment #18 from Olaf Hering <olh@novell.com> 2008-11-24 01:19:03 MST --- schwab applied some patch, which may avoid the crash. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=444639 User matt@genesi-usa.com added comment https://bugzilla.novell.com/show_bug.cgi?id=444639#c19 Matt Sealey <matt@genesi-usa.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pczanik@genesi-usa.com, matt@genesi-usa.com --- Comment #19 from Matt Sealey <matt@genesi-usa.com> 2008-12-31 16:23:00 MST --- I notice a couple odd things about the latest xorg-x11-libs RPM (from src-oss for 11.1) - that --disable-vmx is mentioned in the changes in the .spec file, but it is never actually referenced inside the .spec file apart from that. There are no pixman or other patches which mess with the pixman vmx detection other than some minor fixup. I am not sure HOW the latest RPMs are actually not built with this support weirdly enabled.. ~ Ideally libpixman should not be using SIGILL traps (bad behaviour) since you can reliably check for AltiVec at runtime without invoking any AltiVec instructions (/proc/$self/auxv AT_HWCAP for PPC_FEATURE_HAS_ALTIVEC - http://www.freevec.org/function/altivec_runtime_detection_linux) Without this feature set in auxv, the kernel doesn't support AltiVec anyway and will therefore not work. I tried to CC the VMX support author (Luca Barbato, lu_zero@gentoo.org) but he's not on Bugzilla so I will just forward this to him. Grass roots campaign! Get rid of all the silly runtime SIGILL checks for AltiVec and make package builder's lives easier (maybe this should be a secondary effort to actually modularizing xorg-x11-libs because that thing is a monster and rebuilding this one library WITH AltiVec support took an hour..) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com