mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.82k stars 423 forks source link

memory allocation error with Raspbian bookworm #326

Open gmke opened 4 months ago

gmke commented 4 months ago

pi@raspberrypi:~ $ uname -a Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux pi@raspberrypi:~ $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm

[INFO] /home/pi/v4l2rtspserver/src/V4L2DeviceSource.cpp:29 Fatal glibc error: malloc assertion failure in sysmalloc: (old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)

it worked perfectly with bullseye. After the migration I did a git pull, compiled and installed again. The error is almost perfectly reproducable. In one of maybe 50 tries, the stream starts for a second and then the crash occurs with a similar error message.

Regards, Markus