Boost logo

Boost :

From: Frank Birbacher (bloodymir.crap_at_[hidden])
Date: 2007-09-04 10:41:21


Hi!

Frank Birbacher schrieb:
> I based the test on "Standard C++ IOStreams and Locales" (Langer&Kreft),
> Section 1.3 "The Stream State". And I found the IOStreams library is
> just using std::iostream for handling the errors. So is MSVC buggy in
> this regard? Or am I missing something?
>
> Source of test case in Trac SVN Browser:
> http://svn.boost.org/trac/boost/browser/sandbox-branches/birbacher/fix_iostreams/libs/iostreams/test/error_test.cpp?rev=39047

I just tried to run the same test with STLport 5.1.3 and MSVC8Express,
and unfortenuately I get the same errors and a couple of memory leaks.

What's wrong here???

Running 12 test cases...
error_test.cpp(81): error in "wrap_nothrow <&test_seekg>": exception
thrown by function(stream)
error_test.cpp(66): error in "wrap_nothrow <&test_seekg>": stream still
good
error_test.cpp(68): error in "wrap_nothrow <&test_seekg>": stream did
not set badbit
error_test.cpp(69): error in "wrap_nothrow <&test_seekg>": stream did
not fail
error_test.cpp(71): error in "wrap_nothrow <&test_seekg>": stream does
not report failure by operator !
error_test.cpp(73): error in "wrap_nothrow <&test_seekg>": stream does
not report failure by operator void*
error_test.cpp(66): error in "wrap_throw <&test_seekg>": stream still good
error_test.cpp(68): error in "wrap_throw <&test_seekg>": stream did not
set badbit
error_test.cpp(69): error in "wrap_throw <&test_seekg>": stream did not
fail
error_test.cpp(71): error in "wrap_throw <&test_seekg>": stream does not
report failure by operator !
error_test.cpp(73): error in "wrap_throw <&test_seekg>": stream does not
report failure by operator void*
error_test.cpp(103): error in "wrap_throw_delayed<&test_seekg>":
exception thrown by function(stream)
error_test.cpp(107): error in "wrap_throw_delayed<&test_seekg>":
exception ios::failure is expected
error_test.cpp(66): error in "wrap_throw_delayed<&test_seekg>": stream
still good
error_test.cpp(68): error in "wrap_throw_delayed<&test_seekg>": stream
did not set badbit
error_test.cpp(69): error in "wrap_throw_delayed<&test_seekg>": stream
did not fail
error_test.cpp(71): error in "wrap_throw_delayed<&test_seekg>": stream
does not report failure by operator !
error_test.cpp(73): error in "wrap_throw_delayed<&test_seekg>": stream
does not report failure by operator void*
error_test.cpp(81): error in "wrap_nothrow <&test_seekp>": exception
thrown by function(stream)
error_test.cpp(66): error in "wrap_nothrow <&test_seekp>": stream still
good
error_test.cpp(68): error in "wrap_nothrow <&test_seekp>": stream did
not set badbit
error_test.cpp(69): error in "wrap_nothrow <&test_seekp>": stream did
not fail
error_test.cpp(71): error in "wrap_nothrow <&test_seekp>": stream does
not report failure by operator !
error_test.cpp(73): error in "wrap_nothrow <&test_seekp>": stream does
not report failure by operator void*
error_test.cpp(66): error in "wrap_throw <&test_seekp>": stream still good
error_test.cpp(68): error in "wrap_throw <&test_seekp>": stream did not
set badbit
error_test.cpp(69): error in "wrap_throw <&test_seekp>": stream did not
fail
error_test.cpp(71): error in "wrap_throw <&test_seekp>": stream does not
report failure by operator !
error_test.cpp(73): error in "wrap_throw <&test_seekp>": stream does not
report failure by operator void*
error_test.cpp(103): error in "wrap_throw_delayed<&test_seekp>":
exception thrown by function(stream)
error_test.cpp(107): error in "wrap_throw_delayed<&test_seekp>":
exception ios::failure is expected
error_test.cpp(66): error in "wrap_throw_delayed<&test_seekp>": stream
still good
error_test.cpp(68): error in "wrap_throw_delayed<&test_seekp>": stream
did not set badbit
error_test.cpp(69): error in "wrap_throw_delayed<&test_seekp>": stream
did not fail
error_test.cpp(71): error in "wrap_throw_delayed<&test_seekp>": stream
does not report failure by operator !
error_test.cpp(73): error in "wrap_throw_delayed<&test_seekp>": stream
does not report failure by operator void*

*** 36 failures detected in test suite "Master Test Suite"
Detected memory leaks!
Dumping objects ->
{212} normal block at 0x0036ABF0, 2816 bytes long.
 Data: < 6 6 > 18 B0 36 00 18 B0 36 00 00 00 00 00 00 00 00 00
{159} normal block at 0x00367C18, 4152 bytes long.
 Data: <8 6 B B > 38 83 36 00 93 C3 42 00 00 00 00 00 88 C3 42 00
{158} normal block at 0x00367868, 896 bytes long.
 Data: < y6 B $ B / B > 88 79 36 00 F4 C0 42 00 24 C3 42 00 2F C3 42 00
{152} normal block at 0x00367148, 848 bytes long.
 Data: < n6 > 08 6E 36 00 CD CD CD CD CD CD CD CD CD CD CD CD
{144} normal block at 0x00366B78, 792 bytes long.
 Data: < l6 > A8 6C 36 00 CD CD CD CD CD CD CD CD CD CD CD CD
{142} normal block at 0x00366608, 752 bytes long.
 Data: <8g6 > 38 67 36 00 CD CD CD CD CD CD CD CD CD CD CD CD
{128} normal block at 0x00365DF8, 704 bytes long.
 Data: <(_6 > 28 5F 36 00 CD CD CD CD CD CD CD CD CD CD CD CD
{126} normal block at 0x003658E0, 664 bytes long.
 Data: < Z6 day > 10 5A 36 00 64 61 79 00 CD CD CD CD CD CD CD CD
{111} normal block at 0x00365180, 320 bytes long.
 Data: < R6 > 18 52 36 00 CD CD CD CD 00 00 00 00 CD CD CD CD
Object dump complete.

EXIT STATUS: 201

What's wrong here???

Frank


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk