Comments (13)
I did not get feedback yet, there is only an email of the author, no issue tracker. But you can try my workaround here, which I am happy with:
#https://github.com/hajoscher/zerotier-openwrt/tree/splice-workaround/zerotier
@mwarning would you kindly review this patch and if you agree I could issue a pull request.
from zerotier-openwrt.
DeferredPackets is dying in the next version so don't bother. A quick fix would be to edit OneService.cpp and eliminate the two Thread::start()
lines (one after the other) that start background threads. That way everything will just happen in the main thread.
from zerotier-openwrt.
meh, I thought this commit would have fixed the crash:
zerotier/ZeroTierOne@8302507
No idea so far. It has been working for me..
from zerotier-openwrt.
I tried to track it down, seems like a bug in uclibc++ for a special case in the std::list::splice function:
https://git.busybox.net/uClibc++/tree/include/list#n608
previous is not defined if the list has only one element.
As a workaround one could patch node/DeferredPackets.cpp in zerotier to use _q instead of pkt when calling tryDecode and skip the splice. Not sure why this dummy list is needed anyway. Or use push_back and pop instead of splice. Anyway, I'll submit an issue to the author of uclibc++ as well.
from zerotier-openwrt.
Hi,
I have problems with seg faults to:
[ 375.300293]
[ 375.300293] do_page_fault(): sending SIGSEGV to zerotier-one for invalid write access to 00000004
[ 375.309381] epc = 0040b2b1 in zerotier-one[400000+9c000]
[ 375.314965] ra = 0040b273 in zerotier-one[400000+9c000]
[ 375.320425]
[ 531.892032]
[ 531.892032] do_page_fault(): sending SIGSEGV to zerotier-one for invalid write access to 00000004
[ 531.901110] epc = 0040b2b1 in zerotier-one[400000+9c000]
[ 531.906795] ra = 0040b273 in zerotier-one[400000+9c000]
[ 531.912671]
So most likely because of the same reasons.
Did you got an answer or workaround from uclibc++?
from zerotier-openwrt.
The defer queue was kind of ugly so it died. 1.2.0 will do this differently.
from zerotier-openwrt.
But I'd do a bug report to uclibc++ for that std::list::splice() bug. That will show up elsewhere.
from zerotier-openwrt.
Thank you. Any workaround is temporary anyway, so I am happy with the current patch.
Sure, I did send an email about the bug, since there is no bug tracker. No response however. I will submit one for openwrt directly.
from zerotier-openwrt.
@hajoscher nice find find!
@adamierymenko thanks for dropping by and suggesting a fix.
from zerotier-openwrt.
@adamierymenko can you explain how removing both lines will fix the problem? I do not see the connection between between thread and the slice bug.
from zerotier-openwrt.
I have upload new release binaries. Let me know if they work for you. Thanks. :-)
from zerotier-openwrt.
I assume the problem has been fixed and close this issue.
from zerotier-openwrt.
This uclibc++ problem is also mentioned at https://bugs.openwrt.org/index.php?do=details&task_id=1859
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.
- Use openwrt with zerotier as a gateway
- How do you solve mtu issue on Zerotier?
- 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.