On Sat, Feb 20, 2016 at 11:04:11PM +0100, Christian Weisgerber wrote:
> Josh Grosse:
> 
> >    The segfault has been traced to a truncated pointer returning from
> >    gdk_pixbuf_new_from_inline, a library function of graphics/gdk-pixbuf.
> >    The call is from gtk/actions.c.  The problem occurs on amd64, but
> >    not on i386 (of course).
> > 
> >    The top 32-bits of the returned value will be 0x00000000 or 0xffffffff.
> >    It's fine in the library, and truncated upon return to the application.
> 
> The return value is treated as a (32-bit) int and sign-extended to
> 64 bits.  Smells like a missing function prototype, so the return
> type defaults to int.

Ah!  Thank you for the cluebat!

> 
> And there is the compiler warning:
> 
> actions.c:169: warning: implicit declaration of function 
> 'gdk_pixbuf_new_from_inline'
> actions.c:169: warning: assignment makes pointer from integer without a cast
> 
> Looking at the declaration in the gdk-pixbuf/gdk-pixbuf-core.h
> header, I think this is fallout from -DGDK_PIXBUF_DISABLE_DEPRECATED.
> 
> Try removing -DGDK_PIXBUF_DISABLE_DEPRECATED and tell upstream that
> they are using a function that has been deprecated in gdk-pixbuf 2.32.

I'll try both.  The latter may be problematic, but at least I can open
the discussion.

   -J-

Reply via email to