obsproject / obsproject/obs-studio

crash when connecting to an SRT server failed

Open
#11,620 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Other

Other OS

openSUSE Tumbleweed

OBS Studio Version

31.0.0

OBS Studio Version (Other)

No response

OBS Studio Log URL
OBS Studio Crash Log URL

No response

Expected Behavior

not crashing when connecting failed

Current Behavior
Program terminated with signal SIGSEGV, Segmentation fault.
#0  libsrt_close.isra.0 (h=<optimized out>) at /usr/src/debug/obs-studio-31.0.0/plugins/obs-ffmpeg/obs-ffmpeg-srt.h:790
790		if (s->streamid)
(gdb) p s
$1 = (SRTContext *) 0x7f9531388ac6
(gdb) p *s
Cannot access memory at address 0x7f9531388ac6
Steps to Reproduce
  1. configure an SRT that leads to a rejected connection
  2. start streaming
Anything else we should know?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in plugins/obs-ffmpeg/obs-ffmpeg-srt.h at libsrt_close, where the crash occurs while accessing the SRTContext after a rejected connection. Reproduce with an SRT configuration that fails to connect, then verify that stopping the stream completes without a segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.