Page 1 of 1

FReeBSD5.5 pthread_testcancel in 0.9.0-svn Grishenko

Posted: 21 Nov 2006 12:55
by Humperdinck
Dear Forum,

I have a coredump that is reproducable on FreeBSD 5.5 STABLE with 0.9.0-svn Grishenko. All ports updated. Looks to be a pthread issue?

Vlc links to following:

tinca# ldd /usr/local/bin/vlc
/usr/local/bin/vlc:
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28077000)
libvlc.so.0 => /usr/local/lib/libvlc.so.0 (0x28164000)
libhal.so.1 => /usr/local/lib/libhal.so.1 (0x28230000)
libintl.so.6 => /usr/local/lib/libintl.so.6 (0x28238000)
libdbus-1.so.3 => /usr/local/lib/libdbus-1.so.3 (0x28241000)
libm.so.3 => /lib/libm.so.3 (0x28278000)
libpthread.so.1 => /usr/lib/libpthread.so.1 (0x28293000)
libc.so.5 => /lib/libc.so.5 (0x282b7000)
libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x28392000)

playing a playlist with the following command:

vlc playlist.m3u --sout "#transcode{acodec=mpga,ab=192}:std{access=udp,mux=ts,dst=239.255.255.255}"

where the playlist looks like:

filenamea.ogm
filenameb.ogm
...
filenamez.ogm

Gives a vlc.core after playing a few filenames. The gdb backtrack (and the gdb init) looks like this:

