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

LLVM frontend crashes when compiling a header file with implementation #1772

Closed
llvmbot opened this issue May 8, 2007 · 5 comments
Closed
Labels
bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented May 8, 2007

Bugzilla Link 1400
Resolution FIXED
Resolved on Mar 06, 2010 14:00
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

vjaaskel@kizarwexius:~/testdata/c/testi$ cat testi.h
int main() {
return 0;
}

vjaaskel@kizarwexius:~/testdata/c/testi$ llvm-gcc -emit-llvm testi.h
testi.h:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://llvm.org/bugs for instructions.

vjaaskel@kizarwexius:~/testdata/c/testi$ gcc testi.h

vjaaskel@kizarwexius:~/testdata/c/testi$ llvm-gcc --version
llvm-gcc (GCC) 4.0.1 LLVM (Apple Computer, Inc. build 5449)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@llvmbot
Copy link
Collaborator Author

llvmbot commented May 8, 2007

Veli-Pekka,

Could you please get a stack trace for this? You can do that by running:

llvm-gcc -v -emit-llvm testi.h

That will produce a command line that llvm-gcc runs (probably cc1) to do the
actual work. Simply run that command under a debugger with the options printed
out by llvm-gcc and when it fails (segmentation fault), get a stack trace
(probably the "where" command). Please post the stack trace here.

Thanks,

Reid.

@asl
Copy link
Collaborator

asl commented May 8, 2007

I cannot reproduce it here (mingw32, llvm-gcc 2.0cvs as of March). The result is
.gch file.

Veli-Pekka, have you used 1.9 sources/binaries or built llvm-gcc from svn?

@llvmbot
Copy link
Collaborator Author

llvmbot commented May 8, 2007

@asl
Copy link
Collaborator

asl commented May 18, 2007

Recent addendum of eraseLocalLLVMValues() breaks this again (However, release
branch is happy!)

@asl
Copy link
Collaborator

asl commented May 18, 2007

Sorry, eraseLocalLLVMValues() wasn't commited yet. It seems to be local problem
of mine and Duncan's tree :)

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
troelsbjerre pushed a commit to troelsbjerre/llvm-project that referenced this issue Jan 10, 2024
…71b610c349a1d502ba83af632ae98+2955a27abc25cd1b9d737c211c2cfe11e2a5de3e

🍒/bastille/b981924bdda71b610c349a1d502ba83af632ae98+2955a27abc25cd1b9d737c211c2cfe11e2a5de3e
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
Projects
None yet
Development

No branches or pull requests

2 participants