We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

Stack-dump when installing Python Avahi module via pip



  • Running the following commaind:

    • pip install avahi

    Resulted in the following output šŸ˜ž

    root@firstfloorpowder:~# pip install avahi
    Downloading/unpacking avahi
    [ 2383.170000] pip invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
    [ 2383.180000] CPU: 0 PID: 2767 Comm: pip Not tainted 3.18.36 #1
    [ 2383.180000] Stack : 00000000 00000000 00000000 00000000 803c42b2 00000031 00000000 00000000
    00000001 00000000 8030b050 80362a03 00000acf 803c34d8 8270d5a8 00000000
    80362af0 80362c14 00000000 800a39e8 00000006 80080784 00000000 00000000
    8030e6a0 83be5b84 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    ...
    [ 2383.220000] Call Trace:
    [ 2383.220000] [<80071314>] show_stack+0x50/0x84
    [ 2383.220000] [<800cb55c>] dump_header.isra.17+0x4c/0x13c
    [ 2383.230000] [<800cb8c4>] oom_kill_process+0xc8/0x3c8
    [ 2383.230000] [<800cc060>] out_of_memory+0x2f0/0x328
    [ 2383.240000] [<800cf264>] __alloc_pages_nodemask+0x628/0x68c
    [ 2383.240000] [<800ca978>] filemap_fault+0x24c/0x438
    [ 2383.250000] [<800e4d5c>] __do_fault+0x34/0x9c
    [ 2383.250000] [<800e7894>] do_read_fault.isra.99+0x194/0x230
    [ 2383.260000] [<800e8010>] handle_mm_fault+0x3f4/0x79c
    [ 2383.260000] [<800759d0>] __do_page_fault+0x130/0x390
    [ 2383.270000] [<80060820>] ret_from_exception+0x0/0x10
    [ 2383.270000]
    [ 2383.270000] Mem-Info:
    [ 2383.280000] Normal per-cpu:
    [ 2383.280000] CPU 0: hi: 18, btch: 3 usd: 5
    [ 2383.280000] active_anon:11049 inactive_anon:14 isolated_anon:0
    [ 2383.280000] active_file:133 inactive_file:173 isolated_file:0
    [ 2383.280000] unevictable:0 dirty:0 writeback:0 unstable:0
    [ 2383.280000] free:245 slab_reclaimable:336 slab_unreclaimable:1198
    [ 2383.280000] mapped:69 shmem:26 pagetables:114 bounce:0
    [ 2383.280000] free_cma:0
    [ 2383.320000] Normal free:980kB min:984kB low:1228kB high:1476kB active_anon:44196kB inactive_anon:56kB active_file:532kB inactive_file:692kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65536kB managed:61152kB mlocked:0kB dirty:0kB writeback:0kB mapped:276kB shmem:104kB slab_reclaimable:1344kB slab_unreclaimable:4792kB kernel_stack:408kB pagetables:456kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
    [ 2383.360000] lowmem_reserve[]: 0 0
    [ 2383.360000] Normal: 1274kB (UER) 78kB (R) 216kB (R) 232kB (UR) 164kB (R) 0128kB 1256kB (R) 0512kB 01024kB 02048kB 0*4096kB = 980kB
    [ 2383.370000] 341 total pagecache pages
    [ 2383.380000] 0 pages in swap cache
    [ 2383.380000] Swap cache stats: add 0, delete 0, find 0/0
    [ 2383.380000] Free swap = 0kB
    [ 2383.390000] Total swap = 0kB
    [ 2383.390000] 16384 pages RAM
    [ 2383.390000] 0 pages HighMem/MovableOnly
    [ 2383.400000] 1096 pages reserved
    [ 2383.400000] [ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name
    [ 2383.410000] [ 412] 0 412 224 18 3 0 0 ubusd
    [ 2383.410000] [ 461] 0 461 345 21 3 0 0 ash
    [ 2383.420000] [ 1130] 0 1130 261 37 5 0 0 logd
    [ 2383.430000] [ 1139] 0 1139 509 56 4 0 0 rpcd
    [ 2383.440000] [ 1176] 0 1176 392 59 4 0 0 netifd
    [ 2383.450000] [ 1200] 0 1200 290 44 4 0 0 odhcpd
    [ 2383.450000] [ 1225] 0 1225 344 18 4 0 0 crond
    [ 2383.460000] [ 1243] 0 1243 288 18 3 0 0 dropbear
    [ 2383.470000] [ 1278] 0 1278 404 46 4 0 0 uhttpd
    [ 2383.480000] [ 1284] 0 1284 247 16 4 0 0 vsftpd
    [ 2383.490000] [ 1291] 0 1291 1074 81 4 0 0 device-client
    [ 2383.500000] [ 1303] 65534 1303 416 39 4 0 0 avahi-daemon
    [ 2383.500000] [ 1324] 0 1324 397 34 3 0 0 onion-helper
    [ 2383.510000] [ 1878] 0 1878 407 46 4 0 0 hostapd
    [ 2383.520000] [ 1903] 0 1903 396 32 4 0 0 wpa_supplicant
    [ 2383.530000] [ 1925] 0 1925 343 18 4 0 0 udhcpc
    [ 2383.540000] [ 2004] 200 2004 868 75 3 0 0 mosquitto
    [ 2383.540000] [ 2022] 65534 2022 234 26 4 0 0 dnsmasq
    [ 2383.550000] [ 2074] 0 2074 343 17 4 0 0 ntpd
    [ 2383.560000] [ 2087] 65534 2087 327 22 4 0 0 shellinaboxd
    [ 2383.570000] [ 2089] 65534 2089 327 22 4 0 0 shellinaboxd
    [ 2383.580000] [ 2332] 0 2332 305 38 3 0 0 dropbear
    [ 2383.590000] [ 2334] 0 2334 344 19 4 0 0 ash
    [ 2383.590000] [ 2349] 0 2349 305 38 3 0 0 dropbear
    [ 2383.600000] [ 2351] 0 2351 344 19 5 0 0 ash
    [ 2383.610000] [ 2767] 0 2767 12298 10225 15 0 0 pip
    [ 2383.620000] Out of memory: Kill process 2767 (pip) score 649 or sacrifice child
    [ 2383.620000] Killed process 2767 (pip) total-vm:49192kB, anon-rss:40780kB, file-rss:120kB
    Killed
    root@firstfloorpowder:~#



  • I realize that this is an "out of memory" error for "pip" as shown in the last 3-4 lines of the dump. I'm running with a 16GB flash drive using the extended overlay (recommended) file system extension method.

    df returns the following:
    root@firstfloorpowder:~# df
    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 15252848 62316 14392684 0% /
    /dev/root 7680 7680 0 100% /rom
    tmpfs 30576 104 30472 0% /tmp
    /dev/sda1 15252848 62316 14392684 0% /overlay
    overlayfs:/overlay 15252848 62316 14392684 0% /
    tmpfs 512 0 512 0% /dev



  • @Stephen-Tunney I am not an expert with pip however I suspect the error you are getting is indicating that you are running out of available RAM space. Using the extended overlay method you reference only increase available file system disk space not available RAM space.

    However, there is a technique that will increase available RAM space by creating an additional swap partition on your flash drive and mounting it as swap space. I have produced some documentation on how to do this: 0_1472078693377_Creating Swap Space on the Omega.pdf

    I run like this regularly with a 1GByte swap partition with no problems and plenty of RAM space.

    Alternatively, you could wait till the Omega2 Plus is available (https://www.indiegogo.com/projects/omega2-5-linux-computer-with-wi-fi-made-for-iot#/) - this will give you twice the available space compared to the original Omega (or the forthcoming Omega2)



Looks like your connection to Community was lost, please wait while we try to reconnect.