I have changed the setting for both rlim_cur and rlim_max from 300 to
30000
curious though is that the following section of code seems to set it to
40000000 and then over write it to 300 

Jason



#if defined( __CYGWIN__ ) || defined( __CYGWIN32__ ) ||
defined( _MSC_VER )
    // the next bit crashes Cygwin for me - DCL
    // MSVC does not have the function or variable type defined - BRF
#else
    // set mem allocation limit.  Reason: occasionally the triangle()
    // routine can blow up and allocate memory forever.  We'd like
    // this process to die before things get out of hand so we can try
    // again with a smaller interior angle limit.
    int result;
    struct rlimit limit;
    limit.rlim_cur = 40000000;
    limit.rlim_max = 40000000;

#if 0
    result = setrlimit( RLIMIT_DATA, &limit );
    cout << "result of setting mem limit = " << result << endl;
    result = setrlimit( RLIMIT_STACK, &limit );
    cout << "result of setting mem limit = " << result << endl;
    result = setrlimit( RLIMIT_CORE, &limit );
    cout << "result of setting mem limit = " << result << endl;
    result = setrlimit( RLIMIT_RSS, &limit );
    cout << "result of setting mem limit = " << result << endl;
#endif

    // cpu time limit since occassionally the triangulator can go into
    // an infinite loop.
    limit.rlim_cur = 300;      // seconds
    limit.rlim_max = 300;      // seconds
    result = setrlimit( RLIMIT_CPU, &limit );
    cout << "result of setting mem limit = " << result << endl;
#endif  // end of stuff that crashes Cygwin











On Sat, 2009-11-14 at 09:57 +1100, Jason Cox wrote:
> you were right exit code 137
> I will check the file as suggested
> 
> On Fri, 2009-11-13 at 22:38 +0000, Martin Spott wrote:
> > Jason Cox wrote:
> > > Ok, so a quick scan for the exit code found nothing...
> > 
> > Ah, that's what I meant:
> > 
> >   # ~> fgfs-construct [...  parameters ...]
> >   [...]
> >   Killed
> >   # ~> echo $?
> > 
> > > where abouts can I change the time out as I have be searching for a few
> > > days
> > 
> > Mostly from memory I'd propose to search the file
> > 'src/BuildTiles/Main/main.cxx' for occurrences of "limit.rlim",
> > 
> >     Martin.
> 
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to