On Thu, Jun 24, 2004 at 10:13:54AM -0700, Mark Vojkovich wrote:
>    It might be that there is some mismatch in types on amd64.
> Eg. FB_SHIFT vs FbBits.  It's hard to follow what's going on
> in fb.h.

Thanks, i'll try to have a look.

In the mean time, i just recompiled the XFree86 server with `-g -O0',
to get more information.

Program received signal SIGSEGV, Segmentation fault.
0x00000000008aab5a in fbBltOne (src=0x1651000, srcStride=0, srcX=0, 
    dst=0x163d120, dstStride=0, dstX=0, dstBpp=32, width=3200, height=79, 
    fgand=3221225472, fgxor=1073741823, bgand=3221225472, bgxor=0)
    at fbbltone.c:375
375                     LoadBits;
(gdb) bt
#0  0x00000000008aab5a in fbBltOne (src=0x1651000, srcStride=0, srcX=0, 
    dst=0x163d120, dstStride=0, dstX=0, dstBpp=32, width=3200, height=79, 
    fgand=3221225472, fgxor=1073741823, bgand=3221225472, bgxor=0)
    at fbbltone.c:375
#1  0x00000000008b7c5e in fbPutXYImage (pDrawable=0x163c000, pClip=0x141d660, 
    fg=4294967295, bg=0, pm=1073741823, alu=3, opaque=1, x=0, y=0, width=100, 
    height=90, src=0x1650f58, srcStride=4, srcX=0) at fbimage.c:265
#2  0x00000000008b72cd in fbPutImage (pDrawable=0x163c000, pGC=0x1410c00, 
    depth=32, x=0, y=0, w=100, h=90, leftPad=0, format=1, pImage=0x1645018 "")
    at fbimage.c:75
#3  0x0000000000683e07 in XAAPutImagePixmap (pDraw=0x163c000, pGC=0x1410c00, 
    depth=32, x=0, y=0, w=100, h=90, leftPad=0, format=1, pImage=0x1645018 "")
    at xaaGC.c:355
#4  0x000000000084ab73 in ProcPutImage (client=0x11b9600) at dispatch.c:2085
#5  0x0000000000845de7 in Dispatch () at dispatch.c:446
#6  0x000000000085ecc7 in main (argc=6, argv=0x7f7fffffead8, 
    envp=0x7f7fffffeb10) at main.c:432

According to the trace, it seems to break in `LoadBits' macro.

#define LoadBits {\
    if (leftShift) { \
        bitsRight = *src++; \
        bits = (FbStipLeft (bitsLeft, leftShift) | \
                FbStipRight(bitsRight, rightShift)); \
        bitsLeft = bitsRight; \
    } else \
        bits = *src++; \
}

(gdb) p src
$1 = (FbStip *) 0x1651000
(gdb) p *src
Error accessing memory address 0x1651000: Invalid argument.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to