-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daemon crases after requesting specific listing of links #3912
Comments
This isn't complete log, and I can't reproduce it. Could you capture the log straight to a file and to ls then. |
Here is complete log. I can perfectly reproduce this bug every time I need. |
Looks like goroutine explosion (error is pthreads unable to create thread).
But I am not sure why there are 2k active dials going on. |
@Zaijo how much ram does your machine have? Its a macbook right? |
It isn't ram, it is thread count. The crash is due to pthereads being unable to spawn thread for goroutine. The interesting thing here is 2k dials in progress. |
@Kubuxu right, but i've seen thread death occur once ipfs starts swapping. Things start happening really slowly, and then go decides to create more threads. |
I did the same
Output from the daemon: https://gist.github.com/anonymous/9b40eec6552d63ef253fdb531fc73c6d No results were ever returned, the daemon didn't crash. I hope that helps. Macbook Pro, 8GB ram, 0.4.9 official OS X build, poor internet connection. |
I think this will be resolved in latest master, there was an issue in dial rate limiting. @mattseh could you try again using a build from latest master and let us know if things are still broken? |
@whyrusleeping It's MacBook Pro 8 GB RAM. Menawhile I upgraded to MacOS Sierra. |
It was because of 2k concurrent dials, which can't happen anymore due to fix in go-libp2p-swarm. |
I ran this again with 0.4.11-rc2, on both my Macbook Pro 8GB ram and a linux server with 16 cores and 128GB ram. After 20 minutes, the ls command has failed to return, so it still seems broken to me. On my Macbook the CPU is still maxed, and on the server, it is using 12 cores (low nice value, so using as much CPU as it can, that more important things are not using). On both machines, IPFS is using 500-600MB of RAM. Cheers Edit: After two hours, the server IPFS is still using 10-12 cores, with no result, I have killed it. |
@mattseh how did you create that object or where is this object from? EDIT: disregard that, it is Turkish Wiki snapshot |
So the problem probably is that Turkish snapshot will have 512k objects in it. The fact that @mattseh can you try running it with (We really need new, better format for files and directories). |
|
If possible, could you take a CPU profile for us? curl -o profile 'http://127.0.0.1:5001/debug/pprof/profile' |
(along with a copy of the ipfs binary youre using, more details here: https://github.com/ipfs/go-ipfs/blob/master/docs/debug-guide.md ) |
It finally successfully completed: real 232m17.259s Will run again and gather the above requested info. |
IPFS Binary is the official 0.4.11-rc2 for linux 64 bit. |
Try to repeat this. Started ipfs daemon and try to get http://127.0.0.1:8080/ipfs/QmRNXpMRzsTHdRrKvwmWisgaojGKLPqHxzQfrXdfNkettC/Anasayfa.html In log... ` |
Closing as I was unable to reproduce the original crash. (a lot changed since 0.4.x – including perf. improvements. please update to the latest versions) |
Version information:
go-ipfs version: 0.4.8-
Repo version: 5
System version: amd64/darwin
Golang version: go1.8
Type:
Bug
Severity:
High
Description:
IPFS Daemon crases on requesting the Turkish wikipedia "wiki" folder listing of links.
Daemon log: https://pastebin.com/Gks7tqWE
The text was updated successfully, but these errors were encountered: