[vlc] [Sean Lowry <Sean.Lowry at keycom.co.uk>] Trancoding Segfaults

System administration admin at via.ecp.fr
Thu Apr 20 19:31:41 CEST 2006


----- Forwarded message from Sean Lowry <Sean.Lowry at keycom.co.uk> -----

From: Sean Lowry <Sean.Lowry at keycom.co.uk>
Date: Thu, 20 Apr 2006 10:44:56 +0100
To: vlc at videolan.org
Subject: Trancoding Segfaults
X-Mailer: Internet Mail Service (5.5.2653.19)

The deleted attachment is at:
    <http://www.videolan.org/~admin/20060420-videolan/pj1>
 
Getting Segfaults with transcoding mp2 (ts) to mp4 (ts). When using 2
threads its hit or miss if is segfaults immediately, if It doesn't segfault
immediately then what you get is a transcoded picture with other channels
pictures on top. It may be difficult to see but here is a snapshot. 


Now with transcoding with no extra threads enabled it doesn't segfault
immediately it works for several hours and then Segfaults.

Here's a bit of debug if it helps?

Sean


(gdb) run --sout-ts-es-id-pid --programs='4165,4415,4671' dvb:
--dvb-adapter=0 --dvb-frequency=634166667 --dvb-modulation=16
--dvb-inversion=0 --dvb-bandwidth=8 --dvb-code-rate-hp=0 --dvb-hierarchy=0
--dvb-guard=32 --dvb-transmission=8 --sout-standard-mux=ts --sout-udp-ttl=4
--sout="#transcode{vcodec=mp4v,vb=2048,scale=1,acodec=mp4a,ab=192,channels=2
,scodec=dvbs,threads=2}:duplicate{dst=std{access=rtp,mux=ts,dst=225.1.1.1:12
34,sap,name='BBC
One::tv::1'},select='program=4165',dst=std{access=rtp,mux=ts,dst=225.1.1.2:1
234,sap,name='BBC
News::tv::1'},select='program=4415',dst=std{access=rtp,mux=ts,dst=225.1.1.4:
1234,sap,name='BBC Two::tv::1'},select='program=4671'}"
Starting program: /usr/local/bin/vlc --sout-ts-es-id-pid
--programs='4165,4415,4671' dvb: --dvb-adapter=0 --dvb-frequency=634166667
--dvb-modulation=16 --dvb-inversion=0 --dvb-bandwidth=8 --dvb-code-rate-hp=0
--dvb-hierarchy=0 --dvb-guard=32 --dvb-transmission=8 --sout-standard-mux=ts
--sout-udp-ttl=4
--sout="#transcode{vcodec=mp4v,vb=2048,scale=1,acodec=mp4a,ab=192,channels=2
,scodec=dvbs,threads=2}:duplicate{dst=std{access=rtp,mux=ts,dst=225.1.1.1:12
34,sap,name='BBC
One::tv::1'},select='program=4165',dst=std{access=rtp,mux=ts,dst=225.1.1.2:1
234,sap,name='BBC
News::tv::1'},select='program=4415',dst=std{access=rtp,mux=ts,dst=225.1.1.4:
1234,sap,name='BBC Two::tv::1'},select='program=4671'}"
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0x147000
[Thread debugging using libthread_db enabled]
[New Thread -1208367440 (LWP 3574)]
VLC media player 0.8.5-test2 Janus
starting VLC root wrapper... using UID 500 (sean)
Detaching after fork from child process 3577.
[New Thread -1210496096 (LWP 3578)]
[New Thread -1220985952 (LWP 3579)]
[New Thread -1231475808 (LWP 3580)]
Remote control interface initialized. Type `help' for help.
[New Thread -1241965664 (LWP 3581)]
[New Thread -1252455520 (LWP 3582)]
[New Thread -1262945376 (LWP 3583)]
[00000243] stream_out_standard private: SAP Enabled
[New Thread -1273435232 (LWP 3584)]
[New Thread -1283925088 (LWP 3585)]
[00000251] stream_out_standard private: SAP Enabled
[New Thread -1294414944 (LWP 3586)]
[00000255] stream_out_standard private: SAP Enabled
status change: ( new input: dvb: )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
libdvbpsi error (PSI decoder): TS discontinuity (received 12, expected 0)
for PID 0
libdvbpsi error (PSI decoder): TS discontinuity (received 13, expected 0)
for PID 4165
[New Thread -1305236576 (LWP 3589)]
[New Thread -1315726432 (LWP 3590)]
[New Thread -1326216288 (LWP 3591)]
[New Thread -1336706144 (LWP 3592)]
libdvbpsi error (PSI decoder): TS discontinuity (received 7, expected 0) for
PID 18
libdvbpsi error (PSI decoder): TS discontinuity (received 8, expected 0) for
PID 4671
[New Thread -1347196000 (LWP 3593)]
[New Thread -1357685856 (LWP 3594)]
[New Thread -1368175712 (LWP 3595)]
[New Thread -1378665568 (LWP 3596)]
libdvbpsi error (PSI decoder): TS discontinuity (received 3, expected 0) for
PID 4415
[New Thread -1389155424 (LWP 3597)]
[New Thread -1399645280 (LWP 3598)]
[New Thread -1410135136 (LWP 3599)]
[New Thread -1423094880 (LWP 3600)]
[New Thread -1486570592 (LWP 3601)]
[New Thread -1497060448 (LWP 3602)]
[New Thread -1510315104 (LWP 3603)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1510315104 (LWP 3603)]
0x0810276b in EncodeVideo ()
(gdb) info thread
* 25 Thread -1510315104 (LWP 3603)  0x0810276b in EncodeVideo ()
  24 Thread -1497060448 (LWP 3602)  0x00147410 in __kernel_vsyscall ()
  23 Thread -1486570592 (LWP 3601)  0x00147410 in __kernel_vsyscall ()
  22 Thread -1423094880 (LWP 3600)  0x00147410 in __kernel_vsyscall ()
  21 Thread -1410135136 (LWP 3599)  0x00147410 in __kernel_vsyscall ()
  20 Thread -1399645280 (LWP 3598)  0x00147410 in __kernel_vsyscall ()
  19 Thread -1389155424 (LWP 3597)  0x00147410 in __kernel_vsyscall ()
  18 Thread -1378665568 (LWP 3596)  0x00147410 in __kernel_vsyscall ()
  17 Thread -1368175712 (LWP 3595)  0x00147410 in __kernel_vsyscall ()
  16 Thread -1357685856 (LWP 3594)  0x00147410 in __kernel_vsyscall ()
  15 Thread -1347196000 (LWP 3593)  0x00147410 in __kernel_vsyscall ()
  14 Thread -1336706144 (LWP 3592)  0x00147410 in __kernel_vsyscall ()
  13 Thread -1326216288 (LWP 3591)  0x00147410 in __kernel_vsyscall ()
  12 Thread -1315726432 (LWP 3590)  0x00147410 in __kernel_vsyscall ()
  11 Thread -1305236576 (LWP 3589)  get_non_intra_block (decoder=0xa0a4dc0,
quant_matrix=0xa0a6274) at slice.c:583
  10 Thread -1294414944 (LWP 3586)  0x00147410 in __kernel_vsyscall ()
  9 Thread -1283925088 (LWP 3585)  0x00147410 in __kernel_vsyscall ()
  8 Thread -1273435232 (LWP 3584)  0x00147410 in __kernel_vsyscall ()
  7 Thread -1262945376 (LWP 3583)  0x00147410 in __kernel_vsyscall ()
  6 Thread -1252455520 (LWP 3582)  0x00147410 in __kernel_vsyscall ()
  5 Thread -1241965664 (LWP 3581)  0x00147410 in __kernel_vsyscall ()
  4 Thread -1231475808 (LWP 3580)  0x00147410 in __kernel_vsyscall ()
  3 Thread -1220985952 (LWP 3579)  0x00147410 in __kernel_vsyscall ()
  2 Thread -1210496096 (LWP 3578)  0x00147410 in __kernel_vsyscall ()
  1 Thread -1208367440 (LWP 3574)  0x00147410 in __kernel_vsyscall ()
(gdb) thread apply all bt

Thread 25 (Thread -1510315104 (LWP 3603)):
#0  0x0810276b in EncodeVideo ()
#1  0x00000000 in ?? ()

Thread 24 (Thread -1497060448 (LWP 3602)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x08104bb4 in FfmpegThread ()
#3  0x00000000 in ?? ()

Thread 23 (Thread -1486570592 (LWP 3601)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x08104bb4 in FfmpegThread ()
#3  0x00000000 in ?? ()

Thread 22 (Thread -1423094880 (LWP 3600)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x00d7c798 in EncoderThread () from
/usr/local/lib/vlc/stream_out/libstream_out_transcode_plugin.so
#3  0x00000000 in ?? ()

Thread 21 (Thread -1410135136 (LWP 3599)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808e326 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 20 (Thread -1399645280 (LWP 3598)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c937ae in __lll_mutex_lock_wait () from /lib/libpthread.so.0
#2  0x00c9016c in _L_mutex_lock_70 () from /lib/libpthread.so.0
#3  0x00c8ffb8 in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x080871e1 in sout_InputSendBuffer ()
#5  0x09f82810 in ?? ()
#6  0x0a036708 in ?? ()
#7  0x00a4fcff in ?? ()
#8  0x3476be82 in ?? ()
#9  0x00000002 in ?? ()
#10 0x00000481 in ?? ()
#11 0x00000480 in ?? ()
#12 0x000000c0 in ?? ()
#13 0x0000bb80 in ?? ()
#14 0x00000006 in ?? ()
#15 0x00000002 in ?? ()
#16 0x00000000 in ?? ()

Thread 19 (Thread -1389155424 (LWP 3597)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c937ae in __lll_mutex_lock_wait () from /lib/libpthread.so.0
#2  0x00c9016c in _L_mutex_lock_70 () from /lib/libpthread.so.0
#3  0x00c8ffb8 in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x080871e1 in sout_InputSendBuffer ()
#5  0x09f82810 in ?? ()
#6  0x00000000 in ?? ()

Thread 18 (Thread -1378665568 (LWP 3596)):
---Type <return> to continue, or q <return> to quit--- 
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808e326 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 17 (Thread -1368175712 (LWP 3595)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808e326 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 16 (Thread -1357685856 (LWP 3594)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c937ae in __lll_mutex_lock_wait () from /lib/libpthread.so.0
#2  0x00c9016c in _L_mutex_lock_70 () from /lib/libpthread.so.0
#3  0x00c8ffb8 in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x080871e1 in sout_InputSendBuffer ()
#5  0x09f82810 in ?? ()
#6  0x0a036678 in ?? ()
#7  0x00c4fcff in ?? ()
#8  0x555515bf in ?? ()
#9  0x00000002 in ?? ()
#10 0x00000481 in ?? ()
#11 0x00000480 in ?? ()
#12 0x00000100 in ?? ()
#13 0x0000bb80 in ?? ()
#14 0x00000006 in ?? ()
#15 0x00000002 in ?? ()
#16 0x00000000 in ?? ()

Thread 15 (Thread -1347196000 (LWP 3593)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c937ae in __lll_mutex_lock_wait () from /lib/libpthread.so.0
#2  0x00c9016c in _L_mutex_lock_70 () from /lib/libpthread.so.0
#3  0x00c8ffb8 in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x08085d52 in sout_InputNew ()
#5  0x09f82810 in ?? ()
#6  0x00000000 in ?? ()

Thread 14 (Thread -1336706144 (LWP 3592)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808e326 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 13 (Thread -1326216288 (LWP 3591)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808e326 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 12 (Thread -1315726432 (LWP 3590)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c937ae in __lll_mutex_lock_wait () from /lib/libpthread.so.0
#2  0x00c9016c in _L_mutex_lock_70 () from /lib/libpthread.so.0
#3  0x00c8ffb8 in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x080871e1 in sout_InputSendBuffer ()
#5  0x09f82810 in ?? ()
---Type <return> to continue, or q <return> to quit---
#6  0x09fd0220 in ?? ()
#7  0x04c4fcff in ?? ()
#8  0x56ddb4bd in ?? ()
#9  0x00000002 in ?? ()
#10 0x00000481 in ?? ()
#11 0x00000480 in ?? ()
#12 0x00000100 in ?? ()
#13 0x0000bb80 in ?? ()
#14 0x00000006 in ?? ()
#15 0x00000002 in ?? ()
#16 0x00000000 in ?? ()

Thread 11 (Thread -1305236576 (LWP 3589)):
#0  get_non_intra_block (decoder=0xa0a4dc0, quant_matrix=0xa0a6274) at
slice.c:583
#1  0x002453e5 in mpeg2_slice (decoder=0xa0a4dc0, code=15, 
    buffer=0xab2d5040
"2ç`\037×7\224\"k\035\\ù#\016\200?\025%øà\001t!þ?°Aë\227xh\230\222*óaë\224>\
t\216\037yýÐ\002ÛIBd\215A\220H\217yük\217\016\234e'\200¶HÞ&óø\016&`\025ÅâÒê^
\235
r¹ð\234*o\036\"mÅ×0\201\214ÑÔr³\200\016`\027ÞPíb\200÷y<L\026\0020\001õsá \\\
tãXP\023") at slice.c:969
#2  0x00241a4d in mpeg2_parse (mpeg2dec=0xa0a4dc0) at decode.c:188
#3  0x0023fe8b in DecodeBlock () from
/usr/local/lib/vlc/codec/liblibmpeg2_plugin.so
#4  0x000411c6 in ?? ()

