VLC (4 / master) crashes (segmentation fault/SIGSEGV) after SAP reception
Using the following Git version of VLC on Debian Sid:
$ git describe
4.0.0-dev-27959-g5f0a9649aa73
VLC crashes on the receiver side upon receving an SAP announcement while on the "Browse" page with a segmentation fault / SIGSEGV. Last output lines and a GDB stack trace look as follows:
$ gdb --args ./vlc -vvv
[...]
Warning: input_item_SetURI("sdp://v=0
o=- 16827720253401573196 16827720253401573196 IN IP6 linus-lptp
s=foobar
c=IN IP6 ff1e::23
t=0 0
a=tool:vlc 4.0.0-dev
a=recvonly
a=type:broadcast
a=charset:UTF-8
m=video 5023 RTP/AVP 33
b=RR:0
a=rtpmap:33 MP2T/90000
a=rtcp:5024
"): file path instead of URL.
Thread 35 "vlc-sap" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffea7346c0 (LWP 768055)]
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76
76 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) bt
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76
#1 0x00007fffead505c7 in AddCategory (name=0x0, sd=0x7fffec715a90) at services_discovery/sap.c:178
#2 CreateAnnounce (psz_sdp=<optimized out>, i_hash=<optimized out>, i_source=0x7fffea7329b0, p_sd=<optimized out>)
at services_discovery/sap.c:288
#3 ParseSAP (len=<optimized out>, buf=<optimized out>, p_sd=0x7fffec715a90) at services_discovery/sap.c:461
#4 Run (data=0x7fffec715a90) at services_discovery/sap.c:590
#5 0x00007ffff7cd13ec in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#6 0x00007ffff7d51a5c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
(gdb)
The VLC transmitter was started as follows, with SAP enabled:
$ yt-dlp "https://www.youtube.com/watch?v=qRC4Vk6kisY" -o /tmp/video.webm
$ ./vlc -vvv --loop /tmp/video.webm --sout="#rtp{dst=[ff1e::23],port=5023,mux=ts,sap,name=foobar}" --sout-keep
Verbose, full VLC receiver log
Verbose, full VLC transmitter log
Edited by Linus Lüssing