Issue19954
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2013-12-11 21:26 by r.david.murray, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (12) | |||
---|---|---|---|
msg205925 - (view) | Author: R. David Murray (r.david.murray) * | Date: 2013-12-11 21:26 | |
A while ago I started getting a floating point exception from test_tk in the tip in all active versions, but I'm only now getting around to reporting it. I've tracked this down to the tests introduced in issue 19085, which it looks like revealed some other tk issues. Gentoo has some patches against stock 8.6.1; I don't know if they are the source of the failure or not. I haven't updated the gentoo buildbots for a while, and since they are passing the tests it could well be that it was my upgrade from tk 8.6.0 to 8.6.1 on my dev box that triggered the failures. The timing of that upgrade is somewhat after the patch was committed, but I hadn't been running the test suite regularly during that interval so I can't pinpoint it to one or the other. There are also other test failures, by the way, but I'm not seeing the tracebacks because python crashes. Here is the faulthandler traceback from 3.3: test_indicatoron (tkinter.test.test_tkinter.test_widgets.MenubuttonTest) ... Fatal Python error: Floating point exception Current thread 0xb75416c0: File "/home/rdmurray/python/p33/Lib/tkinter/__init__.py", line 1257 in _configure File "/home/rdmurray/python/p33/Lib/tkinter/__init__.py", line 1266 in configure File "/home/rdmurray/python/p33/Lib/tkinter/__init__.py", line 1273 in __setitem__ File "/home/rdmurray/python/p33/Lib/tkinter/test/widget_tests.py", line 47 in checkParam File "/home/rdmurray/python/p33/Lib/tkinter/test/widget_tests.py", line 116 in checkBooleanParam File "/home/rdmurray/python/p33/Lib/tkinter/test/widget_tests.py", line 422 in test_indicatoron File "/home/rdmurray/python/p33/Lib/unittest/case.py", line 384 in _executeTestPart File "/home/rdmurray/python/p33/Lib/unittest/case.py", line 439 in run File "/home/rdmurray/python/p33/Lib/unittest/case.py", line 491 in __call__ File "/home/rdmurray/python/p33/Lib/unittest/suite.py", line 105 in run File "/home/rdmurray/python/p33/Lib/unittest/suite.py", line 67 in __call__ File "/home/rdmurray/python/p33/Lib/unittest/suite.py", line 105 in run File "/home/rdmurray/python/p33/Lib/unittest/suite.py", line 67 in __call__ File "/home/rdmurray/python/p33/Lib/test/support/__init__.py", line 1560 in run File "/home/rdmurray/python/p33/Lib/test/support/__init__.py", line 1661 in _run_suite File "/home/rdmurray/python/p33/Lib/test/support/__init__.py", line 1695 in run_unittest File "/home/rdmurray/python/p33/Lib/test/test_tk.py", line 22 in test_main File "/home/rdmurray/python/p33/Lib/test/regrtest.py", line 1222 in runtest_inner File "/home/rdmurray/python/p33/Lib/test/regrtest.py", line 944 in runtest File "/home/rdmurray/python/p33/Lib/test/regrtest.py", line 717 in main File "/home/rdmurray/python/p33/Lib/test/__main__.py", line 13 in <module> File "/home/rdmurray/python/p33/Lib/runpy.py", line 73 in _run_code File "/home/rdmurray/python/p33/Lib/runpy.py", line 160 in _run_module_as_main zsh: floating point exception ./python -m test -uall test_tk |
|||
msg205963 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2013-12-12 17:19 | |
Does separated test crash? ./python -m test -v -uall -m test_indicatoron test_tk |
|||
msg205973 - (view) | Author: R. David Murray (r.david.murray) * | Date: 2013-12-12 18:36 | |
rdmurray@hey:~/python/p34>./python -m test -v -uall -m test_indicatoron test_tk == CPython 3.4.0b1 (default:59fb79d0411e, Dec 11 2013, 16:39:28) [GCC 4.7.2] == Linux-3.10.6-gentoo-i686-Intel-R-_Core-TM-_i5_CPU_M_450_@_2.40GHz-with-gentoo-2.2 little-endian == hash algorithm: siphash24 32bit == /home/rdmurray/python/p34/build/test_python_4151 Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0) [1/1] test_tk patchlevel = 8.6.1 test_indicatoron (tkinter.test.test_tkinter.test_widgets.CheckbuttonTest) ... ok test_indicatoron (tkinter.test.test_tkinter.test_widgets.MenubuttonTest) ... Fatal Python error: Floating point exception Current thread 0xb74f76c0 (most recent call first): File "/home/rdmurray/python/p34/Lib/tkinter/__init__.py", line 1254 in _configure File "/home/rdmurray/python/p34/Lib/tkinter/__init__.py", line 1263 in configure File "/home/rdmurray/python/p34/Lib/tkinter/__init__.py", line 1270 in __setitem__ File "/home/rdmurray/python/p34/Lib/tkinter/test/widget_tests.py", line 47 in checkParam File "/home/rdmurray/python/p34/Lib/tkinter/test/widget_tests.py", line 116 in checkBooleanParam File "/home/rdmurray/python/p34/Lib/tkinter/test/widget_tests.py", line 422 in test_indicatoron File "/home/rdmurray/python/p34/Lib/unittest/case.py", line 574 in run File "/home/rdmurray/python/p34/Lib/unittest/case.py", line 622 in __call__ File "/home/rdmurray/python/p34/Lib/unittest/suite.py", line 117 in run File "/home/rdmurray/python/p34/Lib/unittest/suite.py", line 79 in __call__ File "/home/rdmurray/python/p34/Lib/unittest/suite.py", line 117 in run File "/home/rdmurray/python/p34/Lib/unittest/suite.py", line 79 in __call__ File "/home/rdmurray/python/p34/Lib/unittest/runner.py", line 168 in run File "/home/rdmurray/python/p34/Lib/test/support/__init__.py", line 1685 in _run_suite File "/home/rdmurray/python/p34/Lib/test/support/__init__.py", line 1719 in run_unittest File "/home/rdmurray/python/p34/Lib/test/test_tk.py", line 22 in test_main File "/home/rdmurray/python/p34/Lib/test/regrtest.py", line 1278 in runtest_inner File "/home/rdmurray/python/p34/Lib/test/regrtest.py", line 978 in runtest File "/home/rdmurray/python/p34/Lib/test/regrtest.py", line 763 in main File "/home/rdmurray/python/p34/Lib/test/regrtest.py", line 1562 in main_in_temp_cwd File "/home/rdmurray/python/p34/Lib/test/__main__.py", line 3 in <module> File "/home/rdmurray/python/p34/Lib/runpy.py", line 73 in _run_code File "/home/rdmurray/python/p34/Lib/runpy.py", line 160 in _run_module_as_main zsh: floating point exception ./python -m test -v -uall -m test_indicatoron test_tk |
|||
msg205974 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2013-12-12 18:59 | |
What if run following code? import tkinter root = tkinter.Tk() widget = tkinter.Menubutton(root) for value in (True, 1, 'true', 'yes', 'on'): print(value, flush=True) widget['indicatoron'] = value |
|||
msg205980 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2013-12-12 20:58 | |
Please run following commands in wish: $ wish % menubutton .mb .mb % .mb configure -indicatoron 1 |
|||
msg205981 - (view) | Author: R. David Murray (r.david.murray) * | Date: 2013-12-12 21:00 | |
Ah. That produces the floating point exception as well. |
|||
msg205983 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2013-12-12 21:19 | |
What with such example? $ wish % menubutton .mb -text "Test" .mb % pack .mb % update % .mb configure -indicatoron 1 Try also without pack and update. |
|||
msg205984 - (view) | Author: R. David Murray (r.david.murray) * | Date: 2013-12-12 21:22 | |
floating point exception with or without the pack/update. |
|||
msg210788 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2014-02-09 21:02 | |
I think we can close this issue as far as the bug is in third-party software and we can't do anything with this. |
|||
msg222841 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014-07-12 14:00 | |
I think this was meant to be closed rather than moved to pending see msg210788. |
|||
msg222915 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2014-07-13 06:52 | |
Mark, pending state here means that I think this issue should be closed, but what to see agreement from David (as issue starter and as other core developer). |
|||
msg223124 - (view) | Author: R. David Murray (r.david.murray) * | Date: 2014-07-15 17:19 | |
Originally I didn't respond because I wanted to report it to Gentoo first, but I've never managed to do so and there's no reason to keep the issue here open when it is clearly third party. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:55 | admin | set | github: 64153 |
2014-07-15 17:19:44 | r.david.murray | set | status: open -> closed resolution: third party messages: + msg223124 stage: needs patch -> resolved |
2014-07-13 06:52:36 | serhiy.storchaka | set | messages: + msg222915 |
2014-07-12 14:00:20 | BreamoreBoy | set | status: pending -> open nosy: + BreamoreBoy messages: + msg222841 |
2014-02-09 21:02:39 | serhiy.storchaka | set | status: open -> pending messages: + msg210788 |
2013-12-14 02:59:08 | terry.reedy | set | title: test_tk floating point exception on my gentoo box running tk 8.6.1 -> test_tk floating point exception on my gentoo box with tk 8.6.1 |
2013-12-12 21:22:18 | r.david.murray | set | messages: + msg205984 |
2013-12-12 21:19:13 | serhiy.storchaka | set | messages: + msg205983 |
2013-12-12 21:00:05 | r.david.murray | set | messages: + msg205981 |
2013-12-12 20:58:10 | serhiy.storchaka | set | messages: + msg205980 |
2013-12-12 18:59:22 | serhiy.storchaka | set | messages: + msg205974 |
2013-12-12 18:36:47 | r.david.murray | set | messages: + msg205973 |
2013-12-12 17:19:17 | serhiy.storchaka | set | messages: + msg205963 |
2013-12-11 21:26:19 | r.david.murray | create |