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 638569 - cacasink crashes when given 15-bit video.
cacasink crashes when given 15-bit video.
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.25
Other Linux
: Normal normal
: 0.10.27
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-03 13:02 UTC by Screwtape
Modified: 2011-01-03 17:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Screwtape 2011-01-03 13:02:17 UTC
"gst-inspect cacasink" tells me it claims to support 15-bit video:

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      ...
      video/x-raw-rgb
                    bpp: 16
                  depth: 15
             endianness: 1234
               red_mask: 31744
             green_mask: 992
              blue_mask: 31
                  width: [ 1, 2147483647 ]
                 height: [ 1, 2147483647 ]
              framerate: [ 0/1, 2147483647/1 ]

However, when I send a video of that format to cacasink, it crashes:

$ gst-launch videotestsrc ! 'video/x-raw-rgb,bpp=(int)16,depth=(int)15,endianness=(int)1234,red_mask=(int)31744,green_mask=(int)992,blue_mask=(int)31,width=(int)256,height=(int)224,framerate=(fraction)60/1' ! cacasink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Caught SIGSEGV accessing address 0x7abc5ac
Spinning.  Please run 'gdb gst-launch 28374' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

Unfortunately, actually attaching gdb doesn't seem to achive much:

Reading symbols from /usr/bin/gst-launch...Reading symbols from /usr/lib/debug/usr/bin/gst-launch...done.
done.
Attaching to program: /usr/bin/gst-launch, process 28505
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.12.1.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00007fca3ef1f203 in ?? ()
(gdb) bt
  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 ??
  • #5 ??
  • #6 ??
  • #7 ??
  • #8 ??
  • #9 ??
  • #10 ??
  • #11 ??
  • #12 ??
  • #13 ??
  • #14 ??
  • #15 ??


I'm using Ubuntu 10.10 on x86_64.
Comment 1 Wim Taymans 2011-01-03 17:07:42 UTC
commit c17f7a943d54c7a3855a25818bf1b4cc79300406
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Mon Jan 3 18:05:15 2011 +0100

    cacasink: fix masks and strides
    
    Use the right endianness to read the masks.
    Use the right strides for the bitmap.
    
    Fixes #638569