Opened 15 years ago
Closed 14 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)
Change History (12)
comment:1 Changed 15 years ago by blb@…
Description: | modified (diff) |
---|---|
Keywords: | xmgr removed |
Owner: | changed from macports-tickets@… to mlund@… |
comment:2 Changed 15 years ago by mlund (Mikael Lund)
comment:3 Changed 15 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 15 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 14 years ago by jmroot (Joshua Root)
Cc: | jmr@… added |
---|---|
Keywords: | LP64 added; SIGSYS removed |
Resolution: | → fixed |
Status: | new → closed |
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 14 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 14 years ago by mlund (Mikael Lund)
Attachment: | Portfile-xmgr.diff added |
---|
Changed 14 years ago by mlund (Mikael Lund)
Attachment: | patch-motifutils.c added |
---|
comment:7 Changed 14 years ago by mlund (Mikael Lund)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
The above fixed the original issue on 64-bit! See attached patch files.
comment:8 follow-up: 9 Changed 14 years ago by mlund (Mikael Lund)
I have submitted patch files to ticket #22468
comment:9 Changed 14 years ago by mlund (Mikael Lund)
comment:10 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
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:
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.