[LLVMbugs] [Bug 15570] New: clang crashes while compiling a specific file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 22 10:30:18 PDT 2013


            Bug ID: 15570
           Summary: clang crashes while compiling a specific file
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: avg at FreeBSD.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang crashes while compiling a particular version of a particular file in
FreeBSD kernel source code.
Please see the attached file.
By looking at the resent changes to the file I've been able to determine that
the crash can be avoided if the following snippet in the code is commented out:
for (; rootrefs > 0; rootrefs--)
Perhaps this can give you some ideas as the complete file is rather large.

clang diagnostics:
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module
4.      Running pass 'Loop Pass Manager' on function '@zfs_umount'
5.      Running pass 'Unroll loops' on basic block '%for.body'
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see
FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
Target: x86_64-unknown-freebsd10.0
Thread model: posix
cc: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/
and include the crash backtrace, preprocessed source, and associated run
cc: note: diagnostic msg: 

Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/zfs_vfsops-qeQkFI.c
cc: note: diagnostic msg: /tmp/zfs_vfsops-qeQkFI.sh

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130322/99bd7c03/attachment.html>

More information about the llvm-bugs mailing list