Opened 14 years ago

Closed 13 years ago

#22468 closed defect (fixed)

xmgr crashes on "Printer Setup"

Reported by: peterp@… Owned by: mlund (Mikael Lund)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: LP64 Cc: jmroot (Joshua Root)
Port: xmgr

Description (last modified by blb@…)

I do love xmgr (started using it back in the dark days when it was called xvgr) but it crashes when you try Printer Setup in order to export .ps or .eps figures.

bash-3.2$ which xmgr
/opt/local/bin/xmgr
bash-3.2$ xmgr
xmgr v4.1.2 
(C) Copyright 1991-1995 Paul J Turner
(C) Copyright 1996-1998 ACE/gr Development Team
All Rights Reserved

Oops! Got SIGSYS. Please use "Help/Comments" to report the bug.
bash-3.2$ 

Attachments (2)

Portfile-xmgr.diff (457 bytes) - added by mlund (Mikael Lund) 13 years ago.
patch-motifutils.c (365 bytes) - added by mlund (Mikael Lund) 13 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 14 years ago by blb@…

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

comment:2 Changed 14 years ago by mlund (Mikael Lund)

Hi, I am not able to reproduce this on my build on Snow Leopard. I know people have had trouble with xmgr on 64bit linux - perhaps the same applies to darwin?

My setup:

  • Darwin localhost 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386.
  • macports v1.8.1
  • gcc version 4.2.1 (Apple Inc. build 5646)

Yes, I know many people (myself excluded) prefer xmgr over grace and I'll do my best to keep this package updated. It's quite amazing that a tar-ball from 1998 still compiles on modern OS wiht next to no modifications.

comment:3 Changed 14 years ago by mlund (Mikael Lund)

Seems this bug has been observed on 64-bit linux as well: https://bugzilla.redhat.com/show_bug.cgi?id=505546

And something similar for xmgrace: https://bugs.launchpad.net/lesstif/+bug/124573

I have reproduced this error on a 64bit system running 10.6. GDB on xmgr gives the following:

Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x00007fff00000000 0x0000000100512d89 in XrmStringToQuark ()

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

Until this gets fixed, Rosetta emulation can be used to run a PowerPC version:

http://www.teokem.lu.se/~mikael/Xmgr.pkg.zip

This works on all my setups and I can't feel any noticeable speed descrese.

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Cc: jmr@… added
Keywords: LP64 added; SIGSYS removed
Resolution: fixed
Status: newclosed

I set this port's supported_archs to i386 and ppc only in r75547. Let me know if that isn't what you want to do.

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

Sounds like a good solution. I've found the following comment about xmgr on 64-bit linux:


Bugfixes to xmgr In x86_64 linux, xmgr crashes if you select the Legends dialog. Edit the file motifutils.c and change line 125 from

while ((s = va_arg(var, char *)) != NULL ) {

to

while ((s = va_arg(var, char *)) != NULL && i<nchoices) {


on http://brneurosci.org/linuxsetup101.html

I will check if this solves the issue.

Changed 13 years ago by mlund (Mikael Lund)

Attachment: Portfile-xmgr.diff added

Changed 13 years ago by mlund (Mikael Lund)

Attachment: patch-motifutils.c added

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

Resolution: fixed
Status: closedreopened

The above fixed the original issue on 64-bit! See attached patch files.

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

I have submitted patch files to ticket #22468

comment:9 in reply to:  8 Changed 13 years ago by mlund (Mikael Lund)

Replying to mlund@…:

I have submitted patch files to ticket #22468

sorry - that would be ticket #28217

comment:10 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.