[LLVMbugs] [Bug 6975] New: Crash in boost::lexical_cast test

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 29 10:06:36 PDT 2010


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

           Summary: Crash in boost::lexical_cast test
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=4770)
 --> (http://llvm.org/bugs/attachment.cgi?id=4770)
Reduced testcase from lexical_cast

The attached file is from a reduced test case from boost::lexical_cast. The
code compiles correctly in g++ 4.4.



/home/caj/Dropbox/lex_test.cpp:49:1: warning: control may reach end of non-void
function [-Wreturn-type]
}
^
/home/caj/Dropbox/lex_test.cpp:37:2: warning: control reaches end of non-void
function [-Wreturn-type]                                                        
        }
        ^
/home/caj/Dropbox/lex_test.cpp:44:3: note: in instantiation of function
template specialization 'boost::lexical_cast<int, char const [1]>' requested
here                                                                            
                lexical_cast<int>("");
                ^
/home/caj/Dropbox/lex_test.cpp:31:3: warning: control reaches end of non-void
function [-Wreturn-type]                                                        
                }
                ^
/home/caj/Dropbox/lex_test.cpp:36:11: note: in instantiation of function
template specialization 'boost::detail::lexical_cast<int>' requested here       
                detail::lexical_cast( buf);
                        ^
/home/caj/Dropbox/lex_test.cpp:44:3: note: in instantiation of function
template specialization 'boost::lexical_cast<int, char const [1]>' requested
here                                                                            
                lexical_cast<int>("");
                ^
0  clang           0x00000000014995da                                           
1  clang           0x00000000014994c1
2  libpthread.so.0 0x00007f2d289068f0
3  clang           0x00000000005bdb66
4  clang           0x00000000005bd428
5  clang           0x00000000005bd010
6  clang           0x00000000005bd075
7  clang           0x00000000005c4c6a
8  clang           0x00000000005bc60b
9  clang           0x00000000005b99c3
10 clang           0x00000000005b98be
11 clang           0x0000000000642935
12 clang           0x0000000000640f46
13 clang           0x0000000000640af4
14 clang           0x0000000000641166
15 clang           0x0000000000640f23
16 clang           0x0000000000640af4
17 clang           0x000000000066c60b
18 clang           0x000000000066cc7d
19 clang           0x000000000056e42d
20 clang           0x000000000056c3d0
21 clang           0x000000000056b694
22 clang           0x0000000000569cac
23 clang           0x0000000000568a29
24 clang           0x000000000041aad1
25 clang           0x000000000068fe06
26 clang           0x000000000043705c
27 clang           0x0000000000436cc7
28 clang           0x00000000004212eb
29 clang           0x0000000000409172
30 clang           0x000000000040dce2 main + 259
31 libc.so.6       0x00007f2d27be1c4d __libc_start_main + 253
32 clang           0x0000000000407b49
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name lex_test.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.5
-ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 251
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-OQCr02.s -x c++ /home/caj/Dropbox/lex_test.cpp 
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      /home/caj/Dropbox/lex_test.cpp:20:43: Generating code for declaration
'boost::detail::lexical_stream_limited_src<int>::operator>>'
4.      /home/caj/Dropbox/lex_test.cpp:21:4: LLVM IR generation of compound
statement ('{}')
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list