OpenWrt 18.06 - miniupnpd crashing

Hi guys,

just updated to 18.06 on my WDR4900. Everything is running good, except miniupnpd is crashing.

/etc/confg/upnpd:

config upnpd 'config'
        option download '1024'
        option upload '512'
        option internal_iface 'lan'
        option port '5000'
        option upnp_lease_file '/var/run/miniupnpd.leases'
        option uuid '97e46378-0cbf-4dc7-afca-7cefd441579a'
        option enabled '1'

config perm_rule
        option action 'allow'
        option ext_ports '1024-65535'
        option int_addr '0.0.0.0/0'
        option int_ports '1024-65535'
        option comment 'Allow high ports'

config perm_rule
        option action 'deny'
        option ext_ports '0-65535'
        option int_addr '0.0.0.0/0'
        option int_ports '0-65535'
        option comment 'Default deny'

syslog:

Sat Aug  4 14:42:42 2018 daemon.err miniupnpd[4690]: could not open lease file: /var/run/miniupnpd.leases
Sat Aug  4 14:42:42 2018 daemon.notice miniupnpd[4690]: HTTP listening on port 5000
Sat Aug  4 14:42:42 2018 daemon.notice miniupnpd[4690]: HTTP IPv6 address given to control points : [fd20:ff29:4359::1]
Sat Aug  4 14:42:42 2018 daemon.notice miniupnpd[4690]: Listening for NAT-PMP/PCP traffic on port 5351
Sat Aug  4 14:42:42 2018 kern.info kernel: [ 1354.807759] miniupnpd[4690]: unhandled signal 11 at 00000000 nip b7971400 lr 1000a780 code 30001

# strace miniupnpd -f /tmp/etc/miniupnpd.conf

execve("/usr/sbin/miniupnpd", ["miniupnpd", "-f", "/tmp/etc/miniupnpd.conf"], 0xbfa1d968 /* 12 vars */) = 0
set_tid_address(0xb7ca40b8)             = 4790
open("/etc/ld-musl-powerpc-sf.path", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/libip4tc.so.0", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libip4tc.so.0", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/libip4tc.so.0", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0755, st_size=65800, ...}) = 0
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\21@\0\0\0004"..., 936) = 936
mmap2(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7be1000
mmap2(0xb7c00000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0xb7c00000
close(3)                                = 0
open("/lib/libuuid.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libuuid.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/libuuid.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0755, st_size=65544, ...}) = 0
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\17\320\0\0\0004"..., 936) = 936
mmap2(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7bc0000
mmap2(0xb7bdf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0xb7bdf000
close(3)                                = 0
open("/lib/libip6tc.so.0", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libip6tc.so.0", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/libip6tc.so.0", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0755, st_size=65800, ...}) = 0
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\21\360\0\0\0004"..., 936) = 936
mmap2(NULL, 135168, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7b9f000
mmap2(0xb7bbe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0xb7bbe000
close(3)                                = 0
open("/lib/libgcc_s.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=131384, ...}) = 0
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0#@\0\0\0004"..., 936) = 936
mmap2(NULL, 200704, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7b6e000
mmap2(0xb7b9d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1f000) = 0xb7b9d000
close(3)                                = 0
mprotect(0xb7c00000, 4096, PROT_READ)   = 0
mprotect(0xb7bdf000, 4096, PROT_READ)   = 0
mprotect(0xb7bbe000, 4096, PROT_READ)   = 0
mprotect(0xb7b9d000, 4096, PROT_READ)   = 0
mprotect(0x1002f000, 4096, PROT_READ)   = 0
open("/tmp/etc/miniupnpd.conf", O_RDONLY|O_LARGEFILE) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="ext_ifname=eth0.2\nlistening_ip=b"..., iov_len=1024}], 2) = 381
readv(3, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0
close(3)                                = 0
socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFFLAGS, {ifr_name="br-lan", ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST}) = 0
ioctl(3, SIOCGIFADDR, {ifr_name="br-lan", ifr_addr={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.0.1")}}) = 0
ioctl(3, SIOCGIFNETMASK, {ifr_name="br-lan", ifr_netmask={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("255.255.255.0")}}) = 0
close(3)                                = 0
socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
ioctl(3, SIOCGIFINDEX, {ifr_name="br-lan", }) = 0
close(3)                                = 0
chdir("/")                              = 0
open("/dev/null", O_RDWR|O_LARGEFILE)   = 3
dup2(3, 0)                              = 0
dup2(3, 1)                              = 1
dup2(3, 2)                              = 2
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
fork()                                  = 4791
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Any ideas?

opkg list-installed libuuid ?

root@router:/etc/config# opkg list-installed libuuid
libuuid - 2.32-2

Ah, right, sorry, that was actually the line in the log which didn't throw an error, nevermind.

Yes, also seeing this. Noticed when the Xbox NAT status was not open, and then I tried some UPnP test apps, and those are not working either. Set for IDGv1.

Can anyone guide me in debugging this? I'm neither a linux expert nor do I know a lot about power pc architecture.

Hi! I have exactly the same problem. It's impossible to make UPnP work in mi TP-Link WDR4900 with 18.06.5 OpenWRT. It was working in version 14, but is not after the update...

Any solution to this?