Opened 13 years ago

Closed 13 years ago

#30551 closed defect (fixed)

xmgr segfaults on lion

Reported by: gezelter@… Owned by: mlund (Mikael Lund)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: lion Cc: ryandesign (Ryan Carsten Schmidt)
Port: xmgr

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

xmgr (version 4.1.2, not the xmgrace port) has a segfault on launch on Lion (Xcode 4.1):

gdb backtrace:

xmgr v4.1.2 
(C) Copyright 1991-1995 Paul J Turner
(C) Copyright 1996-1998 ACE/gr Development Team
All Rights Reserved

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000004600000000
0x00007fff8e63c870 in strcmp ()
(gdb) bt
#0  0x00007fff8e63c870 in strcmp ()
#1  0x000000010048814a in _XtCountVaList ()
#2  0x0000000100486a0d in XtVaCreateWidget ()
#3  0x0000000100077cfc in CreateMenu ()
#4  0x000000010009b1ba in do_main_winloop ()
#5  0x0000000100004d33 in main ()

Attachments (1)

patch-motifutils.c (875 bytes) - added by mlund (Mikael Lund) 13 years ago.
patch file

Download all attachments as: .zip

Change History (8)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: lion added
Owner: changed from macports-tickets@… to mlund@…

Please use WikiFormatting and preview before submitting. Please Cc the port's maintainer.

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

According to the xmgr homepage, its development is frozen and it has been replaced with grace. Have you tried using grace instead?

comment:3 Changed 13 years ago by gezelter@…

Although we do use both grace and xmgr, the original has some significant interface differences (and a few functional differences) that did not survive the migration to Grace. There are still a lot of scientists who prefer the original software.

comment:4 Changed 13 years ago by mlund (Mikael Lund)

yes, xmgr is still used by many scientist. I reproduce the problem while compiling on lion. I tried to copy the snow leopard binary to lion - dynamically linked to macports libraries - and this works. Until fixed the SL binary can be found here:

http://dl.dropbox.com/u/6469564/software/xmgr-4.1.2-snowleopard-macports-binary.exe

The segmentation fault on lion persists when compiled with llvm-gcc or clang. Could this be a header problem from dependent libraries?

Changed 13 years ago by mlund (Mikael Lund)

Attachment: patch-motifutils.c added

patch file

comment:5 Changed 13 years ago by mlund (Mikael Lund)

The problem was related to a sentinel function. Fixed in the patch above but will unfortunately give some X KEYSYM warnings. As far as I can tell these have no effect on xmgr functionality.

comment:6 Changed 13 years ago by mlund (Mikael Lund)

patch uploaded - see ticket #30596

comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.