Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2014 19:48:17 GMT
From:      Denver Hull <denverh@comcast.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187506: SEGV when printing with qcad on amd64 system
Message-ID:  <201403121948.s2CJmHYf053779@cgiserv.freebsd.org>
Resent-Message-ID: <201403121950.s2CJo05s066543@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187506
>Category:       ports
>Synopsis:       SEGV when printing with qcad on amd64 system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 12 19:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Denver Hull
>Release:        9.2
>Organization:
>Environment:
FreeBSD dhbsd.comcast.net 9.2-STABLE FreeBSD 9.2-STABLE #0 r262221: Wed Feb 19 13:45:52 CST 2014     root@dhbsd:/usr/obj/usr/src/sys/DHULL  amd64

>Description:
The current version of cad/qcad, 3.4.6.0, will exit with a SEGV when attempting to print a drawing or export to PDF.  This happens on amd64 but not on i386.  In fact, if built in a i386 chroot (like wine) it will work on the same amd64 system where it fails if built natively.

This has been a problem for at least the last few versions, and possibly longer.  
>How-To-Repeat:
1. Build and install cad/qcad on an amd64 system
2. Start it up
3. In the file menu select either "Print" or "PDF Export" - you don't have to actually create a drawing
4. If you selected "PDF Export" then follow the prompts for the file to save
5. qcad will exit with a SEGV
>Fix:
This is not a very easy work around, but cad/qcad can be built as a 32 bit application on an amd64 system, pretty much like one would do for emulators/wine.  You have to set up a 32 bit chroot, build and install it there, then fix up all the symbolic links that get created with absolute paths.  After all that you need to specify an appropriate LD_32_LIBRARY_PATH each time you want to run qcad.  But it will work that way.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403121948.s2CJmHYf053779>