{"action":"created","issue":{"url":"https://api.github.com/repos/znc/znc/issues/1248","repository_url":"https://api.github.com/repos/znc/znc","labels_url":"https://api.github.com/repos/znc/znc/issues/1248/labels{/name}","comments_url":"https://api.github.com/repos/znc/znc/issues/1248/comments","events_url":"https://api.github.com/repos/znc/znc/issues/1248/events","html_url":"https://github.com/znc/znc/issues/1248","id":137663590,"number":1248,"title":"ZNC crashing when disconnecting at the moment of sending data","user":{"login":"JeDa","id":7420695,"avatar_url":"https://avatars.githubusercontent.com/u/7420695?v=3","gravatar_id":"","url":"https://api.github.com/users/JeDa","html_url":"https://github.com/JeDa","followers_url":"https://api.github.com/users/JeDa/followers","following_url":"https://api.github.com/users/JeDa/following{/other_user}","gists_url":"https://api.github.com/users/JeDa/gists{/gist_id}","starred_url":"https://api.github.com/users/JeDa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeDa/subscriptions","organizations_url":"https://api.github.com/users/JeDa/orgs","repos_url":"https://api.github.com/users/JeDa/repos","events_url":"https://api.github.com/users/JeDa/events{/privacy}","received_events_url":"https://api.github.com/users/JeDa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T19:28:18Z","updated_at":"2016-03-01T19:32:46Z","closed_at":null,"body":"Hey there.\r\n\r\nI found a bug in ZNC, which looks to exist on 1.6.3-rc1, 1.6.3 and 1.7.*-git.\r\n\r\nI was doing ```/znc *shell grep '(some|nicks)' ~/moddata/log/jeda/freenode/*/*.log``` on my ZNC, and I disconnected which made ZNC crash. By the debug I did, it's a \"Broken pipe\" error.\r\n\r\n> Signal        Stop Print Pass to program Description SIGPIPE       No Yes Yes Broken pipe Starting program: /usr/local/bin/znc -D During startup program exited with code 127. Quit Quit Error detected on fd 0 error detected on stdin Undefined command: \"gdb\".  Try \"help\". Attaching to process 30301 Reading symbols from /usr/local/bin/znc...done. Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug/.build-id/52/c4b519ccbf0399d677cf3d39874007dd01afa0.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libicuuc.so.55...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libicudata.so.55...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug/.build-id/8c/94875b3b757b9f37302d61a69d672693b95cf5.debug...done. done. Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug/.build-id/22/08f598f26a367614dcfefea741acd556eb7da7.debug...done. done. [New LWP 30343] [New LWP 30305] [New LWP 30303] [Thread debugging using libthread_db enabled] Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\". Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/.build-id/bc/793b207d17064f91e35f22c00987a91a514712.debug...done. done. Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/42/480648b8070bbaacf1f6a8ef73749fd0f63fa3.debug...done. done. Reading symbols from /usr/local/lib/znc/webadmin.so...done. Reading symbols from /usr/local/lib/znc/adminlog.so...done. Reading symbols from /usr/local/lib/znc/blockuser.so...done. Reading symbols from /usr/local/lib/znc/certauth.so...done. Reading symbols from /usr/local/lib/znc/chansaver.so...done. Reading symbols from /usr/local/lib/znc/fail2ban.so...done. Reading symbols from /usr/local/lib/znc/identfile.so...done. Reading symbols from /usr/local/lib/znc/lastseen.so...done. Reading symbols from /usr/local/lib/znc/log.so...done. Reading symbols from /usr/local/lib/znc/modpython.so...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libexpat.so.1...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libutil.so.1...Reading symbols from /usr/lib/debug/.build-id/ca/63c0d0fce7f293937fa2e512116054d417f74f.debug...done. done. Reading symbols from /usr/local/lib/znc/modpython/_znc_core.so...done. Reading symbols from /usr/local/lib/znc/partyline.so...done. Reading symbols from /usr/local/lib/znc/controlpanel.so...done. Reading symbols from /usr/local/lib/znc/autocycle.so...done. Reading symbols from /usr/local/lib/znc/autovoice.so...done. Reading symbols from /usr/local/lib/znc/crypt.so...done. Reading symbols from /usr/local/lib/znc/keepnick.so...done. Reading symbols from /usr/local/lib/znc/kickrejoin.so...done. Reading symbols from /usr/local/lib/znc/modules_online.so...done. Reading symbols from /usr/local/lib/znc/nickserv.so...done. Reading symbols from /usr/local/lib/znc/route_replies.so...done. Reading symbols from /usr/local/lib/znc/sasl.so...done. Reading symbols from /usr/local/lib/znc/savebuff.so...done. Reading symbols from /usr/local/lib/znc/schat.so...done. Reading symbols from /usr/local/lib/znc/simple_away.so...done. Reading symbols from /usr/local/lib/znc/stickychan.so...done. Reading symbols from /usr/local/lib/znc/watch.so...done. Reading symbols from /usr/local/lib/znc/alias.so...done. Reading symbols from /usr/local/lib/znc/autoattach.so...done. Reading symbols from /usr/local/lib/znc/autoreply.so...done. Reading symbols from /usr/local/lib/znc/bouncedcc.so...done. Reading symbols from /usr/local/lib/znc/buffextras.so...done. Reading symbols from /usr/local/lib/znc/cert.so...done. Reading symbols from /usr/local/lib/znc/clearbufferonmsg.so...done. Reading symbols from /usr/local/lib/znc/clientnotify.so...done. Reading symbols from /usr/local/lib/znc/ctcpflood.so...done. Reading symbols from /usr/local/lib/znc/disconkick.so...done. Reading symbols from /usr/local/lib/znc/notes.so...done. Reading symbols from /usr/local/lib/znc/perform.so...done. Reading symbols from /usr/local/lib/znc/awaystore.so...done. Reading symbols from /usr/local/lib/znc/modtcl.so...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libtcl8.6.so...(no debugging symbols found)...done. Reading symbols from /usr/local/lib/znc/dcc.so...done. Reading symbols from /usr/local/lib/znc/shell.so...done. Reading symbols from /usr/local/lib/znc/send_raw.so...done. Reading symbols from /usr/local/lib/znc/autoop.so...done. Reading symbols from /lib/x86_64-linux-gnu/libnss_compat.so.2...Reading symbols from /usr/lib/debug/.build-id/ff/e1799cf99751daf43cd087e2486b56b10a5428.debug...done. done. Reading symbols from /lib/x86_64-linux-gnu/libnsl.so.1...Reading symbols from /usr/lib/debug/.build-id/db/43ca74fbbcbae52d63e53e08124f7060e431c1.debug...done. done. Reading symbols from /lib/x86_64-linux-gnu/libnss_nis.so.2...Reading symbols from /usr/lib/debug/.build-id/9a/4241e505dbfb9a0e13a371396bfcb298941101.debug...done. done. Reading symbols from /lib/x86_64-linux-gnu/libnss_files.so.2...Reading symbols from /usr/lib/debug/.build-id/3e/6c79c3186003b55afb8efb036e09608fcfa583.debug...done. done. Reading symbols from /lib/x86_64-linux-gnu/libnss_dns.so.2...Reading symbols from /usr/lib/debug/.build-id/62/c49f986abcc930f435f21254e5f352fe73a145.debug...done. done. Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading symbols from /usr/lib/debug/.build-id/7a/a08c6372a82257727905d3df2b2a73231b2f7b.debug...done. done. 0x00007fb9ce8fab6d in poll ()     at ../sysdeps/unix/syscall-template.S:81 81 ../sysdeps/unix/syscall-template.S: Permission denied. Signal        Stop Print Pass to program Description SIGPIPE       No Yes Yes Broken pipe Continuing.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nProgram received signal SIGPIPE, Broken pipe.\r\nQuit Detaching from program: /usr/local/bin/znc, process 30301\r\n\r\nI hope you guys can fix it. Thanks.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/31499614-znc-crashing-when-disconnecting-at-the-moment-of-sending-data?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/znc/znc/issues/comments/190866099","html_url":"https://github.com/znc/znc/issues/1248#issuecomment-190866099","issue_url":"https://api.github.com/repos/znc/znc/issues/1248","id":190866099,"user":{"login":"Mikaela","id":831184,"avatar_url":"https://avatars.githubusercontent.com/u/831184?v=3","gravatar_id":"","url":"https://api.github.com/users/Mikaela","html_url":"https://github.com/Mikaela","followers_url":"https://api.github.com/users/Mikaela/followers","following_url":"https://api.github.com/users/Mikaela/following{/other_user}","gists_url":"https://api.github.com/users/Mikaela/gists{/gist_id}","starred_url":"https://api.github.com/users/Mikaela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mikaela/subscriptions","organizations_url":"https://api.github.com/users/Mikaela/orgs","repos_url":"https://api.github.com/users/Mikaela/repos","events_url":"https://api.github.com/users/Mikaela/events{/privacy}","received_events_url":"https://api.github.com/users/Mikaela/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T19:32:46Z","updated_at":"2016-03-01T19:32:46Z","body":"This issue is invalid as you didn't follow http://wiki.znc.in/Debugging (`(gdb) handle SIGPIPE nostop`). \r\n\r\nSIGPIPE is not the issue. "}}