[llvm-bugs] [Bug 28007] New: Segmentation fault in clang::TypoCorrectionConsumer::getNextCorrection()

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 5 06:40:01 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28007

            Bug ID: 28007
           Summary: Segmentation fault in
                    clang::TypoCorrectionConsumer::getNextCorrection()
           Product: clang
           Version: trunk
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: blochberger.max+llvm at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16475
  --> https://llvm.org/bugs/attachment.cgi?id=16475&action=edit
Backtrace

I used fuzzy C-code generated by an RNN from [1] and ran clang to check the
syntax of the generated file.

I tried it with clang from git, current master branch:

  $ clang --version
  clang version 3.9.0 (http://llvm.org/git/clang.git
8a5b8a50d58ea9a3c55315304e7d12be587467f0) (http://llvm.org/git/llvm.git
3789c0fe24475b95ced3cb8206724dd9532ef2ca)
  Target: x86_64-apple-darwin15.5.0
  Thread model: posix
  InstalledDir: /usr/local/bin

Here is the command I ran and the error message generated by clang, other
results omitted:

  $ clang -fsyntax-only -ferror-limit=0 rnn-linux02.c
  [...]
  Stack dump:
  0.    Program arguments: /usr/local/bin/clang-3.9 -cc1 -triple
x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -fsyntax-only -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name rnn-linux02.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version
264.3.102 -dwarf-column-info -debugger-tuning=lldb -resource-dir
/usr/local/bin/../lib/clang/3.9.0 -fdebug-compilation-dir
/private/var/folders/24/3jtybqq573n5mzdk2c1p4mmm0000gn/T -ferror-limit 0
-fmessage-length 204 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.11.0
-fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option
-fcolor-diagnostics -x c rnn-linux02.c 
  1.    rnn-linux02.c:40:19: current parser token ')'
  2.    rnn-linux02.c:30:1: parsing function body 'do_command'
  3.    rnn-linux02.c:30:1: in compound statement ('{}')
  4.    rnn-linux02.c:36:28: in compound statement ('{}')
  clang-3.9: error: unable to execute command: Segmentation fault: 11
  clang-3.9: error: clang frontend command failed due to signal (use -v to see
invocation)
  clang version 3.9.0 (http://llvm.org/git/clang.git
8a5b8a50d58ea9a3c55315304e7d12be587467f0) (http://llvm.org/git/llvm.git
3789c0fe24475b95ced3cb8206724dd9532ef2ca)
  Target: x86_64-apple-darwin15.5.0
  Thread model: posix
  InstalledDir: /usr/local/bin
  clang-3.9: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
  clang-3.9: note: diagnostic msg: 
  ********************

  PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
  Preprocessed source(s) and associated run script(s) are located at:
  clang-3.9: note: diagnostic msg:
/var/folders/24/3jtybqq573n5mzdk2c1p4mmm0000gn/T/rnn-linux02-8f0dfd.c
  clang-3.9: note: diagnostic msg:
/var/folders/24/3jtybqq573n5mzdk2c1p4mmm0000gn/T/rnn-linux02-8f0dfd.sh
  clang-3.9: note: diagnostic msg: 

  ********************


[1] https://karpathy.github.io/2015/05/21/rnn-effectiveness/

-- 
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/20160605/d3b89f23/attachment.html>


More information about the llvm-bugs mailing list