Segfault when mark-played-items enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mediatomb (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Running mediatomb with the following snippet in my config produces a segfault when attempting to view a video:
<extended-
... unrelated options ...
<
<string mode="prepend"
<
</extended-
gdb output:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffebd60700 (LWP 27672)]
0x000000000044b93e in ConfigManager:
(gdb) bt
#0 0x000000000044b93e in ConfigManager:
#1 0x000000000051482d in PlayHook:
#2 0x000000000050e249 in FileRequestHand
#3 0x00000000004e21be in ?? ()
#4 0x000000000054c890 in web_server_callback ()
#5 0x0000000000545195 in ?? ()
#6 0x0000000000552d92 in ?? ()
#7 0x00007ffff5b4cefc in start_thread () from /lib/x86_
#8 0x00007ffff588789d in clone () from /lib/x86_
#9 0x0000000000000000 in ?? ()
Smoking gun in src/playhook.cc:
If I disable mark-played-items or if I add at least one content item to a "mark" list as follows it works (no segfault):
<
<string mode="prepend"
<mark>
</mark>
<
Appears that the absence supposedly optional mark list is not handled well when marking is enabled.
Forgot version info:
root@maranello: /etc/mediatomb# dpkg -l mediatomb* Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ======= ===-=== ======= ======= ======= ===-=== ======= ======= ======= ======= ======= ======= ======= ======= ======= ====
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii mediatomb 0.12.1-0ubuntu2 UPnP MediaServer (main package)
ii mediatomb-common 0.12.1-0ubuntu2 UPnP MediaServer (base package)
ii mediatomb-daemon 0.12.1-0ubuntu2 UPnP MediaServer (daemon package)
Running on Oneric