Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#12335 closed defect (duplicate)

BUG: xfig crashes when accessing any menu

Reported by: ejm@… Owned by: pguyot (Paul Guyot)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ejm@…, pguyot (Paul Guyot), ryandesign (Ryan Carsten Schmidt)
Port: xfig

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Installed the xfig port, and the program launches. I can draw figures. However when I go to access a menu I get a crash. Here is the log

Host Name:      fourier1
Date/Time:      2007-07-20 12:52:55.302 -0500
OS Version:     10.4.10 (Build 8R2218)
Report Version: 4

Command: xfig
Path:    /opt/local/bin/xfig
Parent:  tcsh [9190]

Version: ??? (???)

PID:    9191
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x0000008c

Thread 0 Crashed:
0   libXaw3d.7.dylib 	0x00546f25 Redisplay + 20 (SmeLine.c:220)
1   xfig             	0x000e235a Redisplay + 153 (SimpleMenu.c:324)
2   libXt.6.dylib    	0x006b2c42 SendExposureEvent + 161
3   libXt.6.dylib    	0x006b3a80 XtDispatchEventToWidget + 843
4   libXt.6.dylib    	0x006b3f2e _XtDefaultDispatcher + 427
5   libXt.6.dylib    	0x006b2e6c XtDispatchEvent + 414
6   xfig             	0x0004445f main + 11848 (main.c:1543)
7   xfig             	0x000021da _start + 216
8   xfig             	0x00002101 start + 41

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x006b2baf  ecx: 0x000001e1  edx: 0x0110ac10
  edi: 0x01109550  esi: 0x0110baa0  ebp: 0xbffff218  esp: 0xbffff1e0
   ss: 0x0000001f  efl: 0x00010282  eip: 0x00546f25   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037

Binary Images Description:
    0x1000 -   0x118fff xfig 	/opt/local/bin/xfig
  0x3b3000 -   0x3cefff libjpeg.62.dylib 	/opt/local/lib/libjpeg.62.dylib
  0x3d6000 -   0x3e1fff libXpm.4.dylib 	/usr/X11R6/lib/libXpm.4.dylib
  0x3e7000 -   0x3f6fff libz.1.dylib 	/opt/local/lib/libz.1.dylib
  0x505000 -   0x522fff libpng.3.dylib 	/opt/local/lib/libpng.3.dylib
  0x52a000 -   0x52efff libXi.6.dylib 	/usr/X11R6/lib/libXi.6.dylib
  0x533000 -   0x562fff libXaw3d.7.dylib 	/usr/X11R6/lib/libXaw3d.7.dylib
  0x68f000 -   0x69dfff libXmu.6.dylib 	/usr/X11R6/lib/libXmu.6.dylib
  0x6a5000 -   0x6defff libXt.6.dylib 	/usr/X11R6/lib/libXt.6.dylib
  0x6f2000 -   0x6f6fff libSM.6.dylib 	/usr/X11R6/lib/libSM.6.dylib
  0x6fb000 -   0x70afff libICE.6.dylib 	/usr/X11R6/lib/libICE.6.dylib
  0x712000 -   0x71afff libXext.6.dylib 	/usr/X11R6/lib/libXext.6.dylib
 0x1008000 -  0x10c5fff libX11.6.dylib 	/usr/X11R6/lib/libX11.6.dylib
0x8fe00000 - 0x8fe4afff dyld 46.12	/usr/lib/dyld
0x90000000 - 0x90171fff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x901c1000 - 0x901c3fff libmathCommon.A.dylib 	/usr/lib/system/libmathCommon.A.dylib
0x90bd2000 - 0x90bd9fff libgcc_s.1.dylib 	/usr/lib/libgcc_s.1.dylib

In fact, my problem seems to be exactly as described on the xfig FAQS page

http://epb.lbl.gov/xfig/frm_faq.html

under the first item (which I am taking the liberty to copy and paste):

