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 549073 - buffer_alloc function from new basetransform sometimes fails to alloc data
buffer_alloc function from new basetransform sometimes fails to alloc data
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal critical
: 0.10.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-23 00:58 UTC by Olivier Crête
Modified: 2008-08-25 09:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test that crashes the new basetransform on every try (1.86 KB, text/plain)
2008-08-23 00:59 UTC, Olivier Crête
Details

Description Olivier Crête 2008-08-23 00:58:46 UTC
While trying to write a test program to prove that bug #548764 exists... I wrote the attached program.. that causes a segfault on almost every try here (but works perfectly with 0.10.20).

The bufferalloc function from the new basetransform stuff sometimes returns a GstBuffer with a NULL data  pointer and size 0...  
It very much seems like random corruption... It may have the same cause as bug #548764 and #546494 ..
Comment 1 Olivier Crête 2008-08-23 00:59:13 UTC
Created attachment 117249 [details]
Test that crashes the new basetransform on every try
Comment 2 Wim Taymans 2008-08-25 09:48:10 UTC
        * gst/law/alaw-encode.c: (gst_alaw_enc_init), (gst_alaw_enc_chain):
        * gst/law/mulaw-conversion.c:
        * gst/law/mulaw-encode.c: (gst_mulawenc_init),
        (gst_mulawenc_chain):
        The encoder can't really renegotiate at the time they perform a
        pad-alloc so make the srcpads use fixed caps.
        Check the buffer size after a pad-alloc because the returned size might
        not be right when the downstream element does not know the size of the
        new buffer (capsfilter). Fixes #549073.