[Bug 3953] New: Traceback in server logs due to likely race condition

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Jun 4 14:43:36 CDT 2013


http://bz.selenic.com/show_bug.cgi?id=3953

          Priority: normal
            Bug ID: 3953
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Traceback in server logs due to likely race condition
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: swpalmer at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.6.1
         Component: hgweb
           Product: Mercurial

CI system that polls multiple repos frequently and often simultaneously
triggers the following backlogs

This one shows two tracebacks happening simultaneously:

[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209] mod_wsgi (pid=3116):
Exception occurred processing WSGI script 'C:/Program Files/Apache Software
Foundation/Apache2.2/cgi-bin/kayak-hgweb.wsgi'.
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209] mod_wsgi (pid=3116):
Exception occurred processing WSGI script 'C:/Program Files/Apache Software
Foundation/Apache2.2/cgi-bin/kayak-hgweb.wsgi'.
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209] Traceback (most
recent call last):
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209] Traceback (most
recent call last):
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\hgweb\\hgwebdir_mod.py", line
153, in __call__
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\hgweb\\hgwebdir_mod.py", line
153, in __call__
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]     return
self.run_wsgi(req)
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]     return
self.run_wsgi(req)
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\hgweb\\hgwebdir_mod.py", line
218, in run_wsgi
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\hgweb\\hgwebdir_mod.py", line
218, in run_wsgi
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]     return
hgweb(repo).run_wsgi(req)
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\hgweb\\hgweb_mod.py", line 68, in
__init__
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]     return
hgweb(repo).run_wsgi(req)
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\hgweb\\hgweb_mod.py", line 68, in
__init__
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]    
self.repo.baseui.setconfig('ui', 'report_untrusted', 'off')
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\ui.py", line 163, in setconfig
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]    
self.repo.baseui.setconfig('ui', 'report_untrusted', 'off')
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\ui.py", line 163, in setconfig
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]    
self._ucfg.set(section, name, value)
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\config.py", line 95, in set
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]    
self._ucfg.set(section, name, value)
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\config.py", line 95, in set
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]    
self._data[section][item] = value
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\config.py", line 22, in
__setitem__
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]    
self._data[section][item] = value
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\config.py", line 22, in
__setitem__
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]    
self._list.remove(key)
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209] ValueError:
list.remove(x): x not in list
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209]    
self._list.remove(key)
[Tue Jun 04 15:00:47 2013] [error] [client 192.168.0.209] ValueError:
list.remove(x): x not in list

Here is another similar traceback:
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229] mod_wsgi (pid=3116):
Exception occurred processing WSGI script 'C:/Program Files/Apache Software
Foundation/Apache2.2/cgi-bin/hgweb.wsgi'.
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229] Traceback (most
recent call last):
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\hgweb\\hgwebdir_mod.py", line
153, in __call__
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]     return
self.run_wsgi(req)
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\hgweb\\hgwebdir_mod.py", line
218, in run_wsgi
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]     return
hgweb(repo).run_wsgi(req)
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\hgweb\\hgweb_mod.py", line 70, in
__init__
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]    
self.repo.baseui.setconfig('ui', 'nontty', 'true')
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\ui.py", line 163, in setconfig
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]    
self._ucfg.set(section, name, value)
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\config.py", line 95, in set
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]    
self._data[section][item] = value
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]   File
"C:\\Python27\\lib\\site-packages\\mercurial\\config.py", line 22, in
__setitem__
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229]    
self._list.remove(key)
[Tue Jun 04 15:11:40 2013] [error] [client 192.168.0.229] ValueError:
list.remove(x): x not in list

The version with self.repo.baseui.setconfig('ui', 'report_untrusted', 'off')
seems to happen more frequently than the version with
self.repo.baseui.setconfig('ui', 'nontty', 'true') if that could possibly be
relevant.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list