public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/66624] New: libstdc++ iostream uninitialized data
@ 2015-06-22  9:02 doko at gcc dot gnu.org
  2015-06-22  9:04 ` [Bug libstdc++/66624] " doko at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: doko at gcc dot gnu.org @ 2015-06-22  9:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66624

            Bug ID: 66624
           Summary: libstdc++ iostream uninitialized data
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

[forwarded from https://bugs.debian.org/789369]

richard@deodand:~/junk$ cat t.cc
#include <iostream>

int main() {
  std::cout << std::hex;
  return 0;
}
richard@deodand:~/junk$ clang++-3.6 -fsanitize=undefined -O0
-fno-optimize-sibling-calls -fno-omit-frame-pointer -g -o t t.cc
richard@deodand:~/junk$ ./t
/usr/bin/../lib/gcc/i586-linux-gnu/5.1.1/../../../../include/c++/5.1.1/bits/ios_base.h:102:24:
runtime error: load of value 4294967221, which is not a valid value for
type 'std::_Ios_Fmtflags'
/usr/bin/../lib/gcc/i586-linux-gnu/5.1.1/../../../../include/c++/5.1.1/bits/ios_base.h:82:67:
runtime error: load of value 4294967221, which is not a valid value for
type 'std::_Ios_Fmtflags'

As far as I can see the problem here is that ios_base::_M_flags is never
initialized.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-09-18 14:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22  9:02 [Bug libstdc++/66624] New: libstdc++ iostream uninitialized data doko at gcc dot gnu.org
2015-06-22  9:04 ` [Bug libstdc++/66624] " doko at gcc dot gnu.org
2015-06-22 11:53 ` redi at gcc dot gnu.org
2015-06-30 20:38 ` richard+gcc at sfere dot greenend.org.uk
2015-07-01 10:17 ` redi at gcc dot gnu.org
2015-09-01 21:19 ` rs2740 at gmail dot com
2015-09-18 14:13 ` trippels at gcc dot gnu.org
2015-09-18 14:15 ` trippels at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).