FS#588 - openvpn-mbedtls crash on mpc85xx with signal 4 (SIGILL)
device: tp-link wdr4900
affected version: lede 17.01 / openvpn-mbedtls - 2.4.0-3
openvpn config:
dev tun-monitoring remote somehost 1194 ca /etc/openvpn/monitoring-vpn/ca.crt cert /etc/openvpn/monitoring-vpn/xyz.crt key /etc/openvpn/monitoring-vpn/xyz.key tls-auth /etc/openvpn/monitoring-vpn/ta.key 1 remote-cert-tls server keepalive 10 120 cipher AES-256-CBC comp-lzo yes persist-key persist-tun
openvpn-openssl works
Please make a core dump and figure out exactly where it crashes in the code.
Hi, not sure if this is the right thing to do but here goes anyway.
I'm running a TL-WDR4900 on lede-17.01.0-r3205-59508e3-mpc85xx-generic-tl-wdr4900-v1-squashfs-sysupgrade.bin.
I find that 'curl' fails with 'Illegal Instruction' when making a https transfer, but is fine with http. Syslog:
Mar 29 17:11:33 <1.6> 10.0.20.4 c-fw kernel: [2073277.579797] curl[14801]: unhandled signal 4 at b7d2b408 nip b7d2b408 lr b7d19af8 code 30001
I feel the finger may be pointing toward a problem with libembedtls on mpc85xx.
The packages on my firewall:
curl - 7.52.1-3
libmbedtls - 2.4.2-1
The problem is still there with my TL-WR4900 (mpc85xx) lede-17.01.04 stable release.
branch (git-17.290.79498-d3f0685) / LEDE Reboot 17.01.4 r3560-79f57e422d
$ curl https://www.example.com [ 4674.378378] curl[7408]: unhandled signal 4 at b77eda40 nip b77eda40 lr b77dbcfc code 30001
Tested with:
curl_7.52.1-5
libcurl_7.52.1-5
libmbedtls_2.6.0-1
Also tested upgrading manually cURL and Libcurl (powerpc_8540.ipk)
curl_7.55.1-2
libcurl_7.55.1-2
libmbedtls_2.6.0-1
Strange fact is that before upgrading to the stable branch, I was using the nightly snapshot (downloaded 16/10) and there curl/libcurl_7.55.1-2 (+ libmbedtls_2.6.0-1) were there and all was working without a problem.
Any clues?