This is the mail archive of the mailing list for the Cygwin 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]

Re: std::ofstream causes segfault in 1.5.x

On Sun, Oct 12, 2003 at 09:02:58PM +0200, thomas wrote:
>>> >>    28 7293919 [main] cdrdao 1576 mmap64: addr 0, len 1065811968, prot 3, flags 22, fd -1, off 0
>>>>Can you tell me why the process tries to mmap 1065811968 bytes ==
>>>>~1Gig?  That won't work, nor would it under 1.3.22 on the same machine.
>>>>The cause for this is outside of the strace and very likely outside of
>>>>mmap itself.
>>>Hmmm that is certainly most interesting.  It's just opening a simple
>>>file to write ~10 lines to it.  The exact same source code compiled in
>>>a 1.3.18 environment works perfectly.
>>The 1.3.22 environment wouldn't be using a different gcc version by any
>Actually no, they are both "gcc version 2.95.3-10 (cygwin special)".
>However that gave me the idea to build the same source with "gcc
>version 3.3.1 (cygming special)" on 1.5.5 now, and it works flawlessly!
>No sight of mmap64 in the strace output either.

Well, that was adequate motivation to get me to finally remove the gcc2

Looks like the standard answer of using
was the right one in this case.  I apologize to Corinna for dragging her
into this.


Unsubscribe info:
Problem reports:

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