[vlc-devel] sudden segfaults in sdp

Jure Pečar pegasus at nerv.eu.org
Fri Dec 25 22:14:51 CET 2009


Hello,

I use vlc to transcode incoming udp/ts mpeg2 to 3gp h264 and pass it on via
rtsp/sdp. This worked ok with 1.0.4 for a few weeks now, but suddenly I'm
observing repeatable segfaults when client wants to fetch sdp. Strace shows
that is dies immediately after it receives describe request:

[pid 22463] 21:51:38.346534 recv(11, "\r", 1, 0) = 1
[pid 22463] 21:51:38.346570 recv(11, "\n", 1, 0) = 1
[pid 22463] 21:51:38.346606 recv(11, "\r", 1, 0) = 1
[pid 22463] 21:51:38.346643 recv(11, "\n", 1, 0) = 1
[pid 22463] 21:51:38.346685 recv(11, 0x9c642df, 1, 0) = -1 EAGAIN (Resource
temporarily unavailable) 
[pid 22463] 21:51:38.346722 clock_gettime (CLOCK_MONOTONIC, {7028727,
564195294}) = 0 [pid 22463] 21:51:38.346761 time (NULL)  = 1261774298 
[pid 22463] 21:51:38.346811 getsockname(11, {sa_family=AF_INET,
sin_port=htons (8581), sin_addr=inet_addr ("xx.xx.xx.xx")}, [16]) = 0 
[pid 22463] 21:51:38.346919 open ("/etc/localtime", O_RDONLY) = 12 
[pid 22463] 21:51:38.346962 fstat64(12, {st_mode=S_IFREG|0644,
st_size=1931, ...}) = 0 
[pid 22463] 21:51:38.347028 fstat64(12, {st_mode=S_IFREG|0644,
st_size=1931, ...}) = 0 
[pid 22463] 21:51:38.347087 mmap2(NULL, 4096,PROT_READ|PROT_WRITE,
MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0xb7757000 
[pid 22463] 21:51:38.347134 read(12, "TZif2\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0
\0\0 \6 \0\0\0\6\0\0"..., 4096) = 1931 
[pid 22463] 21:51:38.347207 _llseek(12, -28, [1903], SEEK_CUR) = 0 
[pid 22463] 21:51:38.347243 read(12,"\nCET-1CEST,M3.5.0,M10.5.0/3\n", 4096)
= 28 [pid 22463] 21:51:38.347283 close(12)   = 0 
[pid 22463] 21:51:38.347313 munmap (0xb7757000, 4096) = 0 
[pid 22463] 21:51:38.347366 --- SIGSEGV (Segmentation fault) @ 0 (0) ---

This started happening suddenly, without any changes that I'd know of. GDB
shows it's crashing two steps into SDPGenerate().

Any ideas?

-- 

Jure Pečar
http://jure.pecar.org
http://f5j.eu



More information about the vlc-devel mailing list