[flext] ARM Linux crash unless -O0 used

Jamie Bullock jamie at jamiebullock.com
Thu Apr 3 19:01:48 UTC 2014


FWIW, my library works fine on Raspberry Pi (ARMv6) with -O3. The Udoo is ARMv7.

Jamie

On 31 Mar 2014, at 22:18, Thomas Grill <gr at grrrr.org> wrote:

> No idea,
> but i'll start compiling for the Beaglebone black soon. Let's see...
> gr~~~
> 
> 
> Am 31.03.2014 um 16:24 schrieb Jamie Bullock <jamie at jamiebullock.com>:
> 
>> 
>> Hi,
>> 
>> I'm trying to build a flext library for the Udoo Quad platform, which uses an Ubuntu variant on ARM...
>> 
>> 	$ uname -a
>> 	Linux udoo 3.0.35 #1 SMP PREEMPT Mon Mar 3 15:17:07 CET 2014 armv7l armv7l armv7l GNU/Linux
>> 
>> If I compile with -O0, everything works fine. However with O2 or O3 I get a crash as soon as the library loads.
>> 
>> Unfortunately this means getting a useful backtrace is difficult:
>> 
>> 	Program received signal SIGBUS, Bus error.
>> 	0x2b09d32c in ?? () from ./ml.pd_linux
>> 	(gdb) bt
>> 	#0  0x2b09d32c in ?? () from ./ml.pd_linux
>> 	#1  0x2ac5d418 in malloc () from /lib/arm-linux-gnueabi/libc.so.6
>> 	#2  0x00000008 in ?? ()
>> 	#3  0x00000008 in ?? ()
>> 	Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>> 
>> Any ideas?
>> 
>> Jamie
>> 
>> 
>> _______________________________________________
>> http://grrrr.org/ext/flext
>> 
>> flext mailing list
>> flext at grrrr.org
>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
> 



More information about the flext mailing list