OPKG segfaults when starting
Freshman Member
Hi all,
I have an old NSA221 and I wanted to try to replace the old samba v1 with v2 through entware. However when running opkg via ssh I get a "Segmentation fault (core dumped)".
The log looks like this
Opened logfile at Sun Oct 26 15:09:10 GMT 2025
Flushing memory buffer
Starting up
mv /usr/local/zy-pkgs/opt/var/log/Entware-ng.log.1.gz /usr/local/zy-pkgs/opt/var/log/Entware-ng.log.2.gz
Flushing done
[15:09:10] Create symlink /opt -> /usr/local/zy-pkgs/opt
[15:09:10] /opt/etc/init.d/rc.unslung is not available, start installer
[15:09:10] Warning: Folder /opt/usr exists!
[15:09:10] Warning: If something goes wrong please clean /opt folder and try again.
[15:09:10] Warning: Folder /opt/bin exists!
[15:09:11] Warning: If something goes wrong please clean /opt folder and try again.
[15:09:11] Warning: Folder /opt/etc/init.d exists!
[15:09:11] Warning: If something goes wrong please clean /opt folder and try again.
[15:09:11] Warning: Folder /opt/lib/opkg exists!
[15:09:11] Warning: If something goes wrong please clean /opt folder and try again.
[15:09:11] Warning: Folder /opt/sbin exists!
[15:09:11] Warning: If something goes wrong please clean /opt folder and try again.
[15:09:11] Warning: Folder /opt/share exists!
[15:09:11] Warning: If something goes wrong please clean /opt folder and try again.
[15:09:11] Warning: Folder /opt/tmp exists!
[15:09:11] Warning: If something goes wrong please clean /opt folder and try again.
[15:09:11] Warning: Folder /opt/var/lock exists!
[15:09:11] Warning: If something goes wrong please clean /opt folder and try again.
[15:09:11] Warning: Folder /opt/var/run exists!
[15:09:11] Warning: If something goes wrong please clean /opt folder and try again.
[15:09:11] Info: Opkg package manager deployment...
[15:09:11] --15:09:11-- http://pkg.entware.net/binaries/armv5/installer/opkg
[15:09:11] => `/opt/bin/opkg'
[15:09:11] Resolving pkg.entware.net... 158.160.45.54
[15:09:11] Connecting to pkg.entware.net[158.160.45.54]:80... connected.
[15:09:11] HTTP request sent, awaiting response... 200 OK
[15:09:11] Length: 127,636 [application/octet-stream]
[15:09:11]
[15:09:11] 0K .......... .......... .......... .......... .......... 40% 440.01 KB/s
[15:09:11] 50K .......... .......... .......... .......... .......... 80% 865.17 KB/s
[15:09:11] 100K .......... .......... .... 100% 495.34 KB/s
[15:09:12]
[15:09:12] 15:09:11 (563.55 KB/s) - `/opt/bin/opkg' saved [127636/127636]
[15:09:12]
[15:09:12] --15:09:12-- http://pkg.entware.net/binaries/armv5/installer/opkg.conf
[15:09:12] => `/opt/etc/opkg.conf'
[15:09:12] Resolving pkg.entware.net... 158.160.45.54
[15:09:12] Connecting to pkg.entware.net[158.160.45.54]:80... connected.
[15:09:12] HTTP request sent, awaiting response... 200 OK
[15:09:12] Length: 142 [application/octet-stream]
[15:09:12]
[15:09:12] 0K 100% 1.35 MB/s
[15:09:12]
[15:09:12] 15:09:12 (1.35 MB/s) - `/opt/etc/opkg.conf' saved [142/142]
[15:09:12]
[15:09:12] --15:09:12-- http://pkg.entware.net/binaries/armv5/installer/libgcc_s.so.1
[15:09:12] => `/opt/lib/libgcc_s.so.1'
[15:09:12] Resolving pkg.entware.net... 158.160.45.54
[15:09:12] Connecting to pkg.entware.net[158.160.45.54]:80... connected.
[15:09:12] HTTP request sent, awaiting response... 200 OK
[15:09:12] Length: 55,220 [application/octet-stream]
[15:09:12]
[15:09:12] 0K .......... .......... .......... .......... .......... 92% 423.59 KB/s
[15:09:12] 50K ... 100% 5.37 MB/s
[15:09:12]
[15:09:12] 15:09:12 (454.10 KB/s) - `/opt/lib/libgcc_s.so.1' saved [55220/55220]
[15:09:12]
[15:09:13] --15:09:12-- http://zyxel.ddnss.eu/Users/Mijzelf/Entware-ng/binaries/armv5/installer/ld-2.22.so-2.6.24
[15:09:13] => `/opt/lib/ld-2.22.so'
[15:09:13] Resolving zyxel.ddnss.eu... 158.101.164.98
[15:09:13] Connecting to zyxel.ddnss.eu[158.101.164.98]:80... connected.
[15:09:13] HTTP request sent, awaiting response... 200 OK
[15:09:13] Length: 142,744
[15:09:13]
[15:09:13] 0K .......... .......... .......... .......... .......... 35% 1.29 MB/s
[15:09:13] 50K .......... .......... .......... .......... .......... 71% 1.98 MB/s
[15:09:13] 100K .......... .......... .......... ......... 100% 2.29 MB/s
[15:09:13]
[15:09:13] 15:09:13 (1.71 MB/s) - `/opt/lib/ld-2.22.so' saved [142744/142744]
[15:09:13]
[15:09:13] --15:09:13-- http://zyxel.ddnss.eu/Users/Mijzelf/Entware-ng/binaries/armv5/installer/libc-2.22.so-2.6.24
[15:09:13] => `/opt/lib/libc-2.22.so'
[15:09:13] Resolving zyxel.ddnss.eu... 158.101.164.98
[15:09:13] Connecting to zyxel.ddnss.eu[158.101.164.98]:80... connected.
[15:09:14] HTTP request sent, awaiting response... 200 OK
[15:09:14] Length: 1,256,740
[15:09:14]
[15:09:14] 0K .......... .......... .......... .......... .......... 4% 1.62 MB/s
[15:09:14] 50K .......... .......... .......... .......... .......... 8% 2.43 MB/s
[15:09:14] 100K .......... .......... .......... .......... .......... 12% 1.99 MB/s
[15:09:14] 150K .......... .......... .......... .......... .......... 16% 10.63 MB/s
[15:09:14] 200K .......... .......... .......... .......... .......... 20% 3.23 MB/s
[15:09:14] 250K .......... .......... .......... .......... .......... 24% 4.06 MB/s
[15:09:14] 300K .......... .......... .......... .......... .......... 28% 11.06 MB/s
[15:09:14] 350K .......... .......... .......... .......... .......... 32% 7.40 MB/s
[15:09:14] 400K .......... .......... .......... .......... .......... 36% 7.40 MB/s
[15:09:14] 450K .......... .......... .......... .......... .......... 40% 1.86 MB/s
[15:09:14] 500K .......... .......... .......... .......... .......... 44% 6.57 MB/s
[15:09:14] 550K .......... .......... .......... .......... .......... 48% 10.09 MB/s
[15:09:14] 600K .......... .......... .......... .......... .......... 52% 6.07 MB/s
[15:09:14] 650K .......... .......... .......... .......... .......... 57% 898.26 KB/s
[15:09:14] 700K .......... .......... .......... .......... .......... 61% 13.21 MB/s
[15:09:14] 750K .......... .......... .......... .......... .......... 65% 16.97 MB/s
[15:09:15] 800K .......... .......... .......... .......... .......... 69% 17.08 MB/s
[15:09:15] 850K .......... .......... .......... .......... .......... 73% 17.38 MB/s
[15:09:15] 900K .......... .......... .......... .......... .......... 77% 17.01 MB/s
[15:09:15] 950K .......... .......... .......... .......... .......... 81% 913.19 KB/s
[15:09:15] 1000K .......... .......... .......... .......... .......... 85% 17.96 MB/s
[15:09:15] 1050K .......... .......... .......... .......... .......... 89% 17.72 MB/s
[15:09:15] 1100K .......... .......... .......... .......... .......... 93% 13.14 MB/s
[15:09:15] 1150K .......... .......... .......... .......... .......... 97% 17.63 MB/s
[15:09:15] 1200K .......... .......... ....... 100% 24.36 MB/s
[15:09:15]
[15:09:15] 15:09:13 (3.87 MB/s) - `/opt/lib/libc-2.22.so' saved [1256740/1256740]
[15:09:15]
[15:09:15] ln: ld-linux.so.3: File exists
[15:09:16] ln: libc.so.6: File exists
[15:09:16] Info: Basic packages installation...
[15:09:16] Segmentation fault (core dumped)
[15:09:16] Segmentation fault (core dumped)
[15:09:16] Segmentation fault (core dumped)
[15:09:16] Segmentation fault (core dumped)
[15:09:16] Segmentation fault (core dumped)
[15:09:16] Segmentation fault (core dumped)
[15:09:16] Segmentation fault (core dumped)
[15:09:16] /opt/usr/lib/locale/locale-archive: No such file or directory
[15:09:16] Info: Congratulations!
[15:09:16] Info: If there are no errors above then Entware-ng was successfully initialized.
[15:09:17] Info: Found a Bug? Please report at https://github.com/Entware-ng/Entware-ng/issues
[15:09:17] Execute /opt/etc/init.d/rc.unslung start
[15:09:17] /usr/local/zy-pkgs/etc/init.d/Entware-ng: line 596: /opt/etc/init.d/rc.unslung: not found
[15:09:17] Done /opt/etc/init.d/rc.unslung start
Closed logfile at Sun Oct 26 15:09:17 GMT 2025
I have rebooted, wiped everything from /opt and then dis-&reenabled the entware packet but the problem persists. Having not much of a clue this looks a bit as if the executable/libs from entware itself and the libs from the ddns repo are not working together? Might this be due to an update to entware?
Thanks in advance for any hints
pjfg
All Replies
-
Might this be due to an update to entware?
Don't think so. As you can see at http://pkg.entware.net/binaries/armv5/ nothing has changed since 2018.
When starting the Entware-ng package, the script /usr/local/zy-pkgs/etc/init.d/Entware-ng is executed. This script creates a symlink /opt to /usr/local/zy-pkgs/opt/ and then wants to execute /opt/etc/init.d/rc.unslung (which on his term executes all start scripts in /opt/etc/init.d/). The absence of this script is the trigger to install Entware-ng.
Your log is clearly not a 'clean' install, as /opg is not empty. Yet that shouldn't be a problem as it just installs the same content another time. The file /opt/etc/init.d/rc.unslung is part of the package entware-opt, which is installed as last package. But in your case that is never reached.
I have seen Segmentation fault's here before, and when I remember well that was caused by an empty file, somewhere. Have you checked in the installed /opt/ directory if all files looked healthy?
0
Categories
- All Categories
- 439 Beta Program
- 2.8K Nebula
- 199 Nebula Ideas
- 125 Nebula Status and Incidents
- 6.3K Security
- 496 USG FLEX H Series
- 322 Security Ideas
- 1.6K Switch
- 83 Switch Ideas
- 1.3K Wireless
- 49 Wireless Ideas
- 6.8K Consumer Product
- 286 Service & License
- 457 News and Release
- 89 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 4.3K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 95 Security Highlight
Guru Member