[MacPorts] #57726: pgplot demo 'cpgdemo' segfaults with variant gcc8, ok with gcc7
MacPorts
noreply at macports.org
Fri Feb 21 21:17:21 UTC 2020
#57726: pgplot demo 'cpgdemo' segfaults with variant gcc8, ok with gcc7
---------------------+---------------------------------
Reporter: d-lamb | Owner: MarcusCalhoun-Lopez
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: pgplot |
---------------------+---------------------------------
Changes (by paulray):
* status: closed => reopened
* resolution: wontfix =>
Comment:
I just encountered this on my Mac that was newly updated to Mojave. I
compiled everything with gcc9 and I'm getting segfaults in cpgmtxt(). It
does NOT happen in cpgdemo, but it does happen in two other codes that use
cpgplot. Here is an example:
{{{
Thread 2 received signal SIGSEGV, Segmentation fault.
0x0000000100a9574b in _gfortran_string_len_trim () from
/opt/local/lib/libgcc/libgfortran.5.dylib
(gdb) where
#0 0x0000000100a9574b in _gfortran_string_len_trim () from
/opt/local/lib/libgcc/libgfortran.5.dylib
#1 0x00000001007b61d2 in grtrim_ () from /opt/local/lib/libpgplot5.dylib
#2 0x00000001007c0880 in pgmtxt_ () from /opt/local/lib/libpgplot5.dylib
#3 0x00000001007a4305 in cpgmtxt () from /opt/local/lib/libcpgplot5.dylib
#4 0x0000000100006640 in prepfold_plot (search=0x100066eca,
flags=<optimized out>, xwin=<optimized out>, ppdot=0x108000000)
at prepfold_plot.c:752
#5 0x00000001000616f7 in ?? ()
#6 0x00007fff66e703d5 in dispatch_logfile () from
/usr/lib/system/libdispatch.dylib
#7 0x0000000000000000 in ?? ()
}}}
The version of pgplot installed is:
pgplot @5.2.2_12+gcc9+x11 (active)
And, here are the libraries that are linked into the code that is
crashing:
{{{
mcxr2 : 25>otool -L /Users/paulr/src/presto-paulray/bin/prepfold
/Users/paulr/src/presto-paulray/bin/prepfold:
/opt/local/lib/libcfitsio.dylib (compatibility version 7.0.0,
current version 7.3.45)
/opt/local/lib/libcurl.4.dylib (compatibility version 11.0.0,
current version 11.0.0)
/opt/local/lib/libfftw3f.3.dylib (compatibility version 9.0.0,
current version 9.8.0)
/opt/local/lib/libcpgplot5.dylib (compatibility version 5.0.0,
current version 5.2.2)
/opt/local/lib/libpgplot5.dylib (compatibility version 5.0.0,
current version 5.2.2)
/opt/local/lib/libX11.6.dylib (compatibility version 10.0.0,
current version 10.0.0)
/opt/local/lib/libpng16.16.dylib (compatibility version 54.0.0,
current version 54.0.0)
/opt/local/lib/libgcc/libgfortran.5.dylib (compatibility version
6.0.0, current version 6.0.0)
/opt/local/lib/libgcc/libgomp.1.dylib (compatibility version
2.0.0, current version 2.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1252.250.1)
/opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version
1.0.0, current version 1.0.0)
/opt/local/lib/libgcc/libquadmath.0.dylib (compatibility version
1.0.0, current version 1.0.0)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57726#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list