Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kghose opened this issue Jul 25, 2011 · 4 comments
Closed

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

kghose opened this issue Jul 25, 2011 · 4 comments
Milestone

Comments

@kghose
Copy link

kghose commented Jul 25, 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
Copy link

daehyok commented Aug 13, 2011

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

@minrk
Copy link
Member

minrk commented Aug 13, 2011

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).

@minrk
Copy link
Member

minrk commented Oct 14, 2011

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

@minrk minrk closed this as completed Oct 14, 2011
@kghose
Copy link
Author

kghose commented Oct 20, 2011

Thanks for the feedback guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants