[Patches] [ python-Patches-580869 ] Fix for seg fault on test_re on mac osx

noreply@sourceforge.net noreply@sourceforge.net
Fri, 12 Jul 2002 20:15:12 -0700


Patches item #580869, was opened at 2002-07-12 23:15
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=580869&group_id=5470

Category: Tests
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Steven D. Majewski (sdm7g)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix for seg fault on test_re on mac osx

Initial Comment:


    import resource
    soft, hard = resource.getrlimit(
resource.RLIMIT_STACK )
    resource.setrlimit( resource.RLIMIT_STACK, (1024 *
2048, hard))


is the python equivalent of the tcsh 'limit stack 2048'
and will
keep python from seg faulting on test_re . 

( maybe wrapped in a "if os.platform == 'darwin' : "  -- 
  are there any other systems that have this problem ? ) 

-- Steve Majewski


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=580869&group_id=5470