Comments (29)
I don't think I can debug this without hardware.
What image did you use (compiled it yourself or downloaded from openwrt.org)?
And how did you install Zerotier?
from zerotier-openwrt.
I downloaded the latest build of 18.06.0 from OpenWrt and installed zerotier through the web interface, so I presume it came from the OpenWrt package archive for 18.06.0. If there is anything I can do to help debug this, I can certainly run stuff on the router in question.
from zerotier-openwrt.
I think the problem are stack protection flags used for building ZT.
Some flags would need to be tested. But I do not have the time right now.
from zerotier-openwrt.
see the same behavior on WNDR3700v2, when i upgrade to zt 1.2.12 i get a seq fault...
interesting is... it does not fail immediately, most of the time its works some minutes, creates the interface, joins the network a.s.o. but suddenly crashes
i tried to build everything from scratch as well... no luck yet
@mwarning what stack protection flags are you referring to?
from zerotier-openwrt.
ZeroTier defines a few:
https://github.com/zerotier/ZeroTierOne/blob/master/make-linux.mk#L66
I had to change it a bit to run on my test platform (and thought this would be sufficient..)
https://github.com/openwrt/packages/tree/master/net/zerotier/patches
from zerotier-openwrt.
built (against 18.06.0) without stack-protection flag works well on a tl-wdr4300-v1
@alexforencich please test this build on your WNDR3700v2 (i cannot reach mine from work)
https://router.wsn.at/dist/packages/mips_24kc/packages/zerotier_1.2.12-2_mips_24kc.ipk
from zerotier-openwrt.
Nice, if this works for @alexforencich as well, then please make a pull request or let me know what you have changed.
from zerotier-openwrt.
my tests
- linksys-wrt1900ac (arm_cortex-a9_vfpv3) - working
- tl-wr1043nd-v1 (mips_24kc) - working
- tl-wdr4300-v1 (mips_24kc) - working
- wndr3700v2 (mips_24kc) - seq fault
removing the -fstack-protector
flag did not help
from zerotier-openwrt.
Tried it, it seems to be segfaulting
from zerotier-openwrt.
@zyclonite ZT adds -fstack-protector also to CXXFLAGS in its Makefile and various flags depending on the platform. I suspect the problem to be there.
from zerotier-openwrt.
i'll do some more tests/tries but i am off for around a week now
from zerotier-openwrt.
ok, thank you very much for the testing so far!
from zerotier-openwrt.
i did a debug build for the zerotier package, maybe someone can test it (my router seems to be broken, power supply and wan port, so i can not test any longer)
https://router.wsn.at/dist/packages/mips_24kc/packages/zerotier_1.2.12-2_mips_24kc-debug.ipk
from zerotier-openwrt.
@zyclonite can you get me a openwrt-ramips-mt7620-wt3020-8M-squashfs-sysupgrade.bin? I do not have any other platform available for testing right now.
from zerotier-openwrt.
@mwarning here you are (including debug build of zt)
https://router.wsn.at/dist/ramips/mt7620/openwrt-ramips-mt7620-wt3020-8M-squashfs-sysupgrade.bin
from zerotier-openwrt.
@zyclonite ZT/image works for me.
from zerotier-openwrt.
i fear its only this wndr3700v2 which does not work...
from zerotier-openwrt.
got another wndr370v2 router to test during the weekend, tried the debug version... but it looks like it is always crashing at different situations (at least what the consule output states before the crash)
a bit strange was, the debug version has no symbols... so i could not attach gdb...
do i need another flag for the build to include debug symbols?
from zerotier-openwrt.
The package makefile passes a flag to the Zerotier makefile: https://github.com/mwarning/zerotier-openwrt/blob/master/zerotier/Makefile#L42
Maybe the Makefile do not recognize that flag anymore.
from zerotier-openwrt.
i think, that's working because i get debug output but still no debug flags... need to check the zt repo...
from zerotier-openwrt.
Same problem under openwrt 18.06.1. Zerotier fails to start with 'illegal instruction'.
from zerotier-openwrt.
i have met the same problem on my wndr3800
zerotier version is 1.2.8,I try to update to 1.2.10, faild
'zerotier-one -d' will be killed without any log
Neither official or compiled myself
And my openwrt is also 18.06.1
and HUAWEI hg255d is faild too
from zerotier-openwrt.
What about openwrt nightly? https://downloads.openwrt.org/snapshots/targets/
from zerotier-openwrt.
https://downloads.openwrt.org/snapshots/targets/ar71xx/generic/openwrt-ar71xx-generic-wndr3800-squashfs-sysupgrade.bin (Tue Oct 9 13:37:29 2018 ) && zerotier 1.2.12
the process is been killed too
from zerotier-openwrt.
crashes on some other routers as well (tested with tl-wr1043nd v1)... but it can take to several hours until that happens
from zerotier-openwrt.
@zyclonite do you see the "invalid instruction" in the system log?
from zerotier-openwrt.
i'll try to find this out... problem is, this is a remote router and after zt crashed i need to drive there to check (and on avg it happens every after 6 to 8 hours)
from zerotier-openwrt.
it seem the problem is solved on the WNDR3800 the nightly version with zt 1.2.12。
but i meet a new problem with huawei HG255d.
from zerotier-openwrt.
Please open another ticket for the huawei HG255d if it is still present.
from zerotier-openwrt.
Related Issues (20)
- not found ztXXXXXXXX interface HOT 9
- 更新
- Zeronsd - compile and add to feed in openwrt HOT 4
- 版本太旧了,请更新到最新版本的zerotier HOT 1
- Very high memory and CPU usage HOT 2
- Backport 1.10.1 to OpenWRT 22.03 HOT 6
- Unable to view apple airport express and apple timecapsule device over zerotier HOT 1
- ARM build missing libstdc++10 dependency HOT 1
- Can I run this, going to my normal full tunnel exit point HOT 1
- How can I running zerotier without NAT mode? HOT 5
- cannot access devices on LAN after follow thru the installation guide. HOT 5
- Please update to the latest version ZeroTier 1.12 +
- Zerotier Multipath not working HOT 9
- Openwrt does not support allocating ipv6 prefixes of ZeroTier "6PLANE" (/80 routable for each device) with a length of 80.
- feature request: support MOON peers in the configuration file HOT 8
- Please upgrade ZEROTIER to the latest version !!! HOT 1
- openwrt-3.10.14 ,barrier_breaker/14.07/ HOT 1
- Can you support the compilation of this source code? Openwrt-3.10.14 HOT 2
- how to compile latest ZT?? HOT 6
- zerotier-cli shows ‘Segmentation fault’ on version 1.8.6 with arm_cortex-a7-neon and arm_cortex-a15_neon-vfpv4 and ARMv6 HOT 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zerotier-openwrt.