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

LCSSA code crash on unreachable block. #1349

Closed
llvmbot opened this issue Oct 31, 2006 · 5 comments
Closed

LCSSA code crash on unreachable block. #1349

llvmbot opened this issue Oct 31, 2006 · 5 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Oct 31, 2006

Bugzilla Link 977
Resolution FIXED
Resolved on Feb 22, 2010 12:48
Version trunk
OS All
Attachments Test case reduced from net/network.o from Linux 2.4.22
Reporter LLVM Bugzilla Contributor

Extended Description

When run on the attached test case, the opt tool crases from a SEGFAULT.
Initial investigation shows that LCSSA::GetValueForBlock is being passed a NULL
pointer for the BB operand and attempts to dereference it.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Oct 31, 2006

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Oct 31, 2006

Fixed, patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061030/039276.html

Testcase here:
Transforms/LCSSA/2006-10-31-UnreachableBlock.ll

Thanks,

-Chris

@llvmbot
Copy link
Collaborator Author

llvmbot commented Oct 31, 2006

New testcase for similar problem
This is another testcase from the Linux 2.4.22 kernel (drivers/char/char.o).

@llvmbot
Copy link
Collaborator Author

llvmbot commented Oct 31, 2006

Chris,

I believe the new testcase is another form of the same bug.

@lattner
Copy link
Collaborator

lattner commented Oct 31, 2006

Fixed. Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061030/039278.html

Testcase here:
Transforms/LCSSA/2006-10-31-UnreachableBlock-2.ll

-Chris

@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
Projects
None yet
Development

No branches or pull requests

2 participants