[LLVMbugs] [Bug 20797] New: possible stack overflow and segmentation fault ?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 29 00:05:48 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20797

            Bug ID: 20797
           Summary: possible stack overflow and segmentation fault ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12949
  --> http://llvm.org/bugs/attachment.cgi?id=12949&action=edit
C source code

The attached code, on trunk 20140827, crashes

$ ~/llvm/results/bin/clang -O2 -c /tmp/q.i
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0 (trunk 216525)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: 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: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.
$ 

Here is some valgrind output

==5694== Stack overflow in thread 1: can't grow stack to 0xffe801ff8
==5694== Can't extend stack to 0xffe8010a8 during signal delivery for thread 1:
==5694==   no stack segment
==5694== 
==5694== Process terminating with default action of signal 11 (SIGSEGV)
==5694==  Access not within mapped region at address 0xFFE8010A8
==5694==    at 0x21CE685: llvm::ConstantExpr::getICmp(unsigned short,
llvm::Constant*, llvm::Constant*, bool) (in /home/dcb/llvm/results/bin/clang)
==5694==  If you believe this happened as a result of a stack
==5694==  overflow in your program's main thread (unlikely but
==5694==  possible), you can try to increase the size of the
==5694==  main thread stack using the --main-stacksize= flag.
==5694==  The main thread stack size used in this run was 8388608.
==5694== Stack overflow in thread 1: can't grow stack to 0xffe801f71

-- 
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/20140829/3ef7d8d0/attachment.html>


More information about the llvm-bugs mailing list