After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 162906 - [theoraenc] SEGV in theoraenc
[theoraenc] SEGV in theoraenc
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.6
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-04 10:34 UTC by Gergely Nagy
Modified: 2006-05-17 15:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GDB backtrace (9.50 KB, text/plain)
2005-01-04 10:37 UTC, Gergely Nagy
Details
A new gdb backtrace (3.67 KB, text/plain)
2005-02-08 20:35 UTC, Gergely Nagy
Details

Description Gergely Nagy 2005-01-04 10:34:51 UTC
gst-launch videotestsrc ! ffmpegcolorspace ! theoraenc ! oggmux ! fakesink

Inserting a videorate element before theoraenc fixes the problem, as does
running with -v, or GST_DEBUG=*:5.
Comment 1 Gergely Nagy 2005-01-04 10:37:31 UTC
Created attachment 35416 [details]
GDB backtrace
Comment 2 Stephane Loeuillet 2005-01-04 11:52:51 UTC
which libtheora version were you using ?
Comment 3 Gergely Nagy 2005-01-04 11:56:09 UTC
algernon@melkor: ~] dpkg -s libtheora0 | grep Version
Version: 0.0.0.alpha3-1

Latest in Debian sid.
Comment 4 Gergely Nagy 2005-01-04 12:27:32 UTC
Tried with 0.0.0.alpha4 from theora.org, and the SEGV is still there. Also
running gstreamer core and gst-plugins CVS HEAD as of a few minutes ago.
Comment 5 Ronald Bultje 2005-02-08 20:09:25 UTC
==8383== Invalid read of size 1
==8383==    at 0x1C6E67E5: LoopFilter (dct_decode.c:840)
==8383==    by 0x1C6E6C41: ReconRefFrames (dct_decode.c:1209)
==8383==    by 0x1C6D9E15: EncodeData (encode.c:893)
==8383==    by 0x1C6EB05B: UpdateFrame (toplevel.c:327)
==8383==  Address 0x1BD8B5BE is 0 bytes after a block of size 6 alloc'd
==8383==    at 0x1B904A90: malloc (vg_replace_malloc.c:131)
==8383==    by 0x1C6E746B: InitFragmentInfo (frinit.c:208)
==8383==    by 0x1C6E795D: InitFrameDetails (frinit.c:381)
==8383==    by 0x1C6EB932: theora_encode_init (toplevel.c:884)

However, with a from-source compiled one, those warnings are no longer here. do
you still have this with CVS, Gergely?
Comment 6 Gergely Nagy 2005-02-08 20:35:16 UTC
Created attachment 37201 [details]
A new gdb backtrace

Still segfaults. (tried with theora 0.0.0beta3 from Debian sid, 0.0.0beta4, svn
trunk, and a theora-mmx deb too)

Seems like it happens when the framerate is 0.. Probably theoraenc should
detect that a framerate of 0 is bogus, and bail out or something.

Attaching a new, probably more useful GDB backtrace.
Comment 7 Tim-Philipp Müller 2006-05-17 15:08:03 UTC
Can reproduce with 0.8, but not with 0.10 (and it's 0.10 is valgrind-clean too).

Closing as OBSOLETE, as no one is going to look into 0.8 issues any longer (feel free to re-open though if you intend to work on this issue).