Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 17:41:15 +0100
From:      Adriaan de Groot <adridg@cs.kun.nl>
To:        freebsd-amd64@freebsd.org
Subject:   XFig running?
Message-ID:  <200402191741.16824.adridg@cs.kun.nl>

index | next in thread | raw e-mail

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@kde.org>
                     Would you like a freem?


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402191741.16824.adridg>