Date: Thu, 30 Apr 2020 11:08:51 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 246049] math/giacxcas: libgiac.so causes segfault when mixed with other libs Message-ID: <bug-246049-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246049 Bug ID: 246049 Summary: math/giacxcas: libgiac.so causes segfault when mixed with other libs Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: yuri@freebsd.org Reporter: thierry@FreeBSD.org Flags: maintainer-feedback?(yuri@freebsd.org) Assignee: yuri@freebsd.org Created attachment 213939 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D213939&action= =3Dedit Test case to reproduce the error: conftest.c math/giacxcas is built with Gcc, and a comment says: # Warning: don't remove the USE_GCC without a runtime test *after* make install USE_GCC=3D yes But this causes segfault when libgiac is mixed with other libraries, e.g. libmpfi. How to reproduce: - take the attached conftest.c and compile it with or without linking with -lgiac - both build fine - run the resulting conftest: the one linked with -lgiac will segfaut. E.g. on FreeBSD-12.1 / amd64: $ cc -o conftest conftest.c -isystem /usr/local/include -Wl,-rpath=3D/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -lgmp -lmpfr -lmpfi -lflint $ ./conftest 1.5.4 $ cc -o conftest conftest.c -isystem /usr/local/include -Wl,-rpath=3D/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -lgiac -lgmp -lmpfr -lmpfi -lflint $ ./conftest zsh: segmentation fault (core dumped) ./conftest $ lldb ./conftest (lldb) target create "./conftest" Current executable set to './conftest' (x86_64). (lldb) b main Breakpoint 1: where =3D conftest`main + 15 at conftest.c:6:3, address =3D 0x00000000004007cf (lldb) r Process 54933 launching Process 54933 launched: '/usr/ports/math/sage/work/sage-9.1.rc1/conftest' (x86_64) Process 54933 stopped * thread #1, name =3D 'conftest', stop reason =3D signal SIGSEGV: address a= ccess protected (fault address: 0x803d72a18) frame #0: 0x0000000803d72a18 -> 0x803d72a18: xorb %cl, %cl 0x803d72a1a: rep addb $0x8, %al 0x803d72a1d: addb %al, (%rax) 0x803d72a1f: addb %al, (%rax) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246049-7788>