Bug 2517

Summary: exception occurs
Product: Sisyphus Reporter: imz <vanyaz>
Component: fetchmailconfAssignee: Mikhail Zabaluev <mhz>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P5 CC: azol, inger, legion, mike
Version: unstable   
Hardware: all   
OS: Linux   

Description imz 2003-04-11 22:27:22 MSD
I start fetchmailconf, choose
\&quot;Configure fetchmail\&quot;, \&quot;Novice configuration\&quot;,
enter \&quot;mail.lonet.ru\&quot; in \&quot;New Server\&quot;, press Enter,
get an exception (and it doesn\'t go ahead):

# fetchmailconf 
Exception in Tkinter callback
Traceback (most recent call last):
  File \&quot;/usr/lib/python2.2/lib-tk/Tkinter.py\&quot;, line 1299, in __call__
    args = apply(self.subst, args)
  File \&quot;/usr/lib/python2.2/lib-tk/Tkinter.py\&quot;, line 1032, in _substitute
    e.num = getint(b)
ValueError: invalid literal for int(): ??


---

---
# rpm -qa \'fetchmail*\'
fetchmailconf-6.2.2-alt3
fetchmail-6.2.2-alt3
fetchmail-daemon-6.2.2-alt3


# rpm -qf /usr/lib/python2.2/lib-tk/Tkinter.py
tkinter22-2.2.2-alt3


Comment 1 Mikhail Zabaluev 2003-08-29 03:39:50 MSD
Adding the Tkinter packager to CC because it might be Tkinter's fault.
Comment 2 Mikhail Zabaluev 2003-08-29 14:20:28 MSD
Here's my debugging session for this case:

(Pdb) b /usr/lib/python2.2/lib-tk/Tkinter.py:1299
Breakpoint 1 at /usr/lib/python2.2/lib-tk/Tkinter.py:1299
(Pdb) c
> /usr/lib/python2.2/lib-tk/Tkinter.py(1299)__call__()
-> args = apply(self.subst, args)
(Pdb) w
  /usr/lib/python2.2/bdb.py(349)run()
-> exec cmd in globals, locals
  <string>(1)?()
  /usr/bin/fetchmailconf(2080)?()
-> root.mainloop()
  /usr/lib/python2.2/lib-tk/Tkinter.py(937)mainloop()
-> self.tk.mainloop(n)
> /usr/lib/python2.2/lib-tk/Tkinter.py(1299)__call__()
-> args = apply(self.subst, args)
(Pdb) p args
('1591', '??', '??', '??', '36', '16', '7127449', '??', '32', '3', '\r', '0',
'Return', '65293', '.137279108.137348820.137464340.137472724.137477524', '2',
'133', '847', '36')

On the Return key event (as, I think, on other events as well), the second
argument received from a Tk mainloop is expected to be an integer literal.
Instead, it contains two question marks. Should it be resubmitted as a Tkinter
bug or even a Tk bug? Comments from Tk/Tkinter gurus are welcome.
Comment 3 Mikhail Zabaluev 2005-12-15 17:39:13 MSK
В какой-то момент это было починено.