Page 1 of 1

6.9.2.0 + FreeBSD 10.2 + OpenMP Issues

Posted: 2015-09-15T13:42:29-07:00
by cbl
Upgraded one of my servers to FreeBSD 10.2-RELEASE-p2 from a 10.1-RELEASE and compiling ImageMagick 6.9.2.0 from ports from 6.9.0 with OpenMP. Everything installs without errors, yet when I try and run "convert -version", the process hangs and eats up 100% CPU never terminating. It appears when I try compiling without OpenMP the binaries run as normal.

*-config binaries run with the "--version" correctly, but the "identify", "import", "stream", "convert", etc do not and appear to hang.

I've tried compiling with gcc4.8, 4.9, and 5.2

Anybody have any ideas?

Useful outputs from config.log:

Code: Select all

./configure --without-dps --without-gcc-arch --disable-hdri --with-perl=/usr/local/bin/perl5.20.2 --with-perl-options=MAKE=gmake --with-threads --enable-openmp --with-modules --without-openexr --without-djvu --without-tiff --without-gslib --without-lqr --witho
ut-fftw --with-fpx --without-gvc --without-freetype --with-webp --with-fontconfig --without-wmf --without-rsvg --without-pango --without-x --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/ --build=amd64-portbld-freebsd10.2

configure:10138: checking for gcc48 -std=gnu99 -std=gnu99 option to support OpenMP
configure:10153: gcc48 -std=gnu99 -std=gnu99 -o conftest -O2 -pipe  -fstack-protector -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wall -fexceptions -D_THREAD_SAFE  -isystem/usr/local/include  -Wl,-Y/usr/local/lib -lpthread -fstack-protector -Wl,-rpath=/u
sr/local/lib/gcc48 -L/usr/local/lib/gcc48 conftest.c  -lpthread >&5
conftest.c:36:2: error: unknown type name 'choke'
  choke me
  ^
In file included from conftest.c:38:0:
/usr/local/lib/gcc48/gcc/x86_64-portbld-freebsd10.1/4.8.5/include/omp.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
 typedef struct
 ^
configure:10153: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ImageMagick"
| #define PACKAGE_TARNAME "ImageMagick"
| #define PACKAGE_VERSION "6.9.2-0"
| #define PACKAGE_STRING "ImageMagick 6.9.2-0"
| #define PACKAGE_BUGREPORT "http://www.imagemagick.org"
| #define PACKAGE_URL ""
| #define PACKAGE "ImageMagick"
| #define VERSION "6.9.2-0"
| #define MAGICK_TARGET_CPU amd64
| #define MAGICK_TARGET_VENDOR portbld
| #define MAGICK_TARGET_OS freebsd10.2
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE___ATTRIBUTE__ 1
| #define SIZEOF_SIZE_T 8
| #define HAVE_PTHREAD_PRIO_INHERIT 1
| #define HAVE_PTHREAD 1
| #define THREAD_SUPPORT 1
| /* end confdefs.h.  */
|  
| #ifndef _OPENMP
|  choke me
| #endif
| #include <omp.h>
| int main () { return omp_get_num_threads (); }
|
configure:10171: gcc48 -std=gnu99 -std=gnu99 -o conftest -O2 -pipe  -fstack-protector -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wall -fexceptions -D_THREAD_SAFE  -fopenmp -isystem/usr/local/include  -Wl,-Y/usr/local/lib -lpthread -fstack-protector -Wl,
-rpath=/usr/local/lib/gcc48 -L/usr/local/lib/gcc48 conftest.c  -lpthread >&5
configure:10171: $? = 0
configure:10185: result: -fopenmp

Re: 6.9.2.0 + FreeBSD 10.2 + OpenMP Issues

Posted: 2015-09-15T16:46:03-07:00
by magick
Its likely a compiler or libgomp issue. ImageMagick has been running for years now with OpenMP under Linux, Windows, and Mac OS X without complaint. Can you try compiling with clang? Does that help? Can you strace 'convert -version'? What are the most recent system calls? Try this
  • gdb convert
    run -version
    <wait several seconds>
    ^C
    bt
Post the stack trace here.

Re: 6.9.2.0 + FreeBSD 10.2 + OpenMP Issues

