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>
next in thread | raw e-mail | index | archive | help
I just tried to compile xfig from ports, and while it builds fine, it then= =20 segfaults on startup inside libXpm.so. It goes like this: (gdb) bt #0 0x00000002008b4dae in PutPixel32 (ximage=3D0x7e8100, x=3D63, y=3D63, pixel=3D6369863) at create.c:1826 #1 0x00000002008b60e8 in ParseAndPutPixels (data=3D0x7fffffffd980, width= =3D64, height=3D64, ncolors=3D253, cpp=3D2, colorTable=3D0x7e1000, hashtable=3D0x7fffffffd860, image=3D0x7e8100, image_pixels=3D0x7e6000, shapeimage=3D0x0, shape_pixels=3D0x7e6800) at create.c:2391 #2 0x00000002008b58a1 in xpmParseDataAndCreate (display=3D0x74b000, data=3D0x7fffffffd980, image_return=3D0x7fffffffde98, shapeimage_return=3D0x7fffffffde90, image=3D0x7fffffffde10, info=3D0x7fffffffddd0, attributes=3D0x723660) at create.c:2158 #3 0x00000002008bd4cd in XpmCreateImageFromData (display=3D0x74b000, data=3D0x663180, image_return=3D0x7fffffffde98, shapeimage_return=3D0x7fffffffde90, attributes=3D0x723660) at CrIFrDat.= c:63 #4 0x00000002008bc66f in XpmCreatePixmapFromData (display=3D0x74b000, d=3D33554910, data=3D0x663180, pixmap_return=3D0x71e230, shapemask_return=3D0x7fffffffdee8, attributes=3D0x723660) at CrPFrDat.c= :57 #5 0x000000000045b605 in set_xpm_icon () at main.c:1787 #6 0x00000000004592a7 in main (argc=3D1, argv=3D0x7fffffffe7c0) at main.c:= 1089 Weirdly, adding a printf() in PutPixel32 in libXpm just makes it work - tho= ugh=20 slowly. I've mucked about a little, changing the code in subtle ways, but i= t=20 just keeps bailing. I get the vague feeling the compiler is falling over=20 trying to discombobulate the casts in that function. Anyway, does anyone have a working xfig?=20 =2D-=20 pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <groot@kde.org> Would you like a freem?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402191741.16824.adridg>