when libx264 is used along with tcmalloc lib, libx264 lib crashes

Want to help the VideoLAN project? Designers, testers, translators, please come...
This is NOT about GETTING some help.
Forum rules
Please read the forum's rules carefully before posting. This forum should not be used to post VLC usage related questions.
pallaraghu
New Cone
New Cone
Posts: 2
Joined: 07 Nov 2017 13:50

when libx264 is used along with tcmalloc lib, libx264 lib crashes

Postby pallaraghu » 07 Nov 2017 14:19

Hi,

I am using libx264 lib to encode h264 video.

Code base used is: x264-snapshot-20120303-2245-stable ( http://download.videolan.org/x264/snaps ... le.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
#1 x264_macroblock_cache_load_progressive (h=h@entry=0x1536008, mb_x=mb_x@entry=0, mb_y=mb_y@entry=0) at common/macroblock.c:1360
#2 0x00007ffff73ed6a1 in x264_slice_write (h=h@entry=0x1536008) at encoder/encoder.c:2171
#3 0x00007ffff73ee1cc in x264_slices_write (h=h@entry=0x1536008) at 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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: when libx264 is used along with tcmalloc lib, libx264 lib crashes

Postby Jean-Baptiste Kempf » 07 Nov 2017 14:53

You should mail the x264-devel mailing list
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pallaraghu
New Cone
New Cone
Posts: 2
Joined: 07 Nov 2017 13:50

Re: when libx264 is used along with tcmalloc lib, libx264 lib crashes

Postby pallaraghu » 08 Nov 2017 12:16

Thank you Jean-Baptiste Kempf.
I sent mail to x264-devel mailing list.

Yet to get reply.

Thanks & Regards,
Raghavender.


Return to “Contribute and help the VideoLAN project”

Who is online

Users browsing this forum: No registered users and 16 guests