Posted: 2015-09-15T20:31:38-07:00
by cbl
Yeah, OpenMP was working fine on FreeBSD 10.1 and has for years. I'll try to compile with clang.

Here's the backtrace output:

Code: Select all

(gdb) run -version
Starting program: /usr/local/bin/convert -version
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/local/lib/gcc49/libgomp.so.1]
(no debugging symbols found)...[New LWP 100618]
(no debugging symbols found)...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/local/lib/gcc49/libgcc_s.so.1]
(no debugging symbols found)...(no debugging symbols found)...^C[New Thread 83006400 (LWP 100618/convert)]

Program received signal SIGINT, Interrupt.
[Switching to Thread 83006400 (LWP 100618/convert)]
0x0000000082346f1a in _umtx_op () from /lib/libc.so.7
(gdb) bt
#0  0x0000000082346f1a in _umtx_op () from /lib/libc.so.7
#1  0x0000000082336604 in sem_timedwait () from /lib/libc.so.7
#2  0x0000000081eaf15c in ?? () from /usr/local/lib/gcc49/libgomp.so.1
#3  0x0000000083016100 in ?? ()
#4  0x00000000809172c3 in LocaleComponentTerminus () from /usr/local/lib/libMagickCore-6.so.2
#5  0x0000000082670290 in __des_crypt_LOCAL () from /lib/libc.so.7
#6  0x0000000083016100 in ?? ()
#7  0x0000000082670290 in __des_crypt_LOCAL () from /lib/libc.so.7
#8  0x00007fffffffedf8 in ?? ()
#9  0x0000000000000001 in ?? ()
#10 0x00007fffffffebd0 in ?? ()
#11 0x0000000000000002 in ?? ()
#12 0x00000000809183bb in LogComponentGenesis () from /usr/local/lib/libMagickCore-6.so.2
#13 0x000000008091a944 in MagickCoreGenesis () from /usr/local/lib/libMagickCore-6.so.2
#14 0x000000000040090e in ?? ()
#15 0x0000000000400adf in ?? ()
#16 0x0000000080621000 in ?? ()
#17 0x0000000000000000 in ?? ()

Re: 6.9.2.0 + FreeBSD 10.2 + OpenMP Issues

Posted: 2015-09-15T21:01:17-07:00
by cbl
Here's an output from truss:

Code: Select all