Problems when running xfig or TransFig (fig2dev)

   1.
      When I pull up a menu, xfig crashes

      POSSIBLE CAUSE:
          Your version of the 3D Athena Widget Set may be incompatible

      SOLUTION:
          If your vendor has installed the Xaw3D1.5E verison of the 3D Athena 
          Widget set but has called it Xaw3D, then it is incompatible with 
          xfig's menu widget. Fix this by uncommenting the #define XAW3D1_5E 
          line in the Imakefile and recompiling xfig. Be sure to do:

              xmkmf 
              make clean 
              make install 

Attachments (1)

xfig.diff (1.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 17 years ago.
Patch which fails to fix the problem

Download all attachments as: .zip

Change History (7)

comment:1 Changed 17 years ago by nox@…

Cc: pguyot@… added
Milestone: Port Bugs
Priority: ExpectedNormal
Summary: xfig crashes when accessing any menuBUG: xfig crashes when accessing any menu
Version: 1.5.0

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ejm@… added
Owner: changed from macports-dev@… to pguyot@…

comment:3 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Duplicate of #12044, but thank you for showing us how to fix it.

comment:4 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Uncommenting #define XAW3D1_5E leads to problems for me:

$ sudo port install xfig
--->  Fetching xfig
--->  Verifying checksum(s) for xfig
--->  Extracting xfig
--->  Applying patches to xfig
--->  Configuring xfig
--->  Building xfig with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_xfig/work/xfig.3.2.5" && make all " returned error 2
Command output: w_indpanel.c:3318: warning: format '%d' expects type 'int', but argument 3 has type 'double'
w_indpanel.c:3321: warning: format '%d' expects type 'int', but argument 3 has type 'double'
w_indpanel.c: In function 'show_fillstyle':
w_indpanel.c:3856: warning: suggest parentheses around && within ||
w_indpanel.c: In function 'wheel_inc_zoom':
w_indpanel.c:4404: warning: pointer targets in passing argument 9 of 'XQueryPointer' differ in signedness
w_indpanel.c: In function 'wheel_dec_zoom':
w_indpanel.c:4488: warning: pointer targets in passing argument 9 of 'XQueryPointer' differ in signedness
w_indpanel.c: In function 'popup_choice_panel':
w_indpanel.c:1628: warning: 'obeside' may be used uninitialized in this function
w_indpanel.c:1626: warning: 'count' may be used uninitialized in this function
w_indpanel.c: In function 'recolor_fillstyles':
w_indpanel.c:3892: warning: 'savepm_zoom' may be used uninitialized in this function
w_indpanel.c:3891: warning: 'savepm' may be used uninitialized in this function
w_indpanel.c: In function 'wheel_dec_zoom':
w_indpanel.c:4479: warning: 'hot_y' may be used uninitialized in this function
w_indpanel.c:4479: warning: 'hot_x' may be used uninitialized in this function
w_indpanel.c: In function 'wheel_inc_zoom':
w_indpanel.c:4395: warning: 'hot_y' may be used uninitialized in this function
w_indpanel.c:4395: warning: 'hot_x' may be used uninitialized in this function
rm -f w_library.o
/usr/bin/cc -c -g -Os -Wall -Wpointer-arith -no-cpp-precomp    -I/opt/local/include -I/opt/local/include -I/usr/local/include/X11 -I/usr/X11R6/include    -D__DARWIN__                                 -DNO_ALLOCA -DCSRG_BASED                              -DUSE_XPM -DXAW3D -DXAW3D1_5E                         -DUSE_JPEG   -DNEWARROWTYPES    w_library.c
w_library.c: In function 'make_library_menu':
w_library.c:1058: error: 'submenu_name' undeclared (first use in this function)
w_library.c:1058: error: (Each undeclared identifier is reported only once
w_library.c:1058: error: for each function it appears in.)
w_library.c: In function 'MakeLibrary':
w_library.c:1374: warning: passing argument 2 of 'ScanLibraryDirectory' from incompatible pointer type
w_library.c:1390: warning: suggest parentheses around assignment used as truth value
make: *** [w_library.o] Error 1

Error: Status 1 encountered during processing.
$ 

We may need to try the more-complicated solution presented in #12044.

Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: xfig.diff added

Patch which fails to fix the problem

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: xfig added
Note: See TracTickets for help on using tickets.