You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find that the fixed loop duration is insufficient. I needed to set it to 150 (see below). At 50 or less repetitions, ipython startup consistently dies within gdb.
--- /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/IPython/rlineimpl.py.orig 2011-05-09 18:52:30.000000000 -0400
+++ /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/IPython/rlineimpl.py 2011-05-09 18:42:42.000000000 -0400
@@ -37,7 +37,7 @@
# infinite loops with such code, so for now I'm taking a more conservative
# approach. See https://bugs.launchpad.net/ipython/+bug/411599.
#while True:
- for i in range(10):
+ for i in range(150):
try:
(status, result) = commands.getstatusoutput( "otool -L %s | grep libedit" % _rl.__file__ )
break
I tried to find a way to either re-open this defect or submit a new defect from launch pad, but it claims that it no longer knows how to submit ipython defects.
End Darrell's report
I'm wondering if the right approach shouldn't be to have an exponential backoff of the retries... It strikes me as ugly to rapid-fire 150 subcommands...
The text was updated successfully, but these errors were encountered:
minrk
added a commit
to minrk/ipython
that referenced
this issue
May 27, 2011
getstatusoutput uses os.popen, and is vulnerable to EINTR weirdness
in environments such as gdb or PyQt.
Exponential falloff is also used, to prevent waiting forever or firing requests too fast, though I haven't had it fire more than once
after moving to Popen.
closesipythongh-473
getstatusoutput uses os.popen, and is vulnerable to EINTR weirdness
in environments such as gdb or PyQt.
Exponential falloff is also used, to prevent waiting forever or firing requests too fast, though I haven't had it fire more than once
after moving to Popen.
closesipythongh-473
This is a continuation of an old bug:
https://bugs.launchpad.net/ipython/+bug/411599
Darrel Schiebel reports:
I find that the fixed loop duration is insufficient. I needed to set it to 150 (see below). At 50 or less repetitions, ipython startup consistently dies within gdb.
I tried to find a way to either re-open this defect or submit a new defect from launch pad, but it claims that it no longer knows how to submit ipython defects.
End Darrell's report
I'm wondering if the right approach shouldn't be to have an exponential backoff of the retries... It strikes me as ugly to rapid-fire 150 subcommands...
The text was updated successfully, but these errors were encountered: