Op 4 jun. 2012 23:06 schreef "Deniz Sarikaya" <daiml...@googlemail.com> het
volgende:
>
> Hello,
>
> I don't know why, but this scenario crashes for me with gcc 4.7.0
> rubenvb on Windows 8 x64:

What Windows 8 version. Developer Preview? Consumer Preview? Release
Preview?


> "#include <fstream>
> struct Testfile
> {
> std::fstream t;
> }

You're missing a semicolon here.

> int main()
> {
> Testfile t;
> }"
>
> backtrace:
>
> #0 6FCB8F96 ?? () (??:??)
> #1 004013ED __tmainCRTStartup()
>
(/home/ruben/mingw-w64/toolchain/src/mingw-w64/tags/v2.0.3/mingw-w64-crt/crt/crtexe.c:307)
> #2 75C0DE7D ?? () (??:??)
> #3 77AE4B54 ?? () (??:??)
> #4 77AE4B27 ?? () (??:??)
> #5 ?? ?? () (??:??)
>
> When using "Step Into" with GDB 7.4.1 till it crashes, it stops here:
> <fstream>
> basic_fstream()
> : __iostream_type(), _M_filebuf()
> { this->init(&_M_filebuf); }

On what line does it crash? What's the value of "this"?

What compiler options did you use? It seems some debug info is missing. Try
adding "-g3" and make sure no "-s" is passed when linking.

Ruben

>
> Thanks,
>
>
------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to