[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#101055: marked as done (libxft1: SEGV when calling XAddExtension() from _XftDisplayInfoGet())



Your message dated Fri, 21 Apr 2006 16:32:00 -0400
with message-id <44494140.7070202@princeton.edu>
and subject line Reassigning or closing obsolete libxft1 bugs
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: xlibs
Version: 4.0.3-4
Severity: normal

Compile the attached file with g++ -g -o xft xft.cpp -lqt

Yes, it is involving libqt-dev as such I CC'd debian-kde.

While attempting to determine what was going on, I installed xlibs-dbg,
apt-get source xlibs, pointed gdb at everything, stepped, bt'd, etc..
I even managed to produce a segfault in gdb !!-(

After compiling, this simple file when run produces this BT:
#0  XAddExtension (dpy=0x0) at InitExt.c:80
#1  0x2b2fc048 in _XftDisplayInfoGet (dpy=0x0) at xftdpy.c:75
#2  0x2b2fc0e6 in XftDefaultHasRender (dpy=0x0) at xftdpy.c:99
#3  0x2ac2cf6e in qt_use_xft () from /usr/lib/libqt.so.2
#4  0x804863b in main () at xft.cpp:7
#5  0x2b00b38b in __libc_start_main () from /lib/libc.so.6

After much digging, (I'm new to X source ..), I found it has a problem
with LockDisplay(dpy).

LockDisplay is a macro from xc/lib/X11/Xlibint.h:
#if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE)
#define LockDisplay(d)       if ((d)->lock_fns)
(*(d)->lock_fns->lock_display)((d),__FILE__,__LINE__)
...
#else
#define LockDisplay(d)       if ((d)->lock_fns)
(*(d)->lock_fns->lock_display)(d)

At this point, I note that dpy is type = struct _XDisplay, and
LockDisplay is called with dpy as the arg from InitExt.c. I used gdb to
(gdb) ptype dpy->lock_fns
type = struct _XLockPtrs {
    void (*lock_display)();
    void (*unlock_display)();
} *
(gdb) p
Segmentation fault (core dumped)

So there appears to be a problem here... this ^^ is gdb segfaulting..
while trying to debug this simple little program. Anyone have any clues?


*** xft.cpp
#define QT_XFT
#include <qt_x11.h>
#include <qcolor.h>
int
main ()
{
  int x = qt_use_xft ();
  return x;
}


-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux debian-home 2.2.19 #1 Sat May 19 16:25:04 CDT 2001 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages xlibs depends on:
ii  libc6                   2.2.3-6          GNU C Library: Shared libraries an
ii  libfreetype6            2.0.2.20010514-1 FreeType 2 font engine, shared lib
ii  xfree86-common          4.0.3-4          X Window System (XFree86) infrastr
ii  xlibs                   4.0.3-4          X Window System client libraries  

-- 
Gordon Sadler



--- End Message ---
--- Begin Message ---
# Reassigning the following to libxft2 in case it still occurs:
reassign 136527 libxft2
thanks

I'm closing the following bugs which are obsolete because libXft1 is no
longer shipped, and libXft2 no longer uses /etc/X11/Xft:

#163634: libxft1: SEGV when encountering surprising spaces in
/etc/X11/XftConfig

#97506: libxft1: want antialiasing excluded from fonts where 8 < size <
15 by default in /etc/X11/XftConfig

#88054: libxft1: want a mechanism for packages to update directories
listed in /etc/X11/XftConfig

#171787: libxft1: please automatically register TrueType fonts in
/etc/X11/XftConfig

#207976: libxft1: support modular configuration of /etc/X11/XftConfig
through include directives

I'm also closing this bug because the test case for it is no longer
compilable even in Sarge:

#101055: libxft1: SEGV when calling XAddExtension() from
_XftDisplayInfoGet()


regards,

-- 
Kevin B. McCarty <kmccarty@princeton.edu>   Physics Department
WWW: http://www.princeton.edu/~kmccarty/    Princeton University
GPG: public key ID 4F83C751                 Princeton, NJ 08544

--- End Message ---

Reply to: