Skip to content
This repository

ipython intermittently segfaults when figure is closed (Mac OS X) #624

Closed
kghose opened this Issue July 24, 2011 · 4 comments

3 participants

Kaushik Ghose Min RK Daehyok Shin
Kaushik Ghose
kghose commented July 24, 2011

Problem

ipython will exit with segfault after I close a figure. Problem is intermittent - have not found a way to deterministically cause the crash.

Specs

Mac OS X 10.5.8
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
IPython 0.11.dev
matplotlib.version = 1.0.1

Error

objc[56139]: FREED(id): message removeFromSuperviewWithoutNeedingDisplay sent to freed object=0x19b37470

Mac OS Trace

Date/Time: 2011-07-15 21:47:54.500 -0400
OS Version: Mac OS X 10.5.8 (9L30)
Report Version: 6
Anonymous UUID: 655916BF-D521-48C5-B8A3-FBC5E5FA6683

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Crashed Thread: 0

Application Specific Information:
objc[56139]: FREED(id): message removeFromSuperviewWithoutNeedingDisplay sent to freed object=0x19b37470

Thread 0 Crashed:
0 libobjc.A.dylib 0x90595bfa _objc_error + 116
1 libobjc.A.dylib 0x90595c30 __objc_error + 52
2 libobjc.A.dylib 0x90594637 _freedHandler + 58
3 com.apple.CoreFoundation 0x93faa676 CFArrayApplyFunction + 198
4 com.apple.AppKit 0x91a0aadc -[NSView _finalizeWithReferenceCounting] + 712
5 com.apple.AppKit 0x91a0a7e8 -[NSView dealloc] + 46
6 com.apple.Foundation 0x9524e68f NSPopAutoreleasePool + 1007
7 _macosx.so 0x02932580 wait_for_stdin + 561 (_macosx.m:171)
8 readline.so 0x0133bac0 call_readline + 432
9 org.python.python 0x001e04de PyOS_Readline + 254
10 org.python.python 0x0028dbfc builtin_raw_input + 412
11 org.python.python 0x00296165 PyEval_EvalFrameEx + 19429
12 org.python.python 0x002982dd PyEval_EvalCodeEx + 2109
13 org.python.python 0x0029634c PyEval_EvalFrameEx + 19916
14 org.python.python 0x002982dd PyEval_EvalCodeEx + 2109
15 org.python.python 0x0029634c PyEval_EvalFrameEx + 19916
16 org.python.python 0x002982dd PyEval_EvalCodeEx + 2109
17 org.python.python 0x0029634c PyEval_EvalFrameEx + 19916
18 org.python.python 0x002982dd PyEval_EvalCodeEx + 2109
19 org.python.python 0x0029634c PyEval_EvalFrameEx + 19916
20 org.python.python 0x002982dd PyEval_EvalCodeEx + 2109
21 org.python.python 0x0029634c PyEval_EvalFrameEx + 19916
22 org.python.python 0x002982dd PyEval_EvalCodeEx + 2109
23 org.python.python 0x002983f7 PyEval_EvalCode + 87
24 org.python.python 0x002bcf08 PyRun_FileExFlags + 168
25 org.python.python 0x002bddf3 PyRun_SimpleFileExFlags + 867
26 org.python.python 0x002cf902 Py_Main + 3122
27 org.python.python 0x00001f82 0x1000 + 3970
28 org.python.python 0x00001ea9 0x1000 + 3753

Daehyok Shin

I have the same problem in my machine. Needs immediate attention on it for many mac users.

Min RK
Owner

I'm pretty sure this has been fixed (or at least improved) in matplotlib master. Try building matplotlib master, or get one of the matplotlib eggs from Fonnesbeck's Superpack: http://stronginference.com/scipy-superpack/

Note that IPython runs exactly zero objc code, so this is presumably a matplotlib issue. You would likely see this same issue if you were running matplotlib from the pure Python command prompt (not that anyone would do that).

Min RK
Owner

Closing as not an IPython issue. Do reopen or reply if you can reproduce the issue with current dev matplotlib.

Min RK minrk closed this October 14, 2011
Kaushik Ghose

Thanks for the feedback guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.