[gstreamer-bugs] [Bug 161667] New: [PATCH][snapshot] seg fault in signal handler
bugzilla-daemon at bugzilla.gnome.org
bugzilla-daemon at bugzilla.gnome.org
Sat Dec 18 17:47:51 PST 2004
http://bugzilla.gnome.org/show_bug.cgi?id=161667
GStreamer | gst-plugins | Ver: 0.8.6
Summary: [PATCH][snapshot] seg fault in signal handler
Product: GStreamer
Version: 0.8.6
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: pjack at sfaf.org
QAContact: gstreamer-bugs at lists.sourceforge.net
TO REPRODUCE:
$ gst-launch-0.8 videotestsrc num-buffers=10 ! snapshot frame=5 location=z.png !
fakesink
RUNNING pipeline ...
Segmentation fault
EXPECTED BEHAVIOR:
A PNG snapshot of the test pattern appears in new file z.png
ACTUAL BEHAVIOR:
z.png is 0 bytes long, and gst-launch crashes with a seg fault.
SOURCE OF PROBLEM:
Looks like a stray signal handler: The snapshot_handler function was setting a
flag to TRUE, so the gstsnapshot_chain function was trying to write the PNG
image twice. After the first attempt, the PNG library structures are destroyed,
so the second attempt seg faults. About to attach a patch...
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.
More information about the Gstreamer-bugs
mailing list