# truss convert
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 2153897984 (0x8061e000)
issetugid(0x8081eb20,0x7fffffffefc9,0x40,0x0,0xffff80008081fb57,0x0) = 0 (0x0)
__sysctl(0x7fffffffe0d0,0x2,0x8081f048,0x7fffffffe0c8,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe0d0,0x2,0x8081f148,0x7fffffffe0c8,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe0d0,0x2,0x8081f248,0x7fffffffe0c8,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe0d0,0x2,0x8081f348,0x7fffffffe0c8,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe0d0,0x2,0x8081f448,0x7fffffffe0c8,0x0,0x0) = 0 (0x0)
lstat("/etc",{ mode=drwxr-xr-x ,inode=16514,size=2560,blksize=32768 }) = 0 (0x0)
lstat("/etc/libmap.conf",{ mode=-rw-r--r-- ,inode=16640,size=108,blksize=32768 }) = 0 (0x0)
openat(0xffffff9c,0x80623000,0x100000,0x0,0xfffffffffffffc00,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=16640,size=108,blksize=32768 }) = 0 (0x0)
mmap(0x0,108,PROT_READ,MAP_PRIVATE,3,0x0)	 = 2153930752 (0x80626000)
close(3)					 = 0 (0x0)
lstat("/usr",{ mode=drwxr-xr-x ,inode=2,size=1024,blksize=32768 }) = 0 (0x0)
lstat("/usr/local",{ mode=drwxr-xr-x ,inode=331520,size=512,blksize=32768 }) = 0 (0x0)
lstat("/usr/local/etc",{ mode=drwxr-xr-x ,inode=331756,size=1024,blksize=32768 }) = 0 (0x0)
lstat("/usr/local/etc/libmap.d",0x7fffffffc778)	 ERR#2 'No such file or directory'
munmap(0x80626000,108)				 = 0 (0x0)
access("/usr/local/lib/gcc49/libMagickCore-6.so.2",0) ERR#2 'No such file or directory'
access("/usr/local/lib/libMagickCore-6.so.2",0)	 = 0 (0x0)
openat(0xffffff9c,0x80622040,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rwxr-xr-x ,inode=537664,size=2058328,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,4161536,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2156003328 (0x80820000)
mmap(0x80820000,1957888,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2156003328 (0x80820000)
mmap(0x80bfd000,102400,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x1dd000) = 2160054272 (0x80bfd000)
mmap(0x80c16000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 2160156672 (0x80c16000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libMagickWand-6.so.2",0) ERR#2 'No such file or directory'
access("/usr/local/lib/libMagickWand-6.so.2",0)	 = 0 (0x0)
openat(0xffffff9c,0x80622140,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rwxr-xr-x ,inode=537669,size=1017216,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,3112960,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2160164864 (0x80c18000)
mmap(0x80c18000,999424,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2160164864 (0x80c18000)
mmap(0x80f0b000,20480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0xf3000) = 2163257344 (0x80f0b000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libltdl.so.7",0)	 ERR#2 'No such file or directory'
access("/usr/local/lib/libltdl.so.7",0)		 = 0 (0x0)
openat(0xffffff9c,0x80622240,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rwxr-xr-x ,inode=546912,size=37320,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2134016,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2163277824 (0x80f10000)
mmap(0x80f10000,36864,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2163277824 (0x80f10000)
mmap(0x81118000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x8000) = 2165407744 (0x81118000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/liblcms2.so.2",0)	 ERR#2 'No such file or directory'
access("/usr/local/lib/liblcms2.so.2",0)	 = 0 (0x0)
openat(0xffffff9c,0x80622300,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rwxr-xr-x ,inode=546775,size=364312,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2461696,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2165411840 (0x81119000)
mmap(0x81119000,344064,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2165411840 (0x81119000)
mmap(0x8136c000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x53000) = 2167848960 (0x8136c000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libfontconfig.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/libfontconfig.so.1",0)	 = 0 (0x0)
openat(0xffffff9c,0x806223c0,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rwxr-xr-x ,inode=546389,size=262024,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2359296,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2167873536 (0x81372000)
mmap(0x81372000,253952,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2167873536 (0x81372000)
mmap(0x815b0000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x3e000) = 2170224640 (0x815b0000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libfreetype.so.6",0) ERR#2 'No such file or directory'
access("/usr/local/lib/libfreetype.so.6",0)	 = 0 (0x0)
openat(0xffffff9c,0x80622480,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rwxr-xr-x ,inode=542636,size=640752,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2736128,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2170232832 (0x815b2000)
mmap(0x815b2000,618496,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2170232832 (0x815b2000)
mmap(0x81848000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x96000) = 2172944384 (0x81848000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libbz2.so.4",0)	 ERR#2 'No such file or directory'
access("/usr/local/lib/libbz2.so.4",0)		 ERR#2 'No such file or directory'
openat(0xffffff9c,0x80618703,0x100000,0x0,0x101010101010100,0x8080808080808080) = 3 (0x3)
read(3,"Ehnt\^A\0\0\0\M^@\0\0\0\M-/\0\0"...,128) = 128 (0x80)
lseek(3,0x80,SEEK_SET)				 = 128 (0x80)
read(3,"/lib:/usr/lib:/usr/lib/compat:/u"...,175) = 175 (0xaf)
close(3)					 = 0 (0x0)
access("/lib/libbz2.so.4",0)			 ERR#2 'No such file or directory'
access("/usr/lib/libbz2.so.4",0)		 = 0 (0x0)
openat(0xffffff9c,0x8061f600,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=856077,size=75896,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2170880,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2172968960 (0x8184e000)
mmap(0x8184e000,69632,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2172968960 (0x8184e000)
mmap(0x81a5f000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x11000) = 2175135744 (0x81a5f000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libz.so.6",0)	 ERR#2 'No such file or directory'
access("/usr/local/lib/libz.so.6",0)		 ERR#2 'No such file or directory'
access("/lib/libz.so.6",0)			 = 0 (0x0)
openat(0xffffff9c,0x8061f640,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=33077,size=89592,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2187264,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2175139840 (0x81a60000)
mmap(0x81a60000,86016,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2175139840 (0x81a60000)
mmap(0x81c75000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x15000) = 2177323008 (0x81c75000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libm.so.5",0)	 ERR#2 'No such file or directory'
access("/usr/local/lib/libm.so.5",0)		 ERR#2 'No such file or directory'
access("/lib/libm.so.5",0)			 = 0 (0x0)
openat(0xffffff9c,0x8061f680,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=33046,size=185424,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2265088,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2177327104 (0x81c76000)
mmap(0x81c76000,167936,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2177327104 (0x81c76000)
mmap(0x81e9e000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x28000) = 2179588096 (0x81e9e000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libgomp.so.1",0)	 = 0 (0x0)
openat(0xffffff9c,0x806226c0,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rwxr-xr-x ,inode=631879,size=480472,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2187264,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2179592192 (0x81e9f000)
mmap(0x81e9f000,86016,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2179592192 (0x81e9f000)
mmap(0x820b4000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x15000) = 2181775360 (0x820b4000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libthr.so.3",0)	 ERR#2 'No such file or directory'
access("/usr/local/lib/libthr.so.3",0)		 ERR#2 'No such file or directory'
access("/lib/libthr.so.3",0)			 = 0 (0x0)
openat(0xffffff9c,0x8061f700,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=33074,size=102480,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2244608,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2181779456 (0x820b5000)
mmap(0x820b5000,98304,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2181779456 (0x820b5000)
mmap(0x822cc000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x17000) = 2183970816 (0x822cc000)
mmap(0x822ce000,45056,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 2183979008 (0x822ce000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libc.so.7",0)	 ERR#2 'No such file or directory'
access("/usr/local/lib/libc.so.7",0)		 ERR#2 'No such file or directory'
access("/lib/libc.so.7",0)			 = 0 (0x0)
openat(0xffffff9c,0x8061f740,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=33043,size=1643336,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,3850240,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2184024064 (0x822d9000)
mmap(0x822d9000,1531904,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2184024064 (0x822d9000)
mmap(0x8264f000,49152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x176000) = 2187653120 (0x8264f000)
mmap(0x8265b000,172032,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 2187702272 (0x8265b000)
mmap(0x0,36864,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 2153934848 (0x80627000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/libgcc_s.so.1",0)	 ERR#2 'No such file or directory'
access("/usr/local/lib/gcc49/libgcc_s.so.1",0)	 = 0 (0x0)
openat(0xffffff9c,0x80622880,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=631911,size=491728,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2187264,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2187874304 (0x82685000)
mmap(0x82685000,90112,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2187874304 (0x82685000)
mmap(0x8289a000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x15000) = 2190057472 (0x8289a000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
access("/usr/local/lib/gcc49/libexpat.so.1",0)	 ERR#2 'No such file or directory'
access("/usr/local/lib/libexpat.so.1",0)	 = 0 (0x0)
openat(0xffffff9c,0x80622940,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
fstat(3,{ mode=-rwxr-xr-x ,inode=531907,size=173841,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 2153930752 (0x80626000)
mmap(0x0,2252800,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 2190061568 (0x8289b000)
mmap(0x8289b000,147456,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 2190061568 (0x8289b000)
mmap(0x82abf000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x24000) = 2192306176 (0x82abf000)
munmap(0x80626000,4096)				 = 0 (0x0)
close(3)					 = 0 (0x0)
munmap(0x8062b000,20480)			 = 0 (0x0)
mmap(0x0,69632,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 2153951232 (0x8062b000)
mmap(0x0,102400,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 2154020864 (0x8063c000)
sysarch(0x81,0x7fffffffe158,0x4,0x0,0xfffffffffdfdb890,0x8080808080808080) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)		 = 0 (0x0)
readlink("/etc/malloc.conf",0x7fffffffd880,1024) ERR#2 'No such file or directory'
issetugid(0x8242593e,0x7fffffffd880,0xffffffffffffffff,0x2,0x39,0xffffffff0fffffff) = 0 (0x0)
mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 2192314368 (0x82ac1000)
munmap(0x82ac1000,4194304)			 = 0 (0x0)
mmap(0x0,8384512,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 2192314368 (0x82ac1000)
munmap(0x82ac1000,1306624)			 = 0 (0x0)
munmap(0x83000000,2883584)			 = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)		 = 0 (0x0)
getpid()					 = 12435 (0x3093)
__sysctl(0x7fffffffdc90,0x2,0x822d8da0,0x7fffffffdc98,0x0,0x0) = 0 (0x0)
getrlimit(RLIMIT_STACK,{ cur=536870912,max=536870912 }) = 0 (0x0)
__sysctl(0x7fffffffdbb0,0x2,0x7fffffffdbf0,0x7fffffffdbe8,0x820c94d8,0xd) = 0 (0x0)
__sysctl(0x7fffffffdbf0,0x3,0x822d782c,0x7fffffffdc98,0x0,0x0) = 0 (0x0)
mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 2197815296 (0x83000000)
thr_self(0x83006400,0x1,0x0,0x8062a9a0,0x40,0x83016010) = 0 (0x0)
mmap(0x7fffdfffe000,4096,PROT_NONE,MAP_ANON,-1,0x0) = 140736951476224 (0x7fffdfffe000)
rtprio_thread(0x0,0x1890b,0x7fffffffdc68,0x20000000,0xffffffff,0x0) = 0 (0x0)
sysarch(0x81,0x7fffffffdc78,0x822d7400,0x0,0xffffffff,0x0) = 0 (0x0)
sigaction(32,{ 0x820c21c0 SA_SIGINFO ss_t },0x0) = 0 (0x0)
sigprocmask(SIG_UNBLOCK,0x0,0x0)		 = 0 (0x0)
_umtx_op(0x7fffffffdc28,UMTX_OP_WAKE,0x1,0x0,0x0) = 0 (0x0)
mprotect(0x0,0,PROT_NONE)			 = 0 (0x0)
getpid()					 = 12435 (0x3093)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)		 = 0 (0x0)
__sysctl(0x7fffffffdc00,0x2,0x7fffffffdc40,0x7fffffffdc38,0x82697eac,0xe) = 0 (0x0)
__sysctl(0x7fffffffdc40,0x2,0x7fffffffdce4,0x7fffffffdce8,0x0,0x0) = 0 (0x0)
_umtx_op(0x830160c4,UMTX_OP_SEM_WAIT,0x0,0x0,0x0) = 0 (0x0)
_umtx_op(0x830160c4,UMTX_OP_SEM_WAIT,0x0,0x0,0x0) = 0 (0x0)
_umtx_op(0x830160c4,UMTX_OP_SEM_WAIT,0x0,0x0,0x0) = 0 (0x0)
_umtx_op(0x830160c4,UMTX_OP_SEM_WAIT,0x0,0x0,0x0) = 0 (0x0)
_umtx_op(0x830160c4,UMTX_OP_SEM_WAIT,0x0,0x0,0x0) = 0 (0x0)
_umtx_op(0x830160c4,UMTX_OP_SEM_WAIT,0x0,0x0,0x0) = 0 (0x0)
_umtx_op(0x830160c4,UMTX_OP_SEM_WAIT,0x0,0x0,0x0) = 0 (0x0)
...and repeat forever.

Re: 6.9.2.0 + FreeBSD 10.2 + OpenMP Issues

Posted: 2015-09-16T03:21:23-07:00
by magick
Notice /usr/local/lib/gcc49/libgomp.so.1. Its linking to a local install of libgomp rather than the system-installed version. Could that be the problem?

Re: 6.9.2.0 + FreeBSD 10.2 + OpenMP Issues

Posted: 2015-09-16T06:22:53-07:00
by cbl
No, existing working installs linked against gcc4.8 are linking their libgomp from the ports installed gcc48:

Code: Select all

	libgomp.so.1 => /usr/local/lib/gcc48/libgomp.so.1 (0x801e91000)
I replaced my /usr/local/lib/gcc48/libgomp.so.1 with a symlink to /usr/lib/libgomp.so.1 just for kicks and giggles and get this:

Code: Select all

   /usr/local/lib/gcc48/libgomp.so.1: version OMP_3.0 required by /usr/local/lib/libMagickCore-6.so.2 not found
Appears the OS libgomp is not as new as the ports version. GCC 4.3.5.