This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]