[IPython-user] Re: IPython Crash Report

Fernando Perez Fernando.Perez at colorado.edu
Tue Nov 9 11:12:06 CST 2004


Hi,

thanks for tracking this down.  I'm glad you found a solution, I'm posting
your message to the IPython list in case someone in the future has a similar
problem.  This way google can archive it an they can hopefully find the solution.

For those curious (and google archiving), the problem was a crash of ipython
under cygwin when ? (or any other info function which required paging) was
typed.  The solution turned out to be to 'rebase' cygwin (I don't know what
that means).  Still, ipython 0.6.4 added some hardening code to shield itself
from this problem.

Regards,

f.


樅木 敦 wrote:
> I get a reason this problem.this is cygwin 'fork' problem.
> 
> I try to custom logging to "IPython/genutils.py"
> 
>    1058             except IOError,msg:  # broken pipe when user quits
>    1059                 if msg.args == (32,'Broken pipe'):
>    1060                     retval = None
>    1061                 else:
>    1062                     retval = 1
>    1063             except OSError,msg:
>    1064                 """ this is custom code.
>    1065                 f = open('ipython.log',"a")
>    1066                 f.write(`msg` + "\n")
>    1067                 f.write(`msg.args`+ "\n")
>    1068                 f.write(`msg.errno`+ "\n")
>    1069                 f.write(`msg.strerror`+ "\n")
>    1070                 f.close()"""
>    1071                 # Other strange problems, sometimes seen in Win2k/cygwin
>    1072                 retval = 1
> 
> 
>><exceptions.OSError instance at 0xa27728c><exceptions.OSError instance at 0xa277
> 
> 2ac>
> 
>>(11, 'Resource temporarily unavailable')
>>11
>>'Resource temporarily unavailable'
> 
> 
> and i try this ipython shell.
> 
>>In [11]: os.popen("less -r /etc/hosts")
>>H:\cygwin\bin\python2.3.exe (9748): *** unable to remap H:\cygwin\bin\cygcrypto
>>0.9.7.dll to same address as parent(0xC10000) != 0x1050000
>>H:\cygwin\bin\python2.3.exe (9748): *** unable to remap H:\cygwin\bin\cygcrypto
>>0.9.7.dll to same address as parent(0xC10000) != 0x1050000
>>325432407 [main] python2.3 9632 sync_with_child: child 9748(0x198) died before
>>nitialization with status code 0x1
>>325436867 [main] python2.3 9632 sync_with_child: *** child state child loading
>>lls
>>---------------------------------------------------------------------------
>>OSError                                   Traceback (most recent call last)
> 
> 
> to fix cygwin fork problem, run cygwin command "rebaseall" ,
> more detail, read this URL document.
> 
> http://www.tishler.net/jason/software/rebase/rebase-2.3.README
> 
> 
> ----------------
> and report your fix after,
> when fail fork('less -r'), 
> may be genutils.page_dumb() ??  "more" like pager work, no problem.
> Tanks for your help.
> 
> 
> On Sun, 07 Nov 2004 13:25:52 -0700
> Fernando.Perez at colorado.edu wrote:
> 
> 
>>樅木 敦 wrote:
>>
>>>in Windows2000 cygwin Environments,
>>>type "?" will make crash.
>>>
>>
>>Thanks for your report.  While I'm not exactly sure what the problem is, since
>>I've never seen it under linux and no other windows user has reported it,
>>based on the crash dump I added a special exception trap to try and fix
>>things.  Once ipython 0.6.4 is out (tomorrow), please give it a test and let
>>me know if it's fixed.  If it isn't, I'll need a lot more details about your
>>configuration to track it down; keep in mind that I don't have any access to
>>any computer running windows, so it's very difficult for me do debug
>>windows-specific problems.
>>
>>Regards,
>>
>>f




More information about the IPython-user mailing list