[GHC] #13273: AttributeError: 'Environment' object has no attribute 'get_db_cnx'

#13273: AttributeError: 'Environment' object has no attribute 'get_db_cnx' -------------------------------------+------------------------------------- Reporter: Siddharth | Owner: (none) Bhat | Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- ==== How to Reproduce ==== While doing a POST operation on `/ticket/12636`, Trac issued an internal error. ''(please provide additional details here)'' Request parameters: {{{ {u'__FORM_TOKEN': u'73aa35b2c757eee5d2b0ae62', u'action': u'leave', u'action_assign_reassign_owner': u'bollu', u'action_resolve_resolve_resolution': u'fixed', u'comment': u'I believe the guarantee at that chunk of code is that `void_total` of the era will be `>= 0`.\r\n\r\nI could add an asset at those sections of code if need be. If not, what is the correct type to be used here? I think `size_t` is reasonable as none of them are supposed to be negative in the first place.\r\n\r\n', u'field_architecture': u'Unknown/Multiple', u'field_blockedby': u'', u'field_blocking': u'', u'field_cc': u'simonmar', u'field_component': u'Runtime System', u'field_description': u'during compile I noticed\r\n\r\n{{{\r\nrts\\ProfHeap.c: In function \'dumpCensus\':\r\n\r\nrts\\ProfHeap.c:768:26: error:\r\n warning: format \'%lu\' expects argument of type \'long unsigned int\', but argument 3 has type \'long long unsigned int\' [-Wformat=]\r\n fprintf(hp_file, "VOID\\t%lu\\n",\r\n ^\r\n\r\nrts\\ProfHeap.c:770:26: error:\r\n warning: format \'%lu\' expects argument of type \'long unsigned int\', but argument 3 has type \'long long unsigned int\' [-Wformat=]\r\n fprintf(hp_file, "LAG\\t%lu\\n",\r\n ^\r\n\r\nrts\\ProfHeap.c:772:26: error:\r\n warning: format \'%lu\' expects argument of type \'long unsigned int\', but argument 3 has type \'long long unsigned int\' [-Wformat=]\r\n fprintf(hp_file, "USE\\t%lu\\n",\r\n ^\r\n\r\nrts\\ProfHeap.c:774:26: error:\r\n warning: format \'%lu\' expects argument of type \'long unsigned int\', but argument 3 has type \'long long unsigned int\' [-Wformat=]\r\n fprintf(hp_file, "INHERENT_USE\\t%lu\\n",\r\n ^\r\n\r\nrts\\ProfHeap.c:776:26: error:\r\n warning: format \'%lu\' expects argument of type \'long unsigned int\', but argument 3 has type \'long long unsigned int\' [-Wformat=]\r\n fprintf(hp_file, "DRAG\\t%lu\\n",\r\n ^\r\n}}}\r\n', u'field_differential': u'', u'field_failure': u'None/Unknown', u'field_keywords': u'newcomer', u'field_milestone': u'', u'field_os': u'Windows', u'field_priority': u'normal', u'field_related': u'', u'field_summary': u"ProfHeap's printf modifiers are incorrect", u'field_testcase': u'', u'field_type': u'bug', u'field_version': u'8.0.1', u'field_wikipage': u'', 'id': u'12636', u'replyto': u'', u'sfp_email': u'', u'sfph_mail': u'', u'start_time': u'1486808510359145', u'submit': u'Submit changes', u'view_time': u'1486808510359145'} }}} User agent: `#USER_AGENT#` ==== System Information ==== ''System information not available'' ==== Enabled Plugins ==== ''Plugin information not available'' ==== Interface Customization ==== ''Interface customization information not available'' ==== Python Traceback ==== {{{ Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 613, in _dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 253, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/lib/python2.7/dist-packages/trac/ticket/web_ui.py", line 177, in process_request return self._process_ticket_request(req) File "/usr/local/lib/python2.7/dist-packages/trac/ticket/web_ui.py", line 661, in _process_ticket_request valid = self._validate_ticket(req, ticket, not valid) and valid File "/usr/local/lib/python2.7/dist-packages/trac/ticket/web_ui.py", line 1378, in _validate_ticket for field, message in manipulator.validate_ticket(req, ticket): File "build/bdist.linux-x86_64/egg/defaultcc/main.py", line 31, in validate_ticket comp_default_cc = DefaultCC(self.env, ticket['component']) File "build/bdist.linux-x86_64/egg/defaultcc/model.py", line 25, in __init__ db = self.env.get_db_cnx() AttributeError: 'Environment' object has no attribute 'get_db_cnx' }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13273 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC