Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: eaa5638e193117eda622fe96d7a6d3f7fba5521e
Ticket: 1850424fffffffffffffffffffffffffffffffff
core dump on FreeBSD stack overflow
User & Date: msofer on 2007-12-20 22:47:00
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    Originator: NO
    
    It seems like there is a bug in getrlimit:
    [miguel@jupiter ~/tcl8.5.0/unix]$ ulimit -s
    1048576
    [miguel@jupiter ~/tcl8.5.0/unix]$ ./tclsh
    rawStackSize from TclpThreadGetStackSize is 0
    rawStackSize from getrlimit is 1073741824
    stackSize from GetStackSize is 1073709056
    
    Note tht the 0 from TclpThreadGetStackSize is "correct" - bug workaround for 1815573. But this is what is killing this system - setting 'initialized=1' in TclpThreadGetStackSize (ie, relying on pthread_attr_getstacksize also for the initial thread) fixes things.
    
    So the issue now seems to be that we have conflicting bugs in linux and freebsd for determining the size of the initial thread's stack: on linux pthread_attr_getstacksize returns garbage, on freebsd getrlimit does.
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"