Project

General

Profile

Actions

Bug #5899

closed

SIGSEGV on FreeBSD in tvh:dvr-inotify

Added by Martin Rehak almost 5 years ago. Updated almost 5 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2020-05-15
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1857~g221c29b40-dirty
Affected Versions:

Description

On FreeBSD while removing recordings I have hit this:

2020-05-15 12:34:45.980 [ INFO] dvr: delete entry 376f4ed4153f0f11acf5b7146d6fd0f2 "Události za okamžik a počasí" on "CT1 CZ" start time 2020-05-12 18:54:30, scheduled for recording by "192.168.0.38", retention "On file removal" removal "3 days"

Thread 24 "tvh:dvr-inotify" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 102251 of process 50314]
_dvr_inotify_thread (p=<optimized out>) at src/dvr/dvr_inotify.c:400
400 i += EVENT_SIZE + ev->len;
(gdb) bt
#0 _dvr_inotify_thread (p=<optimized out>) at src/dvr/dvr_inotify.c:400
#1 0x000000000033b69d in thread_wrapper (p=0x801b9c510) at src/tvh_thread.c:91
#2 0x000000080095c736 in ?? () from /lib/libthr.so.3
#3 0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdd3e8000
(gdb) generate-core-file
Saved corefile core.50314
(gdb) p i
$1 = -1458412714
(gdb) p EVENT_SIZE
No symbol "EVENT_SIZE" in current context.
(gdb) p ev
$2 = (struct inotify_event *) 0x7fff8650e126
(gdb) p *ev
Cannot access memory at address 0x7fff8650e126
(gdb) p p
$3 = <optimized out>
(gdb) p len
$4 = 335

Hopefully I am able to reproduce it. Let me know if you need more info.

Thank you.


Files

core.50314.gz (12.4 MB) core.50314.gz Martin Rehak, 2020-05-15 12:42
gdb.out (12.1 KB) gdb.out Martin Rehak, 2020-05-15 16:23
Actions

Also available in: Atom PDF