Thread 10 (Thread -1294414944 (LWP 3586)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808e326 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 9 (Thread -1283925088 (LWP 3585)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808e326 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 8 (Thread -1273435232 (LWP 3584)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808d91a in msleep ()
#3  0xb417e40c in ?? ()
#4  0x00000000 in ?? ()

Thread 7 (Thread -1262945376 (LWP 3583)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808e326 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 6 (Thread -1252455520 (LWP 3582)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00b77571 in ___newselect_nocancel () from /lib/libc.so.6
#2  0x00d4c854 in Block () from /usr/local/lib/vlc/access/libdvb_plugin.so
#3  0xb5590154 in ?? ()
#4  0x20656d61 in ?? ()
#5  0x202c7361 in ?? ()
#6  0x6e756f72 in ?? ()
#7  0x79622064 in ?? ()
#8  0x756f7220 in ?? ()
#9  0xb5590054 in ?? ()
#10 0xb5590154 in ?? ()
---Type <return> to continue, or q <return> to quit---
#11 0xb55900d4 in ?? ()
#12 0x20747365 in ?? ()
#13 0x6b6e696c in ?? ()
#14 0x54736920 in ?? ()
#15 0x6f6d6572 in ?? ()
#16 0x2e646576 in ?? ()
#17 0x5d535b20 in ?? ()
#18 0x00000000 in ?? ()

Thread 5 (Thread -1241965664 (LWP 3581)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808d91a in msleep ()
#3  0xb5f9144c in ?? ()
#4  0x00000000 in ?? ()

Thread 4 (Thread -1231475808 (LWP 3580)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808d91a in msleep ()
#3  0xb699226c in ?? ()
#4  0x00000000 in ?? ()

Thread 3 (Thread -1220985952 (LWP 3579)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808d91a in msleep ()
#3  0xb73933dc in ?? ()
#4  0x00000000 in ?? ()

Thread 2 (Thread -1210496096 (LWP 3578)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808d91a in msleep ()
#3  0xb7d9439c in ?? ()
#4  0x00000000 in ?? ()

Thread 1 (Thread -1208367440 (LWP 3574)):
#0  0x00147410 in __kernel_vsyscall ()
#1  0x00b77571 in ___newselect_nocancel () from /lib/libc.so.6
#2  0x0808b479 in __net_ReadNonBlock ()
(gdb) 
(gdb) quit





----- End forwarded message -----

-- 
System administration <admin at via.ecp.fr>
VIA, École Centrale Paris, France

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list