Bug#786438: libmp3lame0: general protection error in libmp3lame.so.0.0.0

Bernhard Übelacker bernhardu at vr-web.de
Tue Jun 2 09:55:57 UTC 2015


Hello Fabian,


Am 02.06.2015 um 06:25 schrieb Fabian Greffrath:
> Hm, are we missing a specific compiler flag in addition to -msse or are
> we probably hunting down a compiler bug here?
Could it be also some linker flag of the .so or liquidsoap? I tried to build
a minimal example but then the crash does not appear anymore.


Nevertheless, as I experimented with bigger align values it stopped crashing.
Following worked inside qemu VM:


--- ./libmp3lame/vector/xmm_quantize_sub.c.orig 2011-05-07 18:05:17.000000000 +0200
+++ ./libmp3lame/vector/xmm_quantize_sub.c      2015-06-02 11:50:01.768000000 +0200
@@ -40,7 +40,7 @@ typedef union {
     int32_t _i_32[4]; /* unions are initialized by its first member */
     float   _float[4];
     __m128  _m128;
-} vecfloat_union;
+} __attribute__((aligned(0x20))) vecfloat_union;
 
 #define TRI_SIZE (5-1)  /* 1024 =  4**5 */
 static const FLOAT costab[TRI_SIZE * 2] = {



Kind regards,
Bernhard



More information about the pkg-multimedia-maintainers mailing list