Activity log for bug #1793629

Date Who What changed Old value New value Message
2018-09-21 03:06:08 Andrew Meadows bug added bug
2018-09-21 03:06:08 Andrew Meadows attachment added negative-hash-fix.patch https://bugs.launchpad.net/bugs/1793629/+attachment/5191270/+files/negative-hash-fix.patch
2018-09-21 03:16:09 Andrew Meadows summary regression causing invalid dbus interface name crash regression causing invalid dbus interface name
2018-09-21 03:17:01 Andrew Meadows description Bug 1267195 was fixed with revision 1734 in the GTK3 branch. This caused a regression when the .replace('-','_') method call was removed. In terminatorlib/ipc.py, line 26, the effected code changed from: DISPLAY = hex(hash(Gdk.get_display())).replace('-', '_') to: DISPLAY = hex(hash(Gdk.get_display().partition('.')[0])) Python's built-in hash function returns a signed integer. The built-in hex function returns a signed hex value, not a hex representation of the unsigned value. D-Bus does not allow the '-' character in bus names. This means that half of the possible hash values for the display name will now cause terminator to crash on startup with a D-Bus error. When ipc.py line 26 is changed to: DISPLAY = hex(hash(Gdk.get_display().partition('.')[0])).replace('-', '_').replace('-', '_') it appears to fix the original bug without causing the regression. Bug 1267195 was fixed with revision 1734 in the GTK3 branch. This caused a regression when the .replace('-','_') method call was removed. In terminatorlib/ipc.py, line 26, the effected code changed from:     DISPLAY = hex(hash(Gdk.get_display())).replace('-', '_') to:     DISPLAY = hex(hash(Gdk.get_display().partition('.')[0])) Python's built-in hash function returns a signed integer. The built-in hex function returns a signed hex value, not a hex representation of the unsigned value. D-Bus does not allow the '-' character in bus names. This means that half of the possible hash values for the display name will now cause terminator to crash on startup with a D-Bus error. When ipc.py line 26 is changed to: DISPLAY = hex(hash(Gdk.get_display().partition('.')[0])).replace('-', '_') it appears to fix the original bug without causing the regression.
2018-09-21 03:19:40 Andrew Meadows tags crash
2018-09-21 03:20:07 Andrew Meadows tags crash crash regression
2018-09-21 03:21:11 Andrew Meadows branch linked lp:terminator
2019-08-12 06:14:34 Fabrizio Lungo bug added subscriber Fabrizio Lungo