Bug 12111 - Crashes in malloc with no altivec
Summary: Crashes in malloc with no altivec
Status: RESOLVED DUPLICATE of bug 12027
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-23 04:14 UTC by Bastien Nocera
Modified: 2008-02-20 14:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Bastien Nocera 2007-08-23 04:14:32 UTC
Afer bug 12027, I disabled altivec optimisations in PPC/PPC64, but now I get crashes in oil_prototype_from_string in malloc.

After some changes:
sed -i 's/CFLAGS="$CFLAGS "-maltivec""/CFLAGS="$CFLAGS "-fno-tree-vectorize
-Wa,-maltivec""/' configure
sed -i 's/LIBOIL_CFLAGS -maltivec/LIBOIL_CFLAGS -fno-tree-vectorize
-Wa,-maltivec/' configure

It still crashes:

Starting program:
/home/hadess/packages/BUILD/liboil-0.3.12/examples/.libs/lt-example1 

Program received signal SIGILL, Illegal instruction.
test_altivec (ignored=0x0) at liboilcpu.c:651
651       asm volatile ("vor v0, v0, v0\n");
(gdb) continue 
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00000080154bab88 in .__libc_malloc () from /lib64/libc.so.6
(gdb) bt
#0  0x00000080154bab88 in .__libc_malloc () from /lib64/libc.so.6
#1  0x0000040000038f10 in oil_prototype_from_string (s=0x4000006ce10 "uint8_t
*d_4xn, uint8_t* s_3xn, int n") at liboilprototype.c:195
#2  0x000004000003b518 in oil_test_new (klass=0x40000087fe8) at liboiltest.c:73
#3  0x0000040000036fbc in oil_class_optimize (klass=0x40000087fe8) at
liboilfunction.c:350
#4  0x0000040000037370 in oil_optimize_all () at liboilfunction.c:181
#5  0x00000400000374f0 in oil_init () at liboilfunction.c:140
#6  0x0000000010000708 in main (argc=24, argv=0x0) at example1.c:41
(gdb) x/i $pc
0x80154bab88 <.__libc_malloc+136>:      ld      r31,0(r9)
Comment 1 David Schleef 2008-02-20 14:54:05 UTC

*** This bug has been marked as a duplicate of bug 12027 ***


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.