evilnet / x3

X3 IRC Services
GNU General Public License v3.0
17 stars 14 forks source link

Services Crash on Authentication #36

Open xnite opened 8 years ago

xnite commented 8 years ago

Sometimes when authenticating to my account (possibly related to /oper at the same time which also autojoins me to channels but via ircd not services) services completely crashes. Tail of strace

epoll_ctl(6, EPOLL_CTL_MOD, 15, {EPOLLIN|EPOLLOUT|EPOLLHUP, {u32=64148928, u64=64148928}}) = 0 write(2, "W: ABAAI O DIBfo :I recognize yo"..., 35W: ABAAI O DIBfo :I recognize you. ) = 35 epoll_ctl(6, EPOLL_CTLMOD, 15, {EPOLLIN|EPOLLOUT|EPOLLHUP, {u32=64148928, u64=64148928}}) = 0 write(9, "[11:15:01 10/07/2015](AuthServ:"..., 89) = 89 write(3, "[11:15:01 10/07/2015](AuthServ:"..., 89) = 89 write(2, "W: ABAAI P #Services :() [xnite"..., 80W: ABAAI P #Services :() [xnite_!~xnite@mc.iosocket.net:xnite]: AUTH xnite ) = 80 epoll_ctl(6, EPOLL_CTLMOD, 15, {EPOLLIN|EPOLLOUT|EPOLLHUP, {u32=64148928, u64=64148928}}) = 0 write(2, "[11:15:01 10/07/2015](AuthServ:"..., 88[11:15:01 10/07/2015] %28AuthServ:%29 [xnite!~xnite@mc.iosocket.net:xnite]: AUTH xnite ) = 88 write(2, "\n", 1 ) = 1 epollwait(6, {{EPOLLIN|EPOLLOUT, {u32=64148928, u64=64148928}}}, 32, 5000) = 1 recvfrom(15, "BmKnG P #agarp.logs :Bubble/trit"..., 933, 0, NULL, NULL) = 73 write(2, " BmKnG P #agarp.logs :Bubble/t"..., 75 BmKnG P #agarp.logs :Bubble/tritan||{"r":255,"g":7,"b":95,"i":1168}||ik ) = 75 sendto(15, "ABAAI O DIBYo :Warning: xnite ("..., 447, 0, NULL, 0) = 447 epoll_ctl(6, EPOLL_CTL_MOD, 15, {EPOLLIN|EPOLLOUT|EPOLLHUP, {u32=64148928, u64=64148928}}) = 0 epoll_wait(6, {{EPOLLOUT, {u32=64148928, u64=64148928}}}, 32, 5000) = 1 sendto(15, "REMOTEREHASH CHECK SEE_SECRET_CH"..., 371, 0, NULL, 0) = 371 epoll_ctl(6, EPOLL_CTL_MOD, 15, {EPOLLIN|EPOLLHUP, {u32=64148928, u64=64148928}}) = 0 epollwait(6, {{EPOLLIN, {u32=64148928, u64=64148928}}}, 32, 5000) = 1 recvfrom(15, "DIBfo M xnite +owg\r\n", 860, 0, NULL, NULL) = 21 write(2, " DIBfo M xnite +owg\n", 23 DIBfo M xnite +owg ) = 23 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2945, ...}) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x192} --- +++ killed by SIGSEGV +++ Segmentation fault

hank-afk commented 4 years ago

Was there a fix for this? I'm running into this issue today.

rubinlinux commented 4 years ago

Could you please try and get a stack dump?

Compile x3 in debug mode, and try and reproduce. The key is that the compiler doesnt use "-O3" to optimize the code beyond easy debugging.

Then run in gdb, or use gdb to open the core file

I need output from "bt full"

Thanks, -Rubin