<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - opt segmentation fault x86 Linux kernel file"
   href="http://llvm.org/bugs/show_bug.cgi?id=17251">17251</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>opt segmentation fault x86 Linux kernel file
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>marceloabsousa@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11204" name="attach_11204" title="Bytecode file">attachment 11204</a> <a href="attachment.cgi?id=11204&action=edit" title="Bytecode file">[details]</a></span>
Bytecode file

With:
LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):
  LLVM version 3.4svn
  DEBUG build.
  Built Sep 14 2013 (21:22:42).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: corei7-avx

clang version 3.4 (trunk 190758)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Running the optimizer with instnamer and lowerswitch seg faults. This file is
part of the Linux kernel (drivers/w1/w1_family.c). I'm able to run llvm-dis on
it for inspection. Any of the passes independently result in seg fault. The .bc
goes in attach.

0  opt             0x00000000018a5a15 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  opt             0x00000000018a5c9c
2  opt             0x00000000018a56e0
3  libpthread.so.0 0x00002aaaab311030
4  opt             0x0000000000952a07
5  opt             0x00000000016c6c70
llvm::DebugInfoFinder::processType(llvm::DIType) + 110
6  opt             0x00000000016c716b
llvm::DebugInfoFinder::processSubprogram(llvm::DISubprogram) + 111
7  opt             0x00000000016c68ce
llvm::DebugInfoFinder::processModule(llvm::Module const&) + 632
8  opt             0x000000000179ba65
9  opt             0x000000000177da3c
llvm::FPPassManager::doInitialization(llvm::Module&) + 68
10 opt             0x000000000177dbdc
llvm::MPPassManager::runOnModule(llvm::Module&) + 240
11 opt             0x000000000177e269 llvm::PassManagerImpl::run(llvm::Module&)
+ 249
12 opt             0x000000000177e47b llvm::PassManager::run(llvm::Module&) +
39
13 opt             0x000000000094a50f main + 5564
14 libc.so.6       0x00002aaaabef2ead __libc_start_main + 253
15 opt             0x000000000093cd99
Stack dump:
0.      Program arguments: opt -instnamer -lowerswitch
Segmentation fault
make: *** [drivers/w1/w1_family.o.bc] Error 139</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>