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 867 - opt crash - Illegal Instruction
Summary: opt crash - Illegal Instruction
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Scalar Optimizations (show other bugs)
Version: trunk
Hardware: Macintosh MacOS X
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
: 868 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-03 16:17 PDT by Devang Patel
Modified: 2010-02-22 12:51 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
test case (1.63 KB, application/octet-stream)
2006-08-03 16:18 PDT, Devang Patel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Devang Patel 2006-08-03 16:17:18 PDT
Bugpoint produced this while trying to reduce test case for


Program received signal EXC_BAD_ACCESS, Could not access memory. 
Reason: KERN_PROTECTION_FAILURE at address: 0x00000010
0x035ce798 in llvm::isInstructionTriviallyDead (I=0xcb0e0e0) at Local.cpp:328 
328       if (!I->mayWriteToMemory()) return true;

I am not sure this smaller test cause produces same crash or not. But in any case it causes  Illegal 
Instruction

$ opt lgc.bc -load-vn -gcse -simplifycfg
Comment 1 Devang Patel 2006-08-03 16:18:23 PDT
Created attachment 375 [details]
test case
Comment 2 Chris Lattner 2006-08-03 16:20:35 PDT
verified, I'll take a look

Comment 3 Chris Lattner 2006-08-03 17:01:03 PDT
Fixed.  Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060731/036482.html

Testcase here:
Transforms/SimplifyCFG/2006-08-03-Crash.ll

-Chris
Comment 4 Chris Lattner 2006-08-03 17:01:40 PDT
*** Bug 868 has been marked as a duplicate of this bug. ***