libstdc++/8486: file i/o using c++ iostream crashes when option malign-double is used

colin@apcinc.com colin@apcinc.com
Wed Nov 6 14:36:00 GMT 2002


>Number:         8486
>Category:       libstdc++
>Synopsis:       file i/o using c++ iostream crashes when option malign-double is used
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 06 14:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Colin Wyatt
>Release:        gcc-2.95
>Organization:
>Environment:
SUSE linux 8.0
>Description:
When using the gcc compiler option "-malign-double", 
file i/o operations using libc++ (specifically, fstream.write() and close() methods) cause core dumps.
These operations work fine when this flag is removed.

>How-To-Repeat:
Create a test file that opens a new file, writes, reads,
then close the file.
Compile with and without the -malign-double flag to see 
the difference in execution.
>Fix:
???
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list