[Y-devel] Segfault on font initialization
xhook xhook at hot.ee
Tue May 18 01:18:21 BST 2004
Hello, everyone !
I've been reading on this mailing list for a long time already but only
now i decided to do my first post here (I haven't got any time and i
didn't want to come with empty hands).
I've finaly got Y-0.2--patch-49 to work! There was a problem with font
initialization. It seems that some Regular fonts do not have the family
name (face->family_name == NULL). So, when it comes to
fontFaceComparisonFunction it passes NULL to strcmp and segfaults. Here
is a quick hack on this: www.hot.ee/xhook/font.c.diff. It's a very
stupid and strait hack, but it works :).
I think it's better to implement some kind of ystrcmp() function , which
will work even if NULL is passed as an argumet. For examle: ystrcmp
(NULL, NULL) == true; ystrcmp (NULL, something-non-null) == false;
...
Soon I'm going to do some work on y's tcp module, which seems to be
implemented in a very simple way now. Also, I'll do some general
testing/debugging on my Gentoo system.
Best wishes,
Dmitry
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved