Marc Lehmann <[EMAIL PROTECTED]> writes:
> On Wed, Nov 05, 2008 at 04:21:19PM +0100, Frank Schmitt <[EMAIL PROTECTED]>
> wrote:
>> I just did some digging around. If I link urxvt against a manually
>> compiled static libAfterImage-1.18 instead of the dynamic
>> libAfterImage-1.18 from Fedora, urxvt doesn't crash. So I had the
>> suspicion the Fedora library is broken. However, a minimal example
>> outside of urxvt (see below) linked against Fedora's library does not
>> crash using the compiler options and libraries used by rxvt-unicode. So
>> I'm still searching for the trigger of the bug.
>
> What happens when you use the same cxxflags and libs when linking your
> program?
I have now (finally) found the time to further debug the issue. The
trigger for the bug seems to be the Display variable. If one uses dpy
(which seems to be some xlib Default variable), everything works, if one
uses a custom variable it doesn't. Thus:
The following crashes
===========================================================================
#include <afterbase.h>
#include <afterimage.h>
int
main (int argc, const char *const *argv){
Display* dpy=XOpenDisplay(":0.0");
XSynchronize (dpy, True);
int screen = DefaultScreen(dpy);
int depth = DefaultDepth( dpy, screen );
ASVisual* asv = create_asvisual( dpy, screen, depth, NULL );
destroy_asvisual( asv, 0 );
return 0;
}
============================================================================
while the following doesn't
============================================================================
#include <afterbase.h>
#include <afterimage.h>
int
main (int argc, const char *const *argv){
dpy=XOpenDisplay(":0.0");
XSynchronize (dpy, True);
int screen = DefaultScreen(dpy);
int depth = DefaultDepth( dpy, screen );
ASVisual* asv = create_asvisual( dpy, screen, depth, NULL );
destroy_asvisual( asv, 0 );
return 0;
}
============================================================================
both compiled like this:
g++ -g -O3 -I/usr/include/libAfterImage -lAfterImage -lfreetype -ltiff
-lX11 -L/usr/lib -lSM -lICE -lGL -lXext -ljpeg -lpng -lz -lm -lX11 -o
foo rxvt2.C
So I think this really looks like some AfterImage bug.
Yours,
Frank
--
Have you ever considered how much text can fit in eighty columns? Given that a
signature typically contains up to four lines of text, this space allows you to
attach a tremendous amount of valuable information to your messages. Seize the
opportunity and don't waste your signature on bullshit that nobody cares about.
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode