ZNC 1.0 crashes when compiled with LLVM/clang #201

Closed
opened 2026-10-05 04:04:08 +02:00 by adam · 4 comments
Owner

I've upgraded libssl on my server, so I had to recompile ZNC, but gcc always used up all RAM and swap so I ended up going with clang.

nyuszika7h@cadoth ~ % clang++ --version
Debian clang version 3.0-6 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: x86_64-pc-linux-gnu
Thread model: posix
nyuszika7h@cadoth ~ % g++ --version
g++-4.7.real (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

glibc and gdb backtrace: http://ix.io/4rH/

Edit: gcc with modperl and modpython disabled (to prevent out of memory), no crash. clang with the same setup still crashes. http://ix.io/4rJ/

I've upgraded libssl on my server, so I had to recompile ZNC, but gcc always used up all RAM and swap so I ended up going with clang. ``` nyuszika7h@cadoth ~ % clang++ --version Debian clang version 3.0-6 (tags/RELEASE_30/final) (based on LLVM 3.0) Target: x86_64-pc-linux-gnu Thread model: posix ``` ``` nyuszika7h@cadoth ~ % g++ --version g++-4.7.real (Debian 4.7.2-5) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ``` glibc and gdb backtrace: http://ix.io/4rH/ **Edit:** gcc with modperl and modpython disabled (to prevent out of memory), no crash. clang with the same setup still crashes. http://ix.io/4rJ/ <!-- github-sync-id:11115269 -->
adam closed this issue 2026-10-05 04:04:08 +02:00
Author
Owner

For me znc runs on 100% without doing anything when compiled with llvm-clang …
Works fine when compiled with gcc-c++

kondou@Marisa:~> clang++ --version
clang version 3.2 (branches/release_32 170558)
Target: x86_64-unknown-linux-gnu
Thread model: posix
kondou@Marisa:~> g++ --version
g++ (SUSE Linux) 4.7.2 20130108 [gcc-4_7-branch revision 195012]
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

For me znc runs on 100% without doing anything when compiled with llvm-clang … Works fine when compiled with gcc-c++ ``` kondou@Marisa:~> clang++ --version clang version 3.2 (branches/release_32 170558) Target: x86_64-unknown-linux-gnu Thread model: posix ``` ``` kondou@Marisa:~> g++ --version g++ (SUSE Linux) 4.7.2 20130108 [gcc-4_7-branch revision 195012] Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ``` <!-- github-comment-id:16786474 -->
Author
Owner

@Kondou-ger can you show strace and/or gdb stacktrace?

@Kondou-ger can you show strace and/or gdb stacktrace? <!-- github-comment-id:16880460 -->
Author
Owner

@DarthGandalf: http://dpaste.org/XIewN/raw/ after that the znc-process just hogs a thread and strace becomes quiet.

Works for whatever reason when compiled with ./configure --enable-debug though …

@DarthGandalf: http://dpaste.org/XIewN/raw/ after that the znc-process just hogs a thread and strace becomes quiet. Works for whatever reason when compiled with `./configure --enable-debug` though … <!-- github-comment-id:16901702 -->
Author
Owner

I think this is fixed as Travis builds successfully with clang and I have done so too with 1.6.0.

I think this is fixed as Travis builds successfully with clang and I have done so too with 1.6.0. <!-- github-comment-id:138918765 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#201