Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86 asm printer crash with debug info #1206

Closed
llvmbot opened this issue Jul 18, 2006 · 2 comments
Closed

x86 asm printer crash with debug info #1206

llvmbot opened this issue Jul 18, 2006 · 2 comments
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm:codegen

Comments

@llvmbot
Copy link
Member

llvmbot commented Jul 18, 2006

Bugzilla Link 834
Resolution FIXED
Resolved on Feb 22, 2010 12:47
Version trunk
OS FreeBSD
Attachments ouch.ll: -emit-llvm from cc1plus, bugpoint-reduced-function.bc, bugpoint-reduced-simplified.bc
Reporter LLVM Bugzilla Contributor
CC @lattner

Extended Description

I'm trying to build llvm (CVS HEAD) and llvm-gcc4 (SVN HEAD) on FreeBSD 6 (and
7, same problem happens)

emil@hurtz:~/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include>
/home/emil/NOBACKUP/llvm/obj/gcc/xgcc -shared-libgcc
-B/home/emil/NOBACKUP/llvm/obj/gcc/ -nostdinc++
-L/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/src
-L/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/src/.libs
-B/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/bin/
-B/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/lib/ -isystem
/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/include -isystem
/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/sys-include
-Winvalid-pch -Wno-deprecated -x c++-header -g -O2
-I/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include/i386-unknown-freebsd6.1
-I/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include
-I/home/emil/NOBACKUP/llvm/llvm-gcc4/libstdc++-v3/libsupc++
/home/emil/NOBACKUP/llvm/llvm-gcc4/libstdc++-v3/include/stdc++.h -O0 -g
/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include/valarray:1011:
internal compiler error: Segmentation fault: 11

Based on a backtrace, Chris Lattner said this was a bug in the code generator
and told me to do:

emil@hurtz:~/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include>
/home/emil/NOBACKUP/llvm/obj/gcc/cc1plus -quiet -nostdinc++ -v
-I/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include/i386-unknown-freebsd6.1
-I/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include
-I/home/emil/NOBACKUP/llvm/llvm-gcc4/libstdc++-v3/libsupc++ -iprefix
/home/emil/NOBACKUP/llvm/obj/gcc/../lib/gcc/i386-unknown-freebsd6.1/4.0.1/
-isystem /home/emil/NOBACKUP/llvm/obj/gcc/include -isystem
/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/include -isystem
/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/sys-include
/home/emil/NOBACKUP/llvm/llvm-gcc4/libstdc++-v3/include/stdc++.h -quiet
-dumpbase stdc++.h -auxbase stdc++ -g -g -O2 -O0 -Winvalid-pch -Wno-deprecated
-version -emit-llvm -o ouch.ll

(above completes successfully)

emil@hurtz:~/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include> ~/N
OBACKUP/llvm/llvm/Release/bin/bugpoint -run-llc ouch.ll
Read input file : 'ouch.ll'
*** All input ok
Found gcc: /usr/bin/gcc
Initializing execution environment: Running the code generator to test for a cra
sh:
Error running tool:
/home/emil/NOBACKUP/llvm/llvm/Release/bin/llc -o bugpoint-test-program.bc.llc.
s -f bugpoint-test-program.bc
*** Debugging code generator crash!

Checking to see if we can delete global inits:

  • Removing all global inits hides problem!

*** Attempting to reduce the number of functions in the testcase
Checking for crash with only these functions: GLOBAL__I__home_emil_NOBACKUP_ll
vm_llvm_gcc4_libstdc___v3_include_stdc
_.h_8D2A3925_54889815 GLOBAL__D__home_em
il_NOBACKUP_llvm_llvm_gcc4_libstdc___v3_include_stdc
_.h_8D2A3925_54889815 Z41
static_initialization_and_destruction_0ii
:
Checking for crash with only these functions: GLOBAL__D__home_emil_NOBACKUP_ll
vm_llvm_gcc4_libstdc___v3_include_stdc
.h_8D2A3925_54889815 _Z41__static_initia
lization_and_destruction_0ii
:
Checking for crash with only these functions: _Z41__static_initialization_and_d
estruction_0ii
:
Emitted bytecode to 'bugpoint-reduced-function.bc'

Checking for crash with only these blocks: entry cond_true cond_true3 cond_false
cond_next cond_false4 cond_next5 cond_true8 cond_true11 cond_false12... <14 tot
al>:

Checking for crash with only these blocks: cond_next5 cond_true8 cond_true11 ret
urn:

*** Attempting to reduce testcase by deleting instructions: Simplification Level
#​1

Checking instruction '__initialize_p_addr':

Checking instruction '__priority_addr':

Checking instruction 'alloca point':

Checking instruction '':

Checking instruction '':

Checking instruction '__initialize_p':

Checking instruction '':

*** Attempting to reduce testcase by deleting instructions: Simplification Level
#​0

*** Attempting to perform final cleanups:

Emitted bytecode to 'bugpoint-reduced-simplified.bc'

I will [try to] attach the produced files.

@lattner
Copy link
Collaborator

lattner commented Jul 19, 2006

jim this looks like a debug info crash. llc on the bugpoint-reduced-simplified.bc file crashes in
dwarfwriter. Can you take a look?

-Chris

@llvmbot
Copy link
Member Author

llvmbot commented Jul 19, 2006

Patch file.
Missing Darwin check in Intel ATT asm printer.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm:codegen
Projects
None yet
Development

No branches or pull requests

2 participants