[OpenWrt-Tickets] [OpenWrt] #2702: r9548: ipkg fails with "ERROR: fork failed before execution: " or "fork failed: Cannot allocate memory"

OpenWrt openwrt-devel at lists.openwrt.org
Tue Mar 25 12:55:05 CET 2008


#2702: r9548: ipkg fails with "ERROR: fork failed before execution: " or "fork
failed: Cannot allocate memory"
----------------------+-----------------------------------------------------
 Reporter:  Tom       |        Owner:  developers
     Type:  defect    |       Status:  reopened  
 Priority:  high      |    Milestone:            
Component:  packages  |   Resolution:            
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by claudio <claudyus84 gmail com >):

 Replying to [comment:12 bmilde]:
 > But this solution is not a real one - it's a very dirty fix. It would be
 cool to fix this. It's 100% reproduceable, I tested with another fonera. A
 firmware compiled a half year ago or so hadn't this issue.

 Yes it's true, this is a bad workaround so today I investigate the problem
 a bit, my fonera is very heavily loaded

 {{{
 root at OpenWrt:~# free
               total         used         free       shared      buffers
   Mem:        13620        12868          752            0            0
  Swap:            0            0            0
 Total:        13620        12868          752
 }}}

 and original ipkg status file is big!!

 {{{
 -rw-r--r--    1 root     root         4297 Mar 14 11:36 status
 }}}

 so the problem is clear... There no more space to load ipkg internal
 structure from ipkg status file and this bring ipkg to fail before
 dowloading package:

 {{{
 xsystem: ERROR: fork failed before execution ....
 }}}

 I think that only "clean" solution is to remove uneedded package (this
 reduce ipkg status dimension file), unload unneeded modules, stopping
 unneeded service, clear tmp, setting up swap etc etc...
 I made a mistake?

-- 
Ticket URL: <https://dev.openwrt.org/ticket/2702#comment:13>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology


More information about the openwrt-tickets mailing list