Bug 35972

Summary: UMC-Server: crash "Cannot allocate memory"
Product: UCS Reporter: Florian Best <best>
Component: UMC (Generic)Assignee: Florian Best <best>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: fricke, gohmann
Version: UCS 3.2   
Target Milestone: UCS 3.x   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=35977
https://forge.univention.org/bugzilla/show_bug.cgi?id=27283
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional): Error handling
Max CVSS v3 score:
Attachments: Screenshot

Description Florian Best univentionstaff 2014-09-22 10:13:51 CEST
The UMC-server forks a process to open a module and crashes then if the module needs too much memory. Instead that the UMC-server crashes it would be good to just let the module process crash so that the UMC-server keeps functioning.

22.09.14 10:02:28.964  MAIN        ( INFO    ) : Incoming request of type COMMAND
22.09.14 10:02:28.964  RESOURCES   ( INFO    ) : Searching for module providing command uvmm/group/query
22.09.14 10:02:28.965  RESOURCES   ( INFO    ) : Found module uvmm
22.09.14 10:02:28.965  MAIN        ( INFO    ) : Starting new module process and passing new request to module uvmm: 141137294891877-3232
22.09.14 10:02:28.969  MAIN        ( PROCESS ) : running: ['/usr/sbin/univention-management-console-module', '-m', 'uvmm', '-s', '/var/run/univention-management-console/27229-1411372948966.socket', '-d', '4', '-l', 'en_US.UTF-8']
22.09.14 10:02:29.084  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-server", line 209, in <module>
    umc_daemon.do_action()
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 186, in do_action
    func(self)
  File "/usr/sbin/univention-management-console-server", line 142, in _restart
    self._start()
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 131, in _start
    self.app.run()
  File "/usr/sbin/univention-management-console-server", line 192, in run
    notifier.loop()
  File "/usr/lib/pymodules/python2.7/notifier/nf_generic.py", line 284, in loop
    step()
  File "/usr/lib/pymodules/python2.7/notifier/nf_generic.py", line 271, in step
    not __sockets[ cond ][ fd ]( sock_obj ):
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/server.py", line 165, in _receive
    self._handle( state, msg )
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/server.py", line 282, in _handle
    state.processor.request( msg )
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 281, in request
    self.handle_request_command( msg )
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 685, in handle_request_command
    mod_proc = ModuleProcess( module_name, debug = MODULE_DEBUG_LEVEL, locale = self.i18n.locale )
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 154, in __init__
    self.__pid = self.__process.start()
  File "/usr/lib/pymodules/python2.7/notifier/popen.py", line 135, in start
    self.pid =  subprocess.Popen( cmd, shell = self._shell ).pid
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1153, in _execute_child
    self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory Nicht gen?gend Hauptspeicher verf?gbar
Comment 1 Florian Best univentionstaff 2014-11-13 13:11:09 CET
*** Bug 36638 has been marked as a duplicate of this bug. ***
Comment 2 Florian Best univentionstaff 2015-05-12 17:00:49 CEST
Fixed by Bug #37366, additionally a human readable error message is shown.

*** This bug has been marked as a duplicate of bug 37366 ***
Comment 3 Florian Best univentionstaff 2015-11-12 18:15:02 CET
Created attachment 7293 [details]
Screenshot