python --with-tcl-tk crashes, buffer overflow error · Issue #12114 · Homebrew/homebrew-core (original) (raw)
Please always follow these steps:
- Confirmed this is a problem with only one, specific formula and not Homebrew/brew? If it's a general Homebrew/brew problem please file this issue at https://github.com/Homebrew/brew/issues/new
- Ran
brew update
and retried your prior step? - Ran
brew doctor
, fixed as many issues as possible and retried your prior step? - Ran
brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link? https://gist.github.com/0f94790ebaa91323ab885ddfe587cd6a
To help us debug your issue please explain:
- What you were trying to do (and why)
- Trying to install python 2.7 with TK interface
- The purpose is to run pyraf in OSX
- What happened (include command output)
- installed tcl-tk with
brew install tcl-tk
without error - added
export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
to .bash_profile and sourced it - installed python with
brew install python --with-tcl-tk
without error - test by running
python -m Tkinter
=> crash withAbort trap: 6
- installed tcl-tk with
- What you expected to happen
- Tkinter does not crash
- Step-by-step reproduction instructions (by running
brew install
commands)brew install tcl-tk
brew install python --with-tcl-tk
python -m Tkinter
Additional info:
- OSX Sierra
- Retried after installing all OS patch and Xcode patches
- Brew doctor reported nothing
Apple crash info:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
detected buffer overflow
Stack trace: --unfortunately could not figure out how to install debug symbols
frame #0: 0x00007fff90801d42 libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff908ef5bf libsystem_pthread.dylib`pthread_kill + 90
frame #2: 0x00007fff90767420 libsystem_c.dylib`abort + 129
frame #3: 0x00007fff90767592 libsystem_c.dylib`abort_report_np + 181
frame #4: 0x00007fff9078df28 libsystem_c.dylib`__chk_fail + 48
frame #5: 0x00007fff9078def8 libsystem_c.dylib`__chk_fail_overflow + 16
frame #6: 0x00007fff9078e145 libsystem_c.dylib`__strcpy_chk + 83
frame #7: 0x00000001025cbe86 libtk8.6.dylib`Tk_WmObjCmd + 12920
frame #8: 0x000000010265779f libtcl8.6.dylib`TclNRRunCallbacks + 80
frame #9: 0x00000001005eea92 _tkinter.so`Tkapp_Call + 425
frame #10: 0x0000000100116623 Python`PyEval_EvalFrameEx + 9903
frame #11: 0x0000000100113d7f Python`PyEval_EvalCodeEx + 1621
frame #12: 0x000000010011c58d Python`fast_function + 298
frame #13: 0x0000000100116557 Python`PyEval_EvalFrameEx + 9699
frame #14: 0x000000010011c528 Python`fast_function + 197
--snip--
frame #37: 0x00007fff906d3235 libdyld.dylib`start + 1
frame #38: 0x00007fff906d3235 libdyld.dylib`start + 1