
#11436: ValueError: invalid literal for int() with base 10: '#11238' -------------------------------------+------------------------------------- Reporter: trommler | Owner: hvr Type: bug | Status: new Priority: normal | Milestone: Component: Trac & Git | Version: Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Other Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- ==== How to Reproduce ==== While doing a POST operation on `/ticket/9498`, Trac issued an internal error. I changed the ticket number in field BlockedBy and trac does not like the hash mark. The ticket is updated nevertheless and the hash marks on the ticket numbers in the Blocking field are gone too. Links to the tickets are no longer present. Request parameters: {{{ {u'__FORM_TOKEN': u'2c077745a0bf5115b3e543fe', u'action': u'leave', u'comment': u'', u'field_architecture': u'Unknown/Multiple', u'field_blockedby': u'#11238', u'field_blocking': u'#9237', u'field_cc': u'trommler, simonmar', u'field_component': u'Compiler (Linking)', u'field_description': u"Greetings,\r\n\r\nGHC tries to load unversioned dynamic libraries instead of versioned (i.e. libfoo.so instead of libfoo.so.1.2.3).\r\nThis is a problem, since Distributions like Debian (I don't know about other distributions) don't include unversioned .SOs in their runtime packages and the unversioned are only available in the -dev packages as a symlink to the verioned ones.\r\nThis means FFI libraries depend on the -dev packages, even though they don't really need them.\r\nIt would be nice if GHC would try to load the versioned libraries as well.\r\n\r\nRegards\r\nSven", u'field_differential': u'', u'field_failure': u'Other', u'field_keywords': u'Debian', u'field_milestone': u'', u'field_os': u'Linux', u'field_priority': u'normal', u'field_related': u'', u'field_summary': u'GHC links against unversioned .so files', u'field_testcase': u'', u'field_type': u'feature request', u'field_version': u'7.6.3', u'field_wikipage': u'', 'id': u'9498', u'preview': u'Preview', u'replyto': u'', u'sfp_email': u'', u'sfph_mail': u'', u'start_time': u'1452879954402108', u'view_time': u'1452879954402108'} }}} User agent: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9` ==== System Information ==== ''System information not available'' ==== Enabled Plugins ==== ''Plugin information not available'' ==== Python Traceback ==== {{{ Traceback (most recent call last): File "/usr/local/lib/python2.7/dist- packages/Trac-1.0.9-py2.7.egg/trac/web/main.py", line 554, in _dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.7/dist- packages/Trac-1.0.9-py2.7.egg/trac/web/main.py", line 267, in dispatch iterable=chrome.use_chunked_encoding) File "/usr/local/lib/python2.7/dist- packages/Trac-1.0.9-py2.7.egg/trac/web/chrome.py", line 1075, in render_template stream |= self._filter_stream(req, method, filename, stream, data) File "/usr/local/lib/python2.7/dist- packages/Genshi-0.6-py2.7.egg/genshi/core.py", line 132, in __or__ return Stream(_ensure(function(self)), serializer=self.serializer) File "/usr/local/lib/python2.7/dist- packages/Trac-1.0.9-py2.7.egg/trac/web/chrome.py", line 1319, in inner data) File "build/bdist.linux-x86_64/egg/mastertickets/web_ui.py", line 140, in filter_stream field['rendered'] = self._link_tickets(req, data['ticket'][f]) File "build/bdist.linux-x86_64/egg/mastertickets/web_ui.py", line 313, in _link_tickets ticket = Ticket(self.env, tid) File "/usr/local/lib/python2.7/dist- packages/Trac-1.0.9-py2.7.egg/trac/ticket/model.py", line 69, in __init__ tkt_id = int(tkt_id) ValueError: invalid literal for int() with base 10: '#11238' }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11436 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler