clxclient bug --- was Bug report on zita-rev1: zita-rev1 crashes with exit status 139

Robin Gareus robin at gareus.org
Thu Jun 27 16:04:13 UTC 2013


Hi Fons,

If zita-rev1 cannot connext to a X-server it segfaults. The problem is
actually in libclxclient-3.6.1, xdisplay.cc.


X_display::X_display() .. constructor bails out early if it cannot
connect to X11 (and does not allocate the XImages) - but the
X_display::~X_display() destructor resets the data and calls
XDestroyImage() for those XImages - which may cause a segfault.


Attached patch is one possible solution.

Cheers!
robin


-=-=-=-=-=-
sudo su - nobody
gdb ./zita-rev1
#[..]
(gdb) run
Can't open display.

Program received signal SIGSEGV, Segmentation fault.
0xb7eae307 in X_display::~X_display() () from /usr/lib/libclxclient.so.3
(gdb) bt
#0  0xb7eae307 in X_display::~X_display() () from /usr/lib/libclxclient.so.3
#1  0x0804abdd in main (ac=1, av=0xbffffd94) at zita-rev1.cc:87
(gdb)



On 06/26/2013 07:52 PM, Alexandre Rebert wrote:
> Hi,
> 
> We found a crash in zita-rev1 contained in the zita-rev1 package. You are being
> contacted because your are listed as one of the maintainer of zita-rev1.
> 
> We are planning to submit the bug to the Debian bug tracking system in two
> weeks. We wanted to give you a heads-up, so that you some time to assess the
> seriousness of the bug before it is publicly disclosed.
> 
> The bug report that will be submitted to the bug tracker is available at the
> following url:
> 
>   http://www.forallsecure.com/bug-reports/db7635e9e0fccad4d41a93ca1b2fe3ceea2eee5e/
> 
> This email is part of a mass bug reporting campain comprising 1,182 bugs. You
> might have received multiple emails from us concerning different programs. More
> information about the mass bug reporting is available on the debian-devel
> mailing list:
> 
>   http://lists.debian.org/debian-devel/2013/06/msg00720.html
> 
> Regards,
> The Mayhem Team
> Cylab, Carnegie Mellon University
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clxclient-3.6.1_xdisplayfix.diff
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20130627/cc119fef/attachment.bin>


More information about the pkg-multimedia-maintainers mailing list