Bug 11997 - test_altivec fails with SIGILL
Summary: test_altivec fails with SIGILL
Status: RESOLVED DUPLICATE of bug 10247
Alias: None
Product: liboil
Classification: Unclassified
Component: unknown (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Schleef
QA Contact: David Schleef
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-14 07:30 UTC by Bastien Nocera
Modified: 2007-08-14 10:58 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Bastien Nocera 2007-08-14 07:30:58 UTC
# gdb /usr/bin/gst-inspect-0.10 
<snip>
(gdb) run --gst-disable-registry-fork
Starting program: /usr/bin/gst-inspect-0.10 --gst-disable-registry-fork
Program received signal SIGILL, Illegal instruction.
[Switching to Thread 4398051383792 (LWP 22970)]
test_altivec (ignored=0x0) at liboilcpu.c:647
647       asm volatile ("vor v0, v0, v0\n");
(gdb) bt
#0  test_altivec (ignored=0x0) at liboilcpu.c:647
#1  0x00000400048ff400 in oil_cpu_fault_check_try (func=@0x40004960b80: 0x400048ff300 <test_altivec>, priv=0x0) at liboilcpu.c:209
#2  0x00000400048ff5b8 in _oil_cpu_init () at liboilcpu.c:655
#3  0x0000040004900670 in oil_init () at liboilfunction.c:136
#4  0x0000040005836dd4 in ?? () from /usr/lib64/gstreamer-0.10/libgstaudioresample.so
#5  0x0000040005833b30 in ?? () from /usr/lib64/gstreamer-0.10/libgstaudioresample.so
#6  0x00000400000956ec in .gst_plugin_get_name () from /usr/lib64/libgstreamer-0.10.so.0
#7  0x0000040000095d6c in .gst_plugin_load_file () from /usr/lib64/libgstreamer-0.10.so.0
#8  0x000004000009c608 in .gst_default_registry_check_feature_version () from /usr/lib64/libgstreamer-0.10.so.0
#9  0x000004000009c8c4 in .gst_registry_scan_path () from /usr/lib64/libgstreamer-0.10.so.0
#10 0x0000040000052024 in .gst_registry_fork_set_enabled () from /usr/lib64/libgstreamer-0.10.so.0
#11 0x0000040000052344 in .gst_registry_fork_set_enabled () from /usr/lib64/libgstreamer-0.10.so.0
#12 0x00000400000538ec in .gst_init () from /usr/lib64/libgstreamer-0.10.so.0
#13 0x00000400002257cc in .g_option_context_parse () from /lib64/libglib-2.0.so.0
#14 0x0000000010005fc8 in ?? ()
#15 0x0000008015459f2c in .generic_start_main () from /lib64/libc.so.6
#16 0x000000801545a1c0 in .__libc_start_main () from /lib64/libc.so.6
#17 0x0000000000000000 in ?? ()
Comment 1 Bastien Nocera 2007-08-14 07:34:12 UTC
The output of /proc/cpuinfo, might be useful to see what features the CPU has.

processor       : 0
cpu             : POWER5 (gr)
clock           : 1502.496000MHz
revision        : 2.2 (pvr 003a 0202)

processor       : 1
cpu             : POWER5 (gr)
clock           : 1502.496000MHz
revision        : 2.2 (pvr 003a 0202)

timebase        : 188050000
platform        : pSeries
machine         : CHRP IBM,9124-720
Comment 2 Bastien Nocera 2007-08-14 08:12:51 UTC
I forgot to mention that this was liboil-0.3.12-4.fc8.ppc64 (with the patch from bug 11134)

And the same on PPC (32-bit):

Program received signal SIGILL, Illegal instruction.
[Switching to Thread -135942144 (LWP 23135)]
test_altivec (ignored=0x0) at liboilcpu.c:647
647       asm volatile ("vor v0, v0, v0\n");
(gdb) bt
#0  test_altivec (ignored=0x0) at liboilcpu.c:647
#1  0x0eedaf6c in oil_cpu_fault_check_try (func=0xeedae80 <test_altivec>, priv=0x0) at liboilcpu.c:209
#2  0x0eedb110 in _oil_cpu_init () at liboilcpu.c:655
#3  0x0eedc21c in oil_init () at liboilfunction.c:136
#4  0x0e667f04 in ?? () from /usr/lib/gstreamer-0.10/libgstaudioresample.so
#5  0x0e664bcc in ?? () from /usr/lib/gstreamer-0.10/libgstaudioresample.so
#6  0x0ff386ec in ?? () from /usr/lib/libgstreamer-0.10.so.0
#7  0x0ff38ccc in gst_plugin_load_file () from /usr/lib/libgstreamer-0.10.so.0
#8  0x0ff3ed88 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#9  0x0ff3efe8 in gst_registry_scan_path () from /usr/lib/libgstreamer-0.10.so.0
#10 0x0fefa9e8 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#11 0x0fefacd0 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#12 0x0fefc104 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#13 0x0fad40a4 in g_option_context_parse () from /lib/libglib-2.0.so.0
#14 0x10005bf4 in ?? ()
#15 0xf7e7ae0c in generic_start_main (main=0x10005a90, argc=2, ubp_av=0xffafbb34, auxvec=0xffafbb90, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=<value optimized out>) at ../csu/libc-start.c:222
#16 0xf7e7b060 in __libc_start_main (argc=2, ubp_av=0xffafbb34, ubp_ev=<value optimized out>, auxvec=0xffafbb90, rtld_fini=0xffcec00 <_dl_fini>, stinfo=0x100070b8, stack_on_entry=0xffafbb20) at ../sysdeps/unix/sysv/linux/powerpc/libc-start.c:123
#17 0x00000000 in ?? ()
Comment 3 Bastien Nocera 2007-08-14 08:43:18 UTC
bug 10247 has more info, but we have better backtraces :)

*** This bug has been marked as a duplicate of bug 10247 ***
Comment 4 Bastien Nocera 2007-08-14 09:18:59 UTC
Not the same bug, as we're using 0.3.12...
Comment 5 David Schleef 2007-08-14 10:54:35 UTC
Yup, same bug.  I just checked in the fix.

*** This bug has been marked as a duplicate of bug 10247 ***
Comment 6 Bastien Nocera 2007-08-14 10:58:09 UTC
Thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.