Ticket #22468 (closed defect: fixed)
xmgr crashes on "Printer Setup"
| Reported by: | peterp@… | Owned by: | mlund@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.1 |
| Keywords: | LP64 | Cc: | jmr@… |
| Port: | xmgr |
Description (last modified by blb@…) (diff)
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
Change History
comment:1 Changed 4 years ago by blb@…
- Owner changed from macports-tickets@… to mlund@…
- Keywords xmgr, removed
- Description modified (diff)
comment:2 Changed 4 years ago by mlund@…
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 4 years ago by mlund@…
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 4 years ago by mlund@…
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 2 years ago by jmr@…
- Cc jmr@… added
- Status changed from new to closed
- Resolution set to fixed
- Keywords LP64 added; SIGSYS removed
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 2 years ago by mlund@…
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.
comment:7 Changed 2 years ago by mlund@…
- Status changed from closed to reopened
- Resolution fixed deleted
The above fixed the original issue on 64-bit! See attached patch files.
comment:8 follow-up: ↓ 9 Changed 2 years ago by mlund@…
I have submitted patch files to ticket #22468
comment:10 Changed 2 years ago by jmr@…
- Status changed from reopened to closed
- Resolution set to fixed

