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

python --with-tcl-tk crashes, buffer overflow error #12114

Closed
4 tasks done
poernahi opened this issue Apr 5, 2017 · 15 comments
Closed
4 tasks done

python --with-tcl-tk crashes, buffer overflow error #12114

poernahi opened this issue Apr 5, 2017 · 15 comments
Labels
10.12 Sierra is specifically affected bug Reproducible Homebrew/homebrew-core bug python Python use is a significant feature of the PR or issue

Comments

@poernahi
Copy link

poernahi commented Apr 5, 2017

Please always follow these steps:

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 with Abort trap: 6
  • 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
@poernahi
Copy link
Author

poernahi commented Apr 6, 2017

Issue went away after brewing python without --with-tcl-tk

@schiotz
Copy link

schiotz commented May 4, 2017

@poernahi
Could you please reopen this issue, as it is a real issue. The version of Tcl/Tk provided by Apple is slow and buggy (https://www.python.org/download/mac/tcltk/), using the homebrew-built version should be better. But of course not when it crashes.

@poernahi poernahi reopened this May 8, 2017
@poernahi
Copy link
Author

poernahi commented May 8, 2017

Reopening as requested.

@stale stale bot added the stale No recent activity label May 29, 2017
@stale
Copy link

stale bot commented May 29, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@iMichka
Copy link
Member

iMichka commented May 30, 2017

Can also be reproduced with:

python
import Tkinter
Tkinter._test()

@tdsmith I think this is what is making pymol crash in homebrew-science

@stale stale bot removed the stale No recent activity label May 30, 2017
@rbf22
Copy link

rbf22 commented Jun 8, 2017

Is anyone working on this?

@m-yac
Copy link

m-yac commented Jun 8, 2017

Seconded – this is still very much an issue. I also get this error with iMichka's minimal example.

@MikeMcQuaid
Copy link
Member

Is anyone working on this?

No. Someone experiencing the issue will need to.

@cowsandmilk
Copy link
Contributor

bringing back the --with-x11 removed in 1b5d094 fixes this for iMichka's example (and pymol as well, which is my main concern).

What was the justification for removing that option? The commit references something seemingly irrelevant to me.

@ilovezfs ilovezfs added 10.12 Sierra is specifically affected python Python use is a significant feature of the PR or issue bug Reproducible Homebrew/homebrew-core bug labels Jun 27, 2017
@ilovezfs
Copy link
Contributor

Python 3 has the same bug: #12808.

@stale stale bot added the stale No recent activity label Jul 19, 2017
@stale
Copy link

stale bot commented Jul 19, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

telamonian pushed a commit to telamonian/homebrew-core that referenced this issue Jul 22, 2017
…ith-x11` option. Without --with-x11 `brew test python` and `brew test python3` fail, and some formulae (eg pymol) break
@telamonian
Copy link
Contributor

@cowsandmilk's suggestion to readd (and use) the --with-x11 option in the tcl-tk formula fixed these issues for me. I've made a pull request with the revised formula. This apparently also fixes #12808.

@stale stale bot removed the stale No recent activity label Jul 22, 2017
@ilovezfs
Copy link
Contributor

I've closed that PR but an actual fix for these issues would be most welcome.

telamonian pushed a commit to telamonian/homebrew-core that referenced this issue Jul 25, 2017
telamonian pushed a commit to telamonian/homebrew-core that referenced this issue Aug 1, 2017
…y adding devel

build. Also removes semi-function HEAD build
@ilovezfs
Copy link
Contributor

ilovezfs commented Aug 2, 2017

This should be fixed if you

brew install --devel tcl-tk

@MikeTam1021
Copy link

this did not work for me ilovezfs

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
10.12 Sierra is specifically affected bug Reproducible Homebrew/homebrew-core bug python Python use is a significant feature of the PR or issue
Projects
None yet
Development

No branches or pull requests

10 participants