ZNC Segfaults just after peer gets no public key #663

Closed
opened 2026-10-05 04:37:09 +02:00 by adam · 2 comments
Owner

I was migrating a ZNC batch of users from one git clone to an updated version and came across this issue:

[2015-12-26 07:14:06.217173] (173.74.88.88) ZNC -> CLI [:irc.znc.in CAP unknown-  nick LS :batch cap-notify echo-message multi-prefix server-time userhost-in-name  s znc.in/batch znc.in/self-message znc.in/server-time-iso]
[2015-12-26 07:14:06.336777] (173.74.88.88) CLI -> ZNC [PASS hdr:HdrHellscythe15  ]
[2015-12-26 07:14:06.336961] (173.74.88.88) CLI -> ZNC [NICK Hdr]
[2015-12-26 07:14:06.337019] (173.74.88.88) CLI -> ZNC [USER hdr hdr znc.aoi-cha  n.com :Hydra]
[2015-12-26 07:14:06.495922] (173.74.88.88) CLI -> ZNC [CAP REQ :multi-prefix se  rver-time userhost-in-names znc.in/server-time-iso]
[2015-12-26 07:14:06.496074] (173.74.88.88) ZNC -> CLI [:irc.znc.in CAP Hdr ACK   :multi-prefix server-time userhost-in-names znc.in/server-time-iso]
[2015-12-26 07:14:06.496123] (173.74.88.88) CLI -> ZNC [CAP END]
[2015-12-26 07:14:06.496190] GetKey() returned status 0 with key
[2015-12-26 07:14:06.496208] User: hdr Key:
[2015-12-26 07:14:06.496221] Peer got no public key, ignoring
[2015-12-26 07:14:06.496283] (hdr/Rizon) ZNC -> CLI [:irc.znc.in 001 Hdr :- Welc  ome to ZNC -]
[New Thread 0x7ffff0b5c700 (LWP 14850)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff65a7e48 in main_arena () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) quit
A debugging session is active.

        Inferior 1 [process 14844] will be killed.

Quit anyway? (y or n) y
znc@znc:~$ nano -w /tmp/znc.gdb.log
znc@znc:~$ cat /tmp/znc.gdb.log
Unrecognized or ambiguous flag word: "sigpipe".
Signal        Stop      Print   Pass to program Description
SIGPIPE       No        Yes     Yes             Broken pipe
Starting program: /usr/local/bin/znc -D
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff015b700 (LWP 14851)]
[New Thread 0x7ffff0b5c700 (LWP 14850)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff65a7e48 in main_arena () from /lib/x86_64-linux-gnu/libc.so.6

I'm unsure if its because of his hashed password or method or the Salt, but I have backed it up if the file is needed to be used for debugging

I was migrating a ZNC batch of users from one git clone to an updated version and came across this issue: ``` [2015-12-26 07:14:06.217173] (173.74.88.88) ZNC -> CLI [:irc.znc.in CAP unknown- nick LS :batch cap-notify echo-message multi-prefix server-time userhost-in-name s znc.in/batch znc.in/self-message znc.in/server-time-iso] [2015-12-26 07:14:06.336777] (173.74.88.88) CLI -> ZNC [PASS hdr:HdrHellscythe15 ] [2015-12-26 07:14:06.336961] (173.74.88.88) CLI -> ZNC [NICK Hdr] [2015-12-26 07:14:06.337019] (173.74.88.88) CLI -> ZNC [USER hdr hdr znc.aoi-cha n.com :Hydra] [2015-12-26 07:14:06.495922] (173.74.88.88) CLI -> ZNC [CAP REQ :multi-prefix se rver-time userhost-in-names znc.in/server-time-iso] [2015-12-26 07:14:06.496074] (173.74.88.88) ZNC -> CLI [:irc.znc.in CAP Hdr ACK :multi-prefix server-time userhost-in-names znc.in/server-time-iso] [2015-12-26 07:14:06.496123] (173.74.88.88) CLI -> ZNC [CAP END] [2015-12-26 07:14:06.496190] GetKey() returned status 0 with key [2015-12-26 07:14:06.496208] User: hdr Key: [2015-12-26 07:14:06.496221] Peer got no public key, ignoring [2015-12-26 07:14:06.496283] (hdr/Rizon) ZNC -> CLI [:irc.znc.in 001 Hdr :- Welc ome to ZNC -] [New Thread 0x7ffff0b5c700 (LWP 14850)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff65a7e48 in main_arena () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) quit A debugging session is active. Inferior 1 [process 14844] will be killed. Quit anyway? (y or n) y znc@znc:~$ nano -w /tmp/znc.gdb.log znc@znc:~$ cat /tmp/znc.gdb.log Unrecognized or ambiguous flag word: "sigpipe". Signal Stop Print Pass to program Description SIGPIPE No Yes Yes Broken pipe Starting program: /usr/local/bin/znc -D [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff015b700 (LWP 14851)] [New Thread 0x7ffff0b5c700 (LWP 14850)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff65a7e48 in main_arena () from /lib/x86_64-linux-gnu/libc.so.6 ``` I'm unsure if its because of his hashed password or method or the Salt, but I have backed it up if the file is needed to be used for debugging <!-- github-sync-id:123927257 -->
adam closed this issue 2026-10-05 04:37:09 +02:00
Author
Owner

Show bt full in gdb.
User hdr should change the password now.
Which version is this?

Show `bt full` in gdb. User hdr should change the password now. Which version is this? <!-- github-comment-id:167320423 -->
Author
Owner

Please put such outputs between "```" in markdown, I edited your post...

Please put such outputs between "```" in markdown, I edited your post... <!-- github-comment-id:167320672 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#663