Discussion:
libx264 crashing when it is used with libtcmalloc.so.4
(too old to reply)
Raghavender Palla
2017-11-13 05:26:54 UTC
Permalink
Raw Message
Hi,

Anyone please tell whom to contact for these kind of issues ?

Thanks & Regards,

Raghavender.

On Fri, Nov 10, 2017 at 6:01 PM, Raghavender Palla <
Hi,
Can some one help on this x264 lib crash issue please ?
Thanks & Regards,
Raghavender.
On Wed, Nov 8, 2017 at 11:17 AM, Raghavender Palla <
Hi,
I am using libx264 lib to encode h264 video.
Code base used is: x264-snapshot-20120303-2245-stable (
http://download.videolan.org/x264/snapshots/x264-snapshot-20
120303-2245-stable.tar.bz2 )
Compiled the code and used along with libtcmalloc.so.4 in our application.
Linux: RHEL 7.1
I am getting crash and seeing the following BT.
Program received signal SIGSEGV, Segmentation fault.
x264_macroblock_cache_load (b_mbaff=0, mb_y=48201728, mb_x=0,
h=0x1536008) at common/macroblock.c:1074
1074 M128( h->mb.cache.mv[l][i8] ) = M128_ZERO;
Missing separate debuginfos, use: debuginfo-install
glibc-2.17-78.el7.x86_64 libgcc-4.8.3-9.el7.x86_64
libstdc++-4.8.3-9.el7.x86_64 xz-libs-5.1.2-9alpha.el7.x86_64
zlib-1.2.7-13.el7.x86_64
(gdb) bt
#0 x264_macroblock_cache_load (b_mbaff=0, mb_y=48201728, mb_x=0,
h=0x1536008) at common/macroblock.c:1074
encoder/encoder.c:2171
encoder/encoder.c:2474
#4 0x00007ffff73f2d9b in x264_encoder_encode (h=0x1536008,
pp_nal=0x7fffffffdca0, pi_nal=0x7fffffffdca8, pic_in=<optimized out>,
pic_out=0x7fffffffdbe0) at encoder/encoder.c:3059
It crashed at this line in common/macroblock.c file.
M128( h->mb.cache.mv[l][i8] ) = M128_ZERO; ------> this line is
crashing.
Anyone faced this issue earlier ? And is it anything do with the options
used while building libX264 ?
Any relation with __m128 and tcmalloc compatibility issue as the issue is
coming when libtcmalloc is used.
Can some one help on this ?
Thanks & Regards,
Raghavender Palla
Henrik Gramner
2017-11-13 16:17:36 UTC
Permalink
Raw Message
On Mon, Nov 13, 2017 at 6:26 AM, Raghavender Palla
x264-snapshot-20120303-2245
Does it occur with the latest git master? I doubt anyone is going to
spend time looking into a potential issue with a more than 5 year old
version.
Derek Buitenhuis
2017-11-13 13:53:42 UTC
Permalink
Raw Message
Post by Raghavender Palla
Hi,
Anyone please tell whom to contact for these kind of issues ?
Probably whoever decided to use an unsupported custom allocator with x264.

- Derek

Loading...