XFig running?

Adriaan de Groot adridg at cs.kun.nl
Thu Feb 19 08:41:19 PST 2004


I just tried to compile xfig from ports, and while it builds fine, it then 
segfaults on startup inside libXpm.so. It goes like this:


(gdb) bt
#0  0x00000002008b4dae in PutPixel32 (ximage=0x7e8100, x=63, y=63,
    pixel=6369863) at create.c:1826
#1  0x00000002008b60e8 in ParseAndPutPixels (data=0x7fffffffd980, width=64,
    height=64, ncolors=253, cpp=2, colorTable=0x7e1000,
    hashtable=0x7fffffffd860, image=0x7e8100, image_pixels=0x7e6000,
    shapeimage=0x0, shape_pixels=0x7e6800) at create.c:2391
#2  0x00000002008b58a1 in xpmParseDataAndCreate (display=0x74b000,
    data=0x7fffffffd980, image_return=0x7fffffffde98,
    shapeimage_return=0x7fffffffde90, image=0x7fffffffde10,
    info=0x7fffffffddd0, attributes=0x723660) at create.c:2158
#3  0x00000002008bd4cd in XpmCreateImageFromData (display=0x74b000,
    data=0x663180, image_return=0x7fffffffde98,
    shapeimage_return=0x7fffffffde90, attributes=0x723660) at CrIFrDat.c:63
#4  0x00000002008bc66f in XpmCreatePixmapFromData (display=0x74b000,
    d=33554910, data=0x663180, pixmap_return=0x71e230,
    shapemask_return=0x7fffffffdee8, attributes=0x723660) at CrPFrDat.c:57
#5  0x000000000045b605 in set_xpm_icon () at main.c:1787
#6  0x00000000004592a7 in main (argc=1, argv=0x7fffffffe7c0) at main.c:1089

Weirdly, adding a printf() in PutPixel32 in libXpm just makes it work - though 
slowly. I've mucked about a little, changing the code in subtle ways, but it 
just keeps bailing. I get the vague feeling the compiler is falling over 
trying to discombobulate the casts in that function.

Anyway, does anyone have a working xfig? 

-- 
pub  1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <groot at kde.org>
                     Would you like a freem?


More information about the freebsd-amd64 mailing list