[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
Fri Jul 4 01:16:10 CEST 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 anonymous):
Same problem here on a Fonera with Kamikaze r11305:
{{{
root at ap200:/tmp# ipkg install -nodeps -V99 screen_4.0.3-1_mips.ipk
Debug install_cmd: screen_4.0.3-1_mips.ipk
Package screen provided by hand (screen_4.0.3-1_mips.ipk).
Function: pkg_vec_insert_merge. Adding new pkg=screen version=4.0.3-1
arch=mips
pkg_info_preinstall_check: updating arch priority for each package
pkg_info_preinstall_check: update file owner list
Getting old from pkg_hash_fetch
Getting new from pkg_hash_fetch
best installation candidate for screen
adding screen to providers
screen arch=mips arch_priority=10 version=4.0.3-1
Found a valid candidate for the install: screen 4.0.3-1
New versions from pkg_hash_fetch 4.0.3-1
Versions from pkg_hash_fetch in ipkg_install_by_name new 4.0.3-1
Function: ipkg_install_by_name calling ipkg_install_pkg
Function: ipkg_install_pkg calling pkg_arch_supported ipkg_install_pkg
arch mips (priority 10) supported for pkg screen
Installing screen (4.0.3-1) to root...
ipkg: fork failed: Cannot allocate memory
}}}
I don't think that the error is caused by the file size of
/usr/lib/ipkg/status. Remember that 'free' gives you '''kilo bytes'''
whereas 'ls -l' rebots '''bytes'''.
{{{
root at ap200:/tmp# free
total used free shared buffers
Mem: 13700 10892 2808 0 56
Swap: 0 0 0
Total: 13700 10892 2808
root at ap200:/tmp# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 6.7M 192.0k 6.5M 3% /tmp
tmpfs 512.0k 0 512.0k 0% /dev
/dev/mtdblock3 5.9M 1.1M 4.8M 18% /jffs
mini_fo:/jffs 1.0M 1.0M 0 100% /
root at ap200:/tmp# ls -lhR /usr/lib/ipkg/
/usr/lib/ipkg/:
drwxr-xr-x 2 root root 0 Jan 11 02:27 info
drwxr-xr-x 2 root root 0 Jan 1 00:09 lists
-rw-r--r-- 1 root root 3.6k Jan 11 02:27 status
/usr/lib/ipkg/info:
-rw-r--r-- 1 root root 1.4k May 31 2008 base-files-
atheros.list
-rw-r--r-- 1 root root 35 May 31 2008 bridge.list
-rw-r--r-- 1 root root 1.7k May 31 2008 busybox.list
-rw-r--r-- 1 root root 106 May 31 2008 dnsmasq.list
-rw-r--r-- 1 root root 270 May 31 2008 dropbear.list
-rw-r--r-- 1 root root 353 Sep 30 2007 ethtool.control
-rw-r--r-- 1 root root 18 Jan 5 01:36 ethtool.list
-rw-r--r-- 1 root root 50 May 31 2008 hotplug2.list
-rw-r--r-- 1 root root 590 May 31 2008 iptables.list
-rw-r--r-- 1 root root 2 May 31 2008 kernel.list
-rw-r--r-- 1 root root 342 May 31 2008 kmod-ipt-
nathelper.list
-rw-r--r-- 1 root root 683 May 31 2008 kmod-madwifi.list
-rw-r--r-- 1 root root 231 May 31 2008 kmod-ppp.list
-rw-r--r-- 1 root root 110 May 31 2008 kmod-pppoe.list
-rw-r--r-- 1 root root 27 May 31 2008 libgcc.list
-rw-r--r-- 1 root root 335 Sep 29 2007 libpcap.control
-rw-r--r-- 1 root root 50 Jan 3 02:52 libpcap.list
-rw-r--r-- 1 root root 42 May 31 2008 libuci.list
-rw-r--r-- 1 root root 19 May 31 2008 mtd.list
-rw-r--r-- 1 root root 332 Sep 30 2007 ntpclient.control
-rw-r--r-- 1 root root 162 Jan 1 00:20 ntpclient.list
-rw-r--r-- 1 1000 1000 22 Jun 13 2008 olqm-
client.conffiles
-rw-r--r-- 1 1000 1000 227 Jun 13 2008 olqm-
client.control
-rw-r--r-- 1 root root 98 Jan 11 02:27 olqm-client.list
-rw-r--r-- 1 root root 288 Sep 30 2007 olsrd-mod-
httpinfo.control
-rw-r--r-- 1 root root 40 Jan 1 00:16 olsrd-mod-
httpinfo.list
-rw-r--r-- 1 root root 16 Sep 30 2007 olsrd.conffiles
-rw-r--r-- 1 root root 277 Sep 30 2007 olsrd.control
-rw-r--r-- 1 root root 82 Jan 1 00:15 olsrd.list
-rw-r--r-- 1 root root 128 May 31 2008 ppp-mod-pppoe.list
-rw-r--r-- 1 root root 318 May 31 2008 ppp.list
-rw-r--r-- 1 root root 290 Sep 30 2007 tcpdump.control
-rw-r--r-- 1 root root 18 Jan 3 02:53 tcpdump.list
-rw-r--r-- 1 root root 57 May 31 2008 uci.list
-rw-r--r-- 1 root root 370 May 31 2008 uclibc.list
-rw-r--r-- 1 root root 27 May 31 2008 udevtrigger.list
-rw-r--r-- 1 root root 106 May 31 2008 wireless-
tools.list
/usr/lib/ipkg/lists:
}}}
Very frustrating...
--
Ticket URL: <https://dev.openwrt.org/cgi-bin/trac.fcgi/ticket/2702#comment:18>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
More information about the openwrt-tickets
mailing list