Calculix cgx ( pre and post processor ) compiles nicely, but it causes segmentation fault it i try to start the application. [uRRui@darKstaR ~]$ uname -v FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC [uRRui@darKstaR ~]$ cgx -b Segmentation fault (core dumped) [uRRui@darKstaR ~]$ cgx -v Segmentation fault (core dumped) [uRRui@darKstaR ~]$ cgx -stl Segmentation fault (core dumped) [uRRui@darKstaR ~]$ I really need this package :( Tried to compile it against gcc46, gcc48, gcc5, gcc6 and the reslts ate the same. Alsos tried with former versions, starting with calculix cgx version 2.6 till 2.10 ...no avail... best regards, Alexandre
here is a backtrace ... [uRRui@darKstaR ~]$ gdb /usr/local/bin/gcx cgx.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd".../usr/local/bin/gcx: No such file or directory. Core was generated by `cgx'. Program terminated with signal 11, Segmentation fault. #0 0x000000080484c268 in ?? () (gdb) bt full #0 0x000000080484c268 in ?? () No symbol table info available. #1 0x0000000802455012 in ?? () No symbol table info available. #2 0x000000080268f660 in ?? () No symbol table info available. #3 0x00007fffffffdde0 in ?? () No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available. (gdb)
ops... typo in gdb command ... my bad GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... Core was generated by `cgx'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/local/lib/libGL.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libGL.so.1 Reading symbols from /usr/local/lib/libGLU.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libGLU.so.1 Reading symbols from /usr/local/lib/libX11.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libX11.so.6 Reading symbols from /usr/local/lib/libXi.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXi.so.6 Reading symbols from /usr/local/lib/libXmu.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXmu.so.6 Reading symbols from /usr/local/lib/libXext.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXext.so.6 Reading symbols from /usr/local/lib/libXt.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXt.so.6 Reading symbols from /usr/local/lib/libSM.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libSM.so.6 Reading symbols from /usr/local/lib/libICE.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libICE.so.6 Reading symbols from /lib/libthr.so.3...Reading symbols from /usr/lib/debug//lib/libthr.so.3.debug...done. done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /usr/lib/librt.so.1...Reading symbols from /usr/lib/debug//usr/lib/librt.so.1.debug...done. done. Loaded symbols for /usr/lib/librt.so.1 Reading symbols from /usr/local/lib/gcc46/libstdc++.so.6...done. Loaded symbols for /usr/local/lib/gcc46/libstdc++.so.6 Reading symbols from /lib/libm.so.5...Reading symbols from /usr/lib/debug//lib/libm.so.5.debug...done. done. Loaded symbols for /lib/libm.so.5 Reading symbols from /lib/libgcc_s.so.1...Reading symbols from /usr/lib/debug//lib/libgcc_s.so.1.debug...done. done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libc.so.7...Reading symbols from /usr/lib/debug//lib/libc.so.7.debug...done. done. Loaded symbols for /lib/libc.so.7 Reading symbols from /usr/local/lib/libexpat.so.1...done. Loaded symbols for /usr/local/lib/libexpat.so.1 Reading symbols from /usr/local/lib/libglapi.so.0...done. Loaded symbols for /usr/local/lib/libglapi.so.0 Reading symbols from /usr/local/lib/libXdamage.so.1...done. Loaded symbols for /usr/local/lib/libXdamage.so.1 Reading symbols from /usr/local/lib/libXfixes.so.3...done. Loaded symbols for /usr/local/lib/libXfixes.so.3 Reading symbols from /usr/local/lib/libX11-xcb.so.1...done. Loaded symbols for /usr/local/lib/libX11-xcb.so.1 Reading symbols from /usr/local/lib/libxcb-glx.so.0...done. Loaded symbols for /usr/local/lib/libxcb-glx.so.0 Reading symbols from /usr/local/lib/libxcb-dri2.so.0...done. Loaded symbols for /usr/local/lib/libxcb-dri2.so.0 Reading symbols from /usr/local/lib/libxcb.so.1...done. Loaded symbols for /usr/local/lib/libxcb.so.1 Reading symbols from /usr/local/lib/libXxf86vm.so.1...done. Loaded symbols for /usr/local/lib/libXxf86vm.so.1 Reading symbols from /usr/local/lib/libdrm.so.2...done. Loaded symbols for /usr/local/lib/libdrm.so.2 Reading symbols from /usr/lib/libc++.so.1...Reading symbols from /usr/lib/debug//usr/lib/libc++.so.1.debug...done. done. Loaded symbols for /usr/lib/libc++.so.1 Reading symbols from /lib/libcxxrt.so.1...Reading symbols from /usr/lib/debug//lib/libcxxrt.so.1.debug...done. done. Loaded symbols for /lib/libcxxrt.so.1 Reading symbols from /usr/local/lib/libXau.so.6...done. Loaded symbols for /usr/local/lib/libXau.so.6 Reading symbols from /usr/local/lib/libpthread-stubs.so.0...done. Loaded symbols for /usr/local/lib/libpthread-stubs.so.0 Reading symbols from /usr/local/lib/libXdmcp.so.6...done. Loaded symbols for /usr/local/lib/libXdmcp.so.6 Reading symbols from /libexec/ld-elf.so.1...Reading symbols from /usr/lib/debug//libexec/ld-elf.so.1.debug...done. done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x000000080484c268 in vtable for __cxxabiv1::__si_class_type_info () from /lib/libcxxrt.so.1 [New Thread 805216000 (LWP 101136/<unknown>)] (gdb) (gdb) bt full #0 0x000000080484c268 in vtable for __cxxabiv1::__si_class_type_info () from /lib/libcxxrt.so.1 No symbol table info available. #1 0x0000000802455012 in __dynamic_cast (src_ptr=<value optimized out>, src_type=0x802685eb0, dst_type=0x802685be0, src2dst=0) at /wrkdirs/usr/ports/lang/gcc46/work/gcc-4.6.4/libstdc++-v3/libsupc++/dyncast.cc:61 vtable = <value optimized out> whole_ptr = (const void *) 0x80268f660 whole_type = <value optimized out> result = {dst_ptr = 0x0, whole2dst = __cxxabiv1::__class_type_info::__unknown, whole2src = __cxxabiv1::__class_type_info::__unknown, dst2src = __cxxabiv1::__class_type_info::__unknown, whole_details = 16} #2 0x00000008024282e0 in std::has_facet<std::ctype<char> > (__loc=@0x8b76f8) at locale_classes.tcc:234 __i = <value optimized out> __facets = <value optimized out> #3 0x000000080241d1e4 in std::basic_ios<char, std::char_traits<char> >::_M_cache_locale (this=0x8b7628, __loc=@0x8b76f8) at basic_ios.tcc:160 No locals. #4 0x000000080241d288 in std::basic_ios<char, std::char_traits<char> >::init (this=0x8b7628, __sb=0x80268e9c0) at basic_ios.tcc:133 No locals. #5 0x0000000802404dfd in Init (this=<value optimized out>) at ostream:85 No locals. #6 0x0000000000407ff0 in ?? () No symbol table info available. #7 0x00007fffffffe3b8 in ?? () No symbol table info available. #8 0x00007fffffffe340 in ?? () No symbol table info available. #9 0x00007fffffffdf14 in ?? () No symbol table info available. #10 0x0000000000000000 in ?? () No symbol table info available. (gdb)
It looks like an OpenGL problem. Make sure the device permissions are correct.
(In reply to Pedro F. Giffuni from comment #3) Bah .. I can reproduce it .. it's not the graphics, we need to build cgx with clang while ccx needs GCC (for fortran). Perhaps the best bet is to split the port in two: ccx and cgx.
Should be fixed as of r447973.
Should be fixed already.