Opened 12 years ago

Last modified 12 years ago

#4586 new Bugs

OperationalError: database is locked

Reported by: anonymous Owned by: Douglas Gregor
Milestone: To Be Determined Component: trac / subversion
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:

Description

How to Reproduce

While doing a POST operation on /ticket/4258, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'df472745600ad46e730920bd',
 'action': u'leave',
 'author': u'anonymous',
 'cnum': u'5',
 'comment': u"When adding some preprocessor checks in tss_pe.cpp that prevent the declaration _tls_used for MinGW, I've been able to fix this problem! All I did was to wrap it with \r\n\r\n#if !defined(__MINGW__)\r\n...\r\n#endif",
 'field_component': u'thread',
 'field_keywords': u'',
 'field_milestone': u'Boost 1.43.0',
 'field_severity': u'Problem',
 'field_summary': u'Linking with boost thread does not work on mingw/gcc 4.5',
 'field_type': u'Bugs',
 'field_version': u'Boost 1.44.0',
 'id': u'4258',
 'replyto': u'4',
 'submit': u'Submit changes',
 'ts': u'2010-06-07 06:50:49+00:00'}

User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/trac/ticket/web_ui.py", line 169, in process_request
    return self._process_ticket_request(req)
  File "build/bdist.linux-i686/egg/trac/ticket/web_ui.py", line 534, in _process_ticket_request
    valid = self._validate_ticket(req, ticket, not valid) and valid
  File "build/bdist.linux-i686/egg/trac/ticket/web_ui.py", line 1179, in _validate_ticket
    for field, message in manipulator.validate_ticket(req, ticket):
  File "build/bdist.linux-i686/egg/tracspamfilter/adapters.py", line 67, in validate_ticket
    FilterSystem(self.env).test(req, author, changes)
  File "build/bdist.linux-i686/egg/tracspamfilter/api.py", line 133, in test
    score, ['%s (%d): %s' % r for r in reasons]).insert()
  File "build/bdist.linux-i686/egg/tracspamfilter/model.py", line 138, in insert
    '\n'.join(self.reasons)))
  File "build/bdist.linux-i686/egg/trac/db/util.py", line 65, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "build/bdist.linux-i686/egg/trac/db/sqlite_backend.py", line 78, in execute
    result = PyFormatCursor.execute(self, *args)
  File "build/bdist.linux-i686/egg/trac/db/sqlite_backend.py", line 56, in execute
    args or [])
  File "build/bdist.linux-i686/egg/trac/db/sqlite_backend.py", line 48, in _rollback_on_error
    return function(self, *args, **kwargs)
OperationalError: database is locked

Change History (2)

comment:1 by viboes, 12 years ago

Component: Nonetrac / subversion
Owner: set to Douglas Gregor

comment:2 by Marshall Clow, 12 years ago

Since Rene is working on the Trac install, I think that this should go to him.

Note: See TracTickets for help on using tickets.