delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/12/13:18:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 12 Oct 2003 18:50:52 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: Cygwin AT cygwin DOT com
Subject: Re: std::ofstream causes segfault in 1.5.x
Message-ID: <20031012165052.GD14344@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Cygwin AT cygwin DOT com
References: <9525451343 DOT 20031010223436 AT huno DOT net> <20031012083402 DOT GB10908 AT cygbert DOT vinschen DOT de> <1041647656 DOT 20031012170712 AT huno DOT net> <446671156 DOT 20031012183055 AT huno DOT net>
Mime-Version: 1.0
In-Reply-To: <446671156.20031012183055@huno.net>
User-Agent: Mutt/1.4.1i

On Sun, Oct 12, 2003 at 06:30:55PM +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. I'm gonna debug it some more and see if i can
> > find what makes the difference.
> 
> Ok replying to myself here. Except for some changed function names there is
> little difference between the the two strace outputs. The only difference
> appears to be that the 1.3.18 one doesn't seem to call mmap at all. Maybe
> someone can take a minute and see if he/she spots a crucial difference and
> can point me in some direction. I removed some probably irrelevant parts
> like symlink_info and path convert from the strace output.

If you can send a very brief testcase to this list, which builds and
shows the error OOTB, I'll look into it.

Btw., did you try to debug this beyond looking into the strace?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019