You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
before datetime.now: 2017-12-17 15:03:16.985094
after datetime.now: 2017-12-17 15:03:16.985267
before datetime.now: 2017-12-17 15:03:16.985314
Traceback (most recent call last):
File "bug.py", line 21, in <module>
activate_deactivate()
File "bug.py", line 14, in activate_deactivate
f = datetime.datetime.now()
TypeError: &traceback' object is not callable
Fatal Python error: Inconsistent interned string state.
Aborted
Correct output
before datetime.now: 2017-12-17 10:04:33.392523
after datetime.now: 2017-12-17 15:04:33.392366
before datetime.now: 2017-12-17 15:04:33.392366
after datetime.now: 2017-12-17 15:04:33.392366
before datetime.now: 2017-12-17 15:04:33.392366
after datetime.now: 2017-12-17 15:04:33.392366
Seems Python 2-specific. The same script works on Debian 9 with Python 3.5.3 (after replacing print and xrange with their Python 3 counterpart, of course).
The following program crashes Python with various memory corruption related errors on Debian 9 and Ubuntu 17.10. The program works fine on my Mac.
forbiddenfruit
version 0.1.2 installed withpip install forbiddenfruit
Working system
Failing systems
2.7.13-2+deb9u2
2.7.12-1ubuntu0~16.04.2
2.7.14-2ubuntu2
Reproducing the errors
On a new virtual machine, run the following:
sudo apt-get install gcc libpython2.7-dev virtualenv
virtualenv bugvenv
bugvenv/bin/pip install forbiddenfruit
bugvenv/bin/python bug.py
Example failing output
Correct output
Script
The text was updated successfully, but these errors were encountered: