Bug 194375 - textproc/tinyxml2: Linking to shared object created segfault
Summary: textproc/tinyxml2: Linking to shared object created segfault
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-15 05:25 UTC by Jordan Irwin
Modified: 2017-01-28 22:14 UTC (History)
4 users (show)

See Also:
antumdeluge: maintainer-feedback? (bf)
antumdeluge: exp-run?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Irwin 2014-10-15 05:25:46 UTC
FreeBSD 10.0 amd64
tinyxml2-20140124
gcc version 4.7.4 (FreeBSD Ports Collection)

Linking to tinyxml2 dynamically causes a segmentation fault when I run a program:
[OUTPUT]
$ g++ test.cpp -o test -ltinyxml2
$ ./test test.xml
Segmentation fault (core dumped)
[/OUTPUT]

I can link to it statically without encountering the same problem:
[OUTPUT]
$ g++ test.cpp -o test /usr/local/lib/libtinyxml2.a
$ ./test test.xml
Loading XML contents....
Name=sword
[/OUTPUT]

NOTE: This also seems to affect textproc/tinyxml, though I have not tried statically linking yet.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-10-15 05:25:46 UTC
Auto-assigned to maintainer bf@FreeBSD.org
Comment 2 Rene Ladan freebsd_committer freebsd_triage 2016-06-27 21:47:59 UTC
Maintainer reset.
Comment 3 Carlo Strub freebsd_committer freebsd_triage 2016-07-17 12:05:51 UTC
Is this bug still relevant?
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2017-01-28 22:14:39 UTC
sample program seems to work. feedback timeout