Modify

Opened 7 years ago

Closed 5 years ago

#2101 closed defect (invalid)

TracDeveloperPlugin should not allocate 1gb memory when using the Admin panel

Reported by: anonymous Owned by: athomas
Priority: normal Component: TracDeveloperPlugin
Severity: normal Keywords:
Cc: olle.jonsson+trachacks@… Trac Release: 0.11

Description

I used the TracDeveloperPlugin. And it died on me.

I just got me a "Python(25983,0x19b1000) malloc: * vm_allocate(size=1124044800) failed (error code=3)"

hylje: a gig's memory allocation?
hylje: waht

Here is the tracd log snippet:

127.0.0.1 - - [24/Oct/2007 20:51:03] "POST /oos/admin/general/plugin HTTP/1.1" 303 -
127.0.0.1 - - [24/Oct/2007 20:51:04] "GET /oos/admin/general/plugin HTTP/1.1" 200 -
Python(25983,0x19b1000) malloc: *** vm_allocate(size=1124044800) failed (error code=3)
Python(25983,0x19b1000) malloc: *** error: can't allocate region
Python(25983,0x19b1000) malloc: *** set a breakpoint in szone_error to debug
127.0.0.1 - - [24/Oct/2007 20:54:19] "GET /oos/admin/developer/plugins HTTP/1.1" 500 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 57096)
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/SocketServer.py", line 463, in process_request_thread
    self.finish_request(request, client_address)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/SocketServer.py", line 521, in __init__
    self.handle()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11dev_r6079-py2.5.egg/trac/web/wsgi.py", line 174, in handle_one_request
    gateway.run(self.server.application)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11dev_r6079-py2.5.egg/trac/web/wsgi.py", line 87, in run
    response = application(self.environ, self._start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11dev_r6079-py2.5.egg/trac/web/standalone.py", line 57, in __call__
    return self.application(environ, start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11dev_r6079-py2.5.egg/trac/web/standalone.py", line 89, in __call__
    return self.application(environ, start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11dev_r6079-py2.5.egg/trac/web/main.py", line 450, in dispatch_request
    req.send_error(exc_info, status=500, env=env, data=data)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11dev_r6079-py2.5.egg/trac/web/api.py", line 364, in send_error
    self.write(data)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11dev_r6079-py2.5.egg/trac/web/api.py", line 428, in write
    self._write(data)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11dev_r6079-py2.5.egg/trac/web/wsgi.py", line 195, in _write
    self.handler.send_response(int(status[:3]))
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/BaseHTTPServer.py", line 370, in send_response
    self.send_header('Server', self.version_string())
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/BaseHTTPServer.py", line 376, in send_header
    self.wfile.write("%s: %s\r\n" % (keyword, value))
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", line 261, in write
    self.flush()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", line 248, in flush
    self._sock.sendall(buffer)
error: (32, 'Broken pipe')
----------------------------------------
127.0.0.1 - - [24/Oct/2007 20:55:14] "GET /oos/ HTTP/1.1" 200 -

My other plugins are

  • Trac 0.11dev-r6079
  • Bitten 0.6dev-r502
  • IniAdmin 0.2

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by olle.jonsson+trachacks@…

Oh, I wrote that as "anonymous" and my name is Olle. <olle.jonsson@…>

comment:2 Changed 7 years ago by athomas

I am unable to replicate this. Try and disable plugins until it works, which will at least narrow it down. Then try and insert debug statements into the developer plugin to track down what's causing it.

I also don't actually see TracDeveloperPlugin in the backtrace, which is a bit odd.

comment:3 Changed 5 years ago by techtonik

  • Cc olle.jonsson+trachacks@… added; anonymous removed
  • Resolution set to invalid
  • Status changed from new to closed

Closing as invalid. No evidence for over two years. Feel free to reopen with new investigation materials.

Add Comment

Modify Ticket

Action
as closed The owner will remain athomas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.