LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 16658 - clang33 crashes (sigabort) compiling perl module Math::Int128 on FreeBSD 9.1 i386
Summary: clang33 crashes (sigabort) compiling perl module Math::Int128 on FreeBSD 9.1 ...
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: 3.3
Hardware: PC FreeBSD
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-19 00:17 PDT by Kurt Jaeger
Modified: 2013-09-17 06:30 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger 2013-07-19 00:17:34 PDT
clang33 fails with

clang33 -c  -I.  -O2 -pipe -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing    -DVERSION=\"0.10\"  -DXS_VERSION=\"0.10\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.16/mach/CORE"   Int128.c
[...]
UNREACHABLE executed!
Stack dump:
0.      Program arguments: /usr/local/llvm33/bin/clang -cc1 -triple i386-portbld-freebsd9.1 -emit-obj -disable-free -disable-llvm-verifier -main-file-name Int128.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu i486 -target-linker-version 2.23.2 -coverage-file /usr/local/home/pi/myp/math/p5-Math-Int128/work/Math-Int128-0.10/Int128.o -resource-dir /usr/local/llvm33/bin/../lib/clang/3.3 -D VERSION="0.10" -D XS_VERSION="0.10" -D PIC -I . -I /usr/local/lib/perl5/5.16/mach/CORE -O2 -fdebug-compilation-dir /usr/local/home/pi/myp/math/p5-Math-Int128/work/Math-Int128-0.10 -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fdiagnostics-show-option -backend-option -vectorize-loops -o Int128.o -x c Int128.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'Int128.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@XS_Math__Int128__mul'
clang: error: unable to execute command: Abort trap: 6 (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
[...]
clang: note: diagnostic msg: /tmp/Int128-apBJtv.c
clang: note: diagnostic msg: /tmp/Int128-apBJtv.sh
[...]

The full details see 

http://opsec.eu/backup/misc.tgz with
the full compile log and the two files mentioned above
and
http://opsec.eu/backup/port.tgz
with the full contents of the ports directory.

The problem came up updating and debugging the freebsd math/p5-Math-Int128 port,
see

http://www.freebsd.org/cgi/query-pr.cgi?pr=180487                               

for details.
Comment 1 Kurt Jaeger 2013-07-19 00:36:41 PDT
Same problem with Math::Int128 0.11.
Comment 2 Kurt Jaeger 2013-07-20 07:29:52 PDT
Same problem with Math::Int128 0.12