tinca# gdb /usr/local/bin/vlc vlc.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `vlc'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libvlc.so.0...done.
Loaded symbols for /usr/local/lib/libvlc.so.0
Reading symbols from /usr/local/lib/libhal.so.1...done.
Loaded symbols for /usr/local/lib/libhal.so.1
Reading symbols from /usr/local/lib/libintl.so.6...done.
Loaded symbols for /usr/local/lib/libintl.so.6
Reading symbols from /usr/local/lib/libdbus-1.so.3...done.
Loaded symbols for /usr/local/lib/libdbus-1.so.3
Reading symbols from /lib/libm.so.3...done.
Loaded symbols for /lib/libm.so.3
Reading symbols from /usr/lib/libpthread.so.1...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /usr/lib/libstdc++.so.4...done.
Loaded symbols for /usr/lib/libstdc++.so.4
Reading symbols from /usr/local/lib/vlc/access/libcddax_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/access/libcddax_plugin.so
Reading symbols from /usr/local/lib/libcddb.so.3...done.
Loaded symbols for /usr/local/lib/libcddb.so.3
Reading symbols from /usr/local/lib/libcdio_paranoia.so.0...done.
Loaded symbols for /usr/local/lib/libcdio_paranoia.so.0
Reading symbols from /usr/local/lib/libcdio_cdda.so.0...done.
Loaded symbols for /usr/local/lib/libcdio_cdda.so.0
Reading symbols from /usr/local/lib/libcdio.so.7...done.
Loaded symbols for /usr/local/lib/libcdio.so.7
Reading symbols from /lib/libcam.so.2...done.
Loaded symbols for /lib/libcam.so.2
Reading symbols from /lib/libsbuf.so.2...done.
Loaded symbols for /lib/libsbuf.so.2
Reading symbols from /usr/local/lib/vlc/audio_output/liboss_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/audio_output/liboss_plugin.so
Reading symbols from /usr/local/lib/vlc/misc/libmemcpymmxext_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/misc/libmemcpymmxext_plugin.so
Reading symbols from /usr/local/lib/vlc/stream_out/libstream_out_transcode_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/stream_out/libstream_out_transcode_plugin.so
Reading symbols from /usr/local/lib/vlc/stream_out/libstream_out_standard_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/stream_out/libstream_out_standard_plugin.so
Reading symbols from /usr/local/lib/vlc/access_output/libaccess_output_udp_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/access_output/libaccess_output_udp_plugin.so
Reading symbols from /usr/local/lib/vlc/mux/libmux_ts_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/mux/libmux_ts_plugin.so
Reading symbols from /usr/local/lib/libdvbpsi.so.4...done.
Loaded symbols for /usr/local/lib/libdvbpsi.so.4
Reading symbols from /usr/local/lib/vlc/access/libaccess_file_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/access/libaccess_file_plugin.so
Reading symbols from /usr/local/lib/vlc/demux/libplaylist_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/demux/libplaylist_plugin.so
Reading symbols from /usr/local/lib/vlc/misc/libxml_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/misc/libxml_plugin.so
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.2...done.
Loaded symbols for /lib/libz.so.2
Reading symbols from /usr/local/lib/vlc/control/libhotkeys_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/control/libhotkeys_plugin.so
Reading symbols from /usr/local/lib/vlc/misc/libscreensaver_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/misc/libscreensaver_plugin.so
Reading symbols from /usr/local/lib/vlc/control/librc_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/control/librc_plugin.so
Reading symbols from /usr/local/lib/vlc/access/libdvdnav_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/access/libdvdnav_plugin.so
Reading symbols from /usr/local/lib/libdvdnav.so.4...done.
Loaded symbols for /usr/local/lib/libdvdnav.so.4
Reading symbols from /usr/local/lib/vlc/access/libvcd_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/access/libvcd_plugin.so
Reading symbols from /usr/local/lib/vlc/access/libaccess_directory_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/access/libaccess_directory_plugin.so
Reading symbols from /usr/local/lib/vlc/demux/libogg_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/demux/libogg_plugin.so
Reading symbols from /usr/local/lib/libogg.so.5...done.
Loaded symbols for /usr/local/lib/libogg.so.5
Reading symbols from /usr/local/lib/vlc/demux/libvobsub_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/demux/libvobsub_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libflacdec_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libflacdec_plugin.so
Reading symbols from /usr/local/lib/libFLAC.so.7...done.
Loaded symbols for /usr/local/lib/libFLAC.so.7
Reading symbols from /usr/local/lib/vlc/codec/liblpcm_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/liblpcm_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libvorbis_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libvorbis_plugin.so
Reading symbols from /usr/local/lib/libvorbisenc.so.2...done.
Loaded symbols for /usr/local/lib/libvorbisenc.so.2
Reading symbols from /usr/local/lib/libvorbis.so.3...done.
Loaded symbols for /usr/local/lib/libvorbis.so.3
Reading symbols from /usr/local/lib/vlc/codec/libtheora_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libtheora_plugin.so
Reading symbols from /usr/local/lib/libtheora.so.2...done.
Loaded symbols for /usr/local/lib/libtheora.so.2
Reading symbols from /usr/local/lib/vlc/codec/libspeex_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libspeex_plugin.so
Reading symbols from /usr/local/lib/libspeex.so.3...done.
Loaded symbols for /usr/local/lib/libspeex.so.3
Reading symbols from /usr/local/lib/vlc/codec/librawvideo_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/librawvideo_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libspudec_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libspudec_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libsvcdsub_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libsvcdsub_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libcvdsub_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libcvdsub_plugin.so
Reading symbols from /usr/local/lib/vlc/packetizer/libpacketizer_mpegvideo_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/packetizer/libpacketizer_mpegvideo_plugin.so
Reading symbols from /usr/local/lib/vlc/packetizer/libpacketizer_mpeg4video_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/packetizer/libpacketizer_mpeg4video_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libpng_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libpng_plugin.so
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/local/lib/vlc/codec/libfake_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libfake_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libsdl_image_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libsdl_image_plugin.so
Reading symbols from /usr/local/lib/libSDL_image.so.1...done.
Loaded symbols for /usr/local/lib/libSDL_image.so.1
Reading symbols from /usr/local/lib/libtiff.so.4...done.
Loaded symbols for /usr/local/lib/libtiff.so.4
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/local/lib/libSDL.so.11...done.
Loaded symbols for /usr/local/lib/libSDL.so.11
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libXrandr.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXrandr.so.2
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/local/lib/libvga.so.1...done.
Loaded symbols for /usr/local/lib/libvga.so.1
Reading symbols from /usr/lib/libvgl.so.3...done.
Loaded symbols for /usr/lib/libvgl.so.3
Reading symbols from /usr/local/lib/libaa.so.1...done.
Loaded symbols for /usr/local/lib/libaa.so.1
Reading symbols from /usr/lib/libusbhid.so.1...done.
Loaded symbols for /usr/lib/libusbhid.so.1
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /usr/local/lib/vlc/codec/liblibmpeg2_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/liblibmpeg2_plugin.so
Reading symbols from /usr/local/lib/libmpeg2.so.0...done.
Loaded symbols for /usr/local/lib/libmpeg2.so.0
Reading symbols from /usr/local/lib/vlc/codec/liba52_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/liba52_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libcinepak_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libcinepak_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libdts_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libdts_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libaraw_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libaraw_plugin.so
Reading symbols from /usr/local/lib/vlc/codec/libx264_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libx264_plugin.so
Reading symbols from /usr/local/lib/libx264.so.50...done.
Loaded symbols for /usr/local/lib/libx264.so.50
Reading symbols from /usr/local/lib/libgpac.so.1...done.
Loaded symbols for /usr/local/lib/libgpac.so.1
Reading symbols from /usr/lib/libssl.so.3...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /lib/libcrypto.so.3...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from /usr/local/lib/vlc/codec/libffmpeg_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/codec/libffmpeg_plugin.so
Reading symbols from /usr/local/lib/libpostproc.so.1...done.
Loaded symbols for /usr/local/lib/libpostproc.so.1
Reading symbols from /usr/local/lib/libavformat.so.1...done.
Loaded symbols for /usr/local/lib/libavformat.so.1
Reading symbols from /usr/local/lib/libavcodec.so.1...done.
Loaded symbols for /usr/local/lib/libavcodec.so.1
Reading symbols from /usr/local/lib/libavutil.so.1...done.
Loaded symbols for /usr/local/lib/libavutil.so.1
Reading symbols from /usr/local/lib/libfaac.so.0...done.
Loaded symbols for /usr/local/lib/libfaac.so.0
Reading symbols from /usr/local/lib/libmp4v2.so.0...done.
Loaded symbols for /usr/local/lib/libmp4v2.so.0
Reading symbols from /usr/local/lib/vlc/audio_filter/liba52tofloat32_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/audio_filter/liba52tofloat32_plugin.so
Reading symbols from /usr/local/lib/liba52.so.0...done.
Loaded symbols for /usr/local/lib/liba52.so.0
Reading symbols from /usr/local/lib/vlc/audio_filter/libdtstofloat32_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/audio_filter/libdtstofloat32_plugin.so
Reading symbols from /usr/local/lib/vlc/audio_filter/libmpgatofixed32_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/audio_filter/libmpgatofixed32_plugin.so
Reading symbols from /usr/local/lib/libmad.so.2...done.
Loaded symbols for /usr/local/lib/libmad.so.2
Reading symbols from /usr/local/lib/vlc/audio_filter/liblinear_resampler_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/audio_filter/liblinear_resampler_plugin.so
Reading symbols from /usr/local/lib/vlc/audio_filter/libaudio_format_plugin.so...done.
Loaded symbols for /usr/local/lib/vlc/audio_filter/libaudio_format_plugin.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x282af3b3 in pthread_testcancel () from /usr/lib/libpthread.so.1
(gdb) bt
#0 0x282af3b3 in pthread_testcancel () from /usr/lib/libpthread.so.1
#1 0x282a7946 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1
#2 0x00000000 in ?? ()
(gdb) quit

Posted: 27 Nov 2006 23:32
by Humperdinck
I wonder if a remap in /etc/libmap.conf would work and if so, to what other library?

Posted: 29 Nov 2006 22:37
by Humperdinck
Dear Forum,

No, alas, changing the libmap.conf had no effect. Running vlc in gdb gives the following error and backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 12 (LWP 100069)]
0x28892647 in Packetize (p_dec=0x81ebc00, pp_block=0xbeef3c04) at mpeg4video.c:280
280 p_pic->i_pts = i_pts = p_sys->bytestream.p_block->i_pts;
(gdb) bt
#0 0x28892647 in Packetize (p_dec=0x81ebc00, pp_block=0xbeef3c04) at mpeg4video.c:280
#1 0x281a48b6 in DecoderDecode (p_dec=0x81ebc00, p_block=0x14c2f000) at input/decoder.c:599
#2 0x281a365c in input_DecoderDecode (p_dec=0x81ebc00, p_block=0x14c2f000) at input/decoder.c:258
#3 0x281aa538 in EsOutSend (out=0x28043000, es=0xa725600, p_block=0x14c2f000) at input/es_out.c:1088
#4 0x286b7a2b in Ogg_DecodePacket (p_demux=0x81d3d00, p_stream=0x81eb400, p_oggpacket=0xbeef3df0) at vlc_es_out.h:108
#5 0x286b6d29 in Demux (p_demux=0x81d3d00) at ogg.c:346
#6 0x281accd3 in MainLoop (p_input=0x81d6800) at input/input.c:549
#7 0x281aca58 in Run (p_input=0x81d6800) at input/input.c:454
#8 0x282a4b09 in pthread_create () from /usr/lib/libpthread.so.1
#9 0x28361327 in _ctx_start () from /lib/libc.so.5

I'd be grateful for any input on this. Thanks In Advance.

Posted: 02 Dec 2006 09:19
by Humperdinck
Mapping vlc to another library has no effect. The core dump appears in exactly the same way. I used the below library:

[vlc]
libpthread.so.1 libthr.so.1
libpthread.so libthr.so

ldd /usr/local/bin/vlc
/usr/local/bin/vlc:
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28080000)
libvlc.so.0 => /usr/local/lib/libvlc.so.0 (0x2816d000)
libhal.so.1 => /usr/local/lib/libhal.so.1 (0x28239000)
libintl.so.6 => /usr/local/lib/libintl.so.6 (0x28241000)
libdbus-1.so.3 => /usr/local/lib/libdbus-1.so.3 (0x2824a000)
libm.so.3 => /lib/libm.so.3 (0x28281000)
libpthread.so.1 => /usr/lib/libthr.so.1 (0x2829c000)
libc.so.5 => /lib/libc.so.5 (0x282ad000)
libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x28388000)

So it's not a libpthread issue?