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 398110 - [theoraenc] GLib failed to allocate 3080991032 bytes on gentoo
[theoraenc] GLib failed to allocate 3080991032 bytes on gentoo
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.11
Other All
: Normal critical
: 0.10.12
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-18 19:16 UTC by Gabe Jackson
Modified: 2007-01-29 18:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GDB Stack Trace (66.11 KB, application/octet-stream)
2007-01-18 19:18 UTC, Gabe Jackson
Details

Description Gabe Jackson 2007-01-18 19:16:54 UTC
Steps to reproduce:
1. GST_DEBUG=5 gst-launch-0.10 videotestsrc ! video/x-raw-yuv, framerate=5/1 ! theoraenc ! fakesink 2> gst-debug.log


Stack trace:
See attached file

Other information:
running  gst-launch-0.10 videotestsrc ! video/x-raw-yuv, framerate=5/1 ! theoraenc ! fakesink crashes with GLib-ERROR **: gmem.c:135: failed to allocate 3080991032 bytes
Comment 1 Gabe Jackson 2007-01-18 19:18:10 UTC
Created attachment 80632 [details]
GDB Stack Trace
Comment 2 Tim-Philipp Müller 2007-01-18 20:10:05 UTC
Cannot reproduce this, and it's valgrind clean for me too.

Please provide a stack trace with full debugging symbols for gst-plugins-base, GStreamer core and GLib (you attached a debug log).

Also, what libtheora version are you using?
What GLib version?

Does it make a difference if you do 'export G_SLICE=always-malloc' before running gst-launch?

Could you run this through valgrind on your box?

Comment 3 Tim-Philipp Müller 2007-01-29 18:14:32 UTC
Some more debugging on IRC revealed that packet->bytes was uninitialised.

The reason this happened was that theora_encode_headers() returned a failure code, which in turn was due to libtheora having been compiled with encoding support disabled. Good stuff.

Fixed in CVS:

  2007-01-29  Tim-Philipp Müller  <tim at centricular dot net>

        * ext/theora/theoraenc.c: (theora_enc_chain):
          Check return value of theora_encode_header(), or we might try to
          allocate a random number of bytes. theora_encode_header() can fail
          if libtheora has been compiled with encoding support disabled.
          Fixes #398110.