[LLVMbugs] [Bug 17600] Illegal instruction on <regex> in libstdc++ trunk

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 16 12:40:57 PDT 2013


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This is a bug in libstdc++. -fsanitize=undefined reports this:

/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0/bits/regex.tcc:589:25:
runtime error: load of value 248, which is not a valid value for type 'bool'
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0/bits/regex.h:2615:7:
runtime error: execution reached the end of a value-returning function without
returning a value

Both of these are undefined behavior, the second is why we emit an ud2
instruction: regex_token_iterator::operator= is missing its 'return *this;'.

-- 
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/20131016/8748b85c/attachment.html>


More information about the llvm-bugs mailing list