karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
300 stars 108 forks source link

Segmentation fault on Debian 9 Version 2.4.0-kh14 #309

Open mylselgan opened 4 years ago

mylselgan commented 4 years ago

System info Linux ps1ulc 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64 icecast -v Icecast 2.4.0-kh14-3-g74429c0 icecast configured --with-curl --with-openssl

when I run icecast -c /home/radio/user/8080/icecast.xml it just exists with "Segmentation fault"

<icecast>
<location>USA</location>
<admin>info@info.com</admin>
<limits><clients>10000</clients><sources>2</sources><queue-size>524288</queue-size>
<client-timeout>30</client-timeout><header-timeout>15</header-timeout><source-timeout>10</source-timeout></limits>
<listen-socket><port>8080</port></listen-socket>
<mount type="normal"><mount-name>/1</mount-name><bitrate>128</bitrate></mount>
<authentication><source-password>hackme</source-password><relay-password>hackme</relay-password><admin-user>admin</admin-user><admin-password>hackme</admin-password></authentication>
<hostname>server.server.com</hostname>
<paths><ssl-certificate>/home/user/fullchain.pem</ssl-certificate>
<basedir>/usr/share/icecast</basedir><logdir>/home/user/log/icecast</logdir>
<webroot>/usr/share/icecast/web</webroot><adminroot>/usr/share/icecast/admin</adminroot>
<alias source="/" dest="/status.xsl"/></paths></icecast>

Valgrind output

valgrind --leak-check=full -v icecast -c /home/radio/user/8080/icecast.xml &
[1] 2680
==2680== Memcheck, a memory error detector
==2680== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==2680== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==2680== Command: icecast -c /home/radio/user/8080/icecast.xml
==2680==
--2680-- Valgrind options:
--2680--    --leak-check=full
--2680--    -v
--2680-- Contents of /proc/version:
--2680--   Linux version 4.9.0-12-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.210-1 (2020-01-20)
--2680--
--2680-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3
--2680-- Page sizes: currently 4096, max supported 4096
--2680-- Valgrind library directory: /usr/lib/valgrind
--2680-- Reading syms from /usr/local/bin/icecast
radio@ps1ulc:~/user/8080$ --2680-- Reading syms from /lib/x86_64-linux-gnu/ld-2.24.so
--2680--   Considering /usr/lib/debug/.build-id/60/6df9c355103e82140d513bc7a25a635591c153.debug ..
--2680--   .. build-id is valid
--2680-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
--2680--   Considering /usr/lib/valgrind/memcheck-amd64-linux ..
--2680--   .. CRC mismatch (computed db5b2ec5 wanted 0eae776b)
--2680--   Considering /usr/lib/debug/usr/lib/valgrind/memcheck-amd64-linux ..
--2680--   .. CRC is valid
--2680--    object doesn't have a dynamic symbol table
--2680-- Scheduler: using generic scheduler lock implementation.
--2680-- Reading suppressions file: /usr/lib/valgrind/default.supp
==2680== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-2680-by-radio-on-???
==2680== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-2680-by-radio-on-???
==2680== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-2680-by-radio-on-???
==2680==
==2680== TO CONTROL THIS PROCESS USING vgdb (which you probably
==2680== don't want to do, unless you know exactly what you're doing,
==2680== or are doing some strange experiment):
==2680==   /usr/lib/valgrind/../../bin/vgdb --pid=2680 ...command...
==2680==
==2680== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==2680==   /path/to/gdb icecast
==2680== and then give GDB the following command
==2680==   target remote | /usr/lib/valgrind/../../bin/vgdb --pid=2680
==2680== --pid is optional if only one valgrind process is running
==2680==
--2680-- REDIR: 0x401aec0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809de81 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--2680-- REDIR: 0x4019770 (ld-linux-x86-64.so.2:index) redirected to 0x3809de9b (vgPlain_amd64_linux_REDIR_FOR_index)
--2680-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--2680--   Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--2680--   .. CRC mismatch (computed 74a069fa wanted 84d99202)
--2680--   Considering /usr/lib/debug/usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--2680--   .. CRC is valid
--2680-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--2680--   Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--2680--   .. CRC mismatch (computed 88f2547e wanted 8a7a4459)
--2680--   Considering /usr/lib/debug/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--2680--   .. CRC is valid
==2680== WARNING: new redirection conflicts with existing -- ignoring it
--2680--     old: 0x0401aec0 (strlen              ) R-> (0000.0) 0x3809de81 vgPlain_amd64_linux_REDIR_FOR_strlen
--2680--     new: 0x0401aec0 (strlen              ) R-> (2007.0) 0x04c2ee60 strlen
--2680-- REDIR: 0x4019990 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2ff60 (strcmp)
--2680-- REDIR: 0x401b9d0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c33330 (mempcpy)
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libspeex.so.1.5.0
--2680--   Considering /usr/lib/x86_64-linux-gnu/libspeex.so.1.5.0 ..
--2680--   .. CRC mismatch (computed dc98eae3 wanted ea28c8f0)
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2
--2680--   Considering /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2 ..
--2680--   .. CRC mismatch (computed ac481d9c wanted 6c4c8029)
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libm-2.24.so
--2680--   Considering /usr/lib/debug/.build-id/4e/49714c557ce0472c798f39365ca10f9c0e1933.debug ..
--2680--   .. build-id is valid
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libxslt.so.1.1.29
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.9
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.24.so
--2680--   Considering /usr/lib/debug/.build-id/16/d609487bcc4acbac29a4eaa2dda0d2f56211ec.debug ..
--2680--   .. build-id is valid
--2680-- Reading syms from /lib/x86_64-linux-gnu/libc-2.24.so
--2680--   Considering /usr/lib/debug/.build-id/77/5143e680ff0cd4cd51cce1ce8ca216e635a1d6.debug ..
--2680--   .. build-id is valid
--2680-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.24.so
--2680--   Considering /usr/lib/debug/.build-id/db/2caeeec37482a98ab1416d0a9afe2944930de9.debug ..
--2680--   .. build-id is valid
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libnghttp2.so.14.12.3
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libidn2.so.0.3.6
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/librtmp.so.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libssh2.so.1.0.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libpsl.so.5.1.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libcom_err.so.2.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.7
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.7
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.8
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libicui18n.so.65.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libicuuc.so.65.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libicudata.so.65.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/liblzma.so.5.2.2
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libunistring.so.0.1.2
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libgnutls.so.30.13.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libhogweed.so.4.3
--2680--   Considering /usr/lib/x86_64-linux-gnu/libhogweed.so.4.3 ..
--2680--   .. CRC mismatch (computed 64c89d37 wanted 085749a6)
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libnettle.so.6.3
--2680--   Considering /usr/lib/x86_64-linux-gnu/libnettle.so.6.3 ..
--2680--   .. CRC mismatch (computed 51e967a4 wanted 165ded96)
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libgcrypt.so.20.1.6
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libkeyutils.so.1.5
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libresolv-2.24.so
--2680--   Considering /usr/lib/debug/.build-id/ea/d5fd817712e63c1212d1ee7d7ee1b9c29f93a7.debug ..
--2680--   .. build-id is valid
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libgcc_s.so.1
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.2.0
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libidn.so.11.6.16
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.3
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
--2680--    object doesn't have a symbol table
--2680-- Reading syms from /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
--2680--    object doesn't have a symbol table
--2680-- REDIR: 0x6a1b710 (libc.so.6:strcasecmp) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a171b0 (libc.so.6:strcspn) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a1da00 (libc.so.6:strncasecmp) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a19620 (libc.so.6:strpbrk) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a199b0 (libc.so.6:strspn) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a1ad80 (libc.so.6:memmove) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a17090 (libc.so.6:strcpy) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a159b0 (libc.so.6:index) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a1b230 (libc.so.6:memset) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a20100 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a1b560 (libc.so.6:stpcpy) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a17a10 (libc.so.6:strncat) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a15c00 (libc.so.6:strcmp) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a8d4e0 (libc.so.6:__memcpy_chk) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a157b0 (libc.so.6:strcat) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a192f0 (libc.so.6:strncpy) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a17a50 (libc.so.6:strncmp) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a1a940 (libc.so.6:bcmp) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a1a3c0 (libc.so.6:strstr) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
--2680-- REDIR: 0x6a8d5b0 (libc.so.6:__memmove_chk) redirected to 0x4a26740 (_vgnU_ifunc_wrapper)
==2680== WARNING: new redirection conflicts with existing -- ignoring it
--2680--     old: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2030.0) 0x04c33420 __memcpy_chk
--2680--     new: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2024.0) 0x04c32df0 __memmove_chk
==2680== WARNING: new redirection conflicts with existing -- ignoring it
--2680--     old: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2030.0) 0x04c33420 __memcpy_chk
--2680--     new: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2024.0) 0x04c32df0 __memmove_chk
==2680== WARNING: new redirection conflicts with existing -- ignoring it
--2680--     old: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2030.0) 0x04c33420 __memcpy_chk
--2680--     new: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2024.0) 0x04c32df0 __memmove_chk
==2680== WARNING: new redirection conflicts with existing -- ignoring it
--2680--     old: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2030.0) 0x04c33420 __memcpy_chk
--2680--     new: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2024.0) 0x04c32df0 __memmove_chk
==2680== WARNING: new redirection conflicts with existing -- ignoring it
--2680--     old: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2030.0) 0x04c33420 __memcpy_chk
--2680--     new: 0x06a1ae80 (__memcpy_chk_sse2_un) R-> (2024.0) 0x04c32df0 __memmove_chk
--2680-- REDIR: 0x6a19330 (libc.so.6:rindex) redirected to 0x4c2e7f0 (rindex)
--2680-- REDIR: 0x6a17650 (libc.so.6:strlen) redirected to 0x4c2eda0 (strlen)
--2680-- REDIR: 0x6a11f10 (libc.so.6:malloc) redirected to 0x4c2bb40 (malloc)
--2680-- REDIR: 0x6a1ae90 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4c300c0 (memcpy@GLIBC_2.2.5)
--2680-- REDIR: 0x6a15c40 (libc.so.6:__GI_strcmp) redirected to 0x4c2fe70 (__GI_strcmp)
--2680-- REDIR: 0x6a12900 (libc.so.6:calloc) redirected to 0x4c2db10 (calloc)
--2680-- REDIR: 0x6a159e0 (libc.so.6:__GI_strchr) redirected to 0x4c2e950 (__GI_strchr)
--2680-- REDIR: 0x6a1ae80 (libc.so.6:__memcpy_chk_sse2_unaligned) redirected to 0x4c33420 (__memcpy_chk)
--2680-- REDIR: 0x6a26520 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c2fe20 (strcmp)
--2680-- REDIR: 0x6a12510 (libc.so.6:free) redirected to 0x4c2cd70 (free)
--2680-- REDIR: 0x6adaf80 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c31ca0 (__memcmp_sse4_1)
--2680-- REDIR: 0x6a17aa0 (libc.so.6:__GI_strncmp) redirected to 0x4c2f550 (__GI_strncmp)
--2680-- REDIR: 0x6a125c0 (libc.so.6:realloc) redirected to 0x4c2dd50 (realloc)
--2680-- REDIR: 0x6a19f50 (libc.so.6:__GI_strstr) redirected to 0x4c33590 (__strstr_sse2)
--2680-- REDIR: 0x6a1a5f0 (libc.so.6:memchr) redirected to 0x4c30000 (memchr)
--2680-- REDIR: 0x6a264d0 (libc.so.6:__GI_strncpy) redirected to 0x4c2f150 (__GI_strncpy)
--2680-- REDIR: 0x6abcd20 (libc.so.6:__strpbrk_sse42) redirected to 0x4c33670 (strpbrk)
--2680-- REDIR: 0x6a21710 (libc.so.6:strchrnul) redirected to 0x4c32e60 (strchrnul)
--2680-- REDIR: 0x6a1ae70 (libc.so.6:__GI_mempcpy) redirected to 0x4c33060 (__GI_mempcpy)
--2680-- REDIR: 0x6a1b5a0 (libc.so.6:__GI_stpcpy) redirected to 0x4c31f80 (__GI_stpcpy)
--2680-- Reading syms from /lib/x86_64-linux-gnu/libnss_files-2.24.so
--2680--   Considering /usr/lib/debug/.build-id/8a/db8c8cdde0e4c3c3babb8874ae69dca15a666a.debug ..
--2680--   .. build-id is valid
--2680-- REDIR: 0x6a170d0 (libc.so.6:__GI_strcpy) redirected to 0x4c2ef50 (__GI_strcpy)
--2680-- REDIR: 0x6a1b300 (libc.so.6:__GI_memset) redirected to 0x4c324c0 (memset)
--2680-- REDIR: 0x6ab9060 (libc.so.6:__strcasecmp_sse42) redirected to 0x4c2f6a0 (strcasecmp)
--2680-- REDIR: 0x6a2b170 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c2ee80 (strcpy)
--2680-- REDIR: 0x6abac10 (libc.so.6:__strncasecmp_sse42) redirected to 0x4c2f780 (strncasecmp)
--2680-- REDIR: 0x6a1a980 (libc.so.6:__GI_memcmp) redirected to 0x4c31b40 (__GI_memcmp)
--2680-- REDIR: 0x6a2b7a0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c2f3b0 (__strncpy_sse2_unaligned)
--2680-- REDIR: 0x6ab8080 (libc.so.6:__strncmp_sse42) redirected to 0x4c2f630 (__strncmp_sse42)
--2680-- REDIR: 0x6a21500 (libc.so.6:rawmemchr) redirected to 0x4c32e90 (rawmemchr)
--2680-- REDIR: 0x6abcbe0 (libc.so.6:__strcspn_sse42) redirected to 0x4c336d0 (strcspn)
==2680== Stack overflow in thread #1: can't grow stack to 0xffe801000
==2680==
==2680== Process terminating with default action of signal 11 (SIGSEGV)
==2680==  Access not within mapped region at address 0xFFE801678
==2680== Stack overflow in thread #1: can't grow stack to 0xffe801000
==2680==    at 0x145BE0: _log_open (log.c:87)
==2680==  If you believe this happened as a result of a stack
==2680==  overflow in your program's main thread (unlikely but
==2680==  possible), you can try to increase the size of the
==2680==  main thread stack using the --main-stacksize= flag.
==2680==  The main thread stack size used in this run was 8388608.
==2680== Stack overflow in thread #1: can't grow stack to 0xffe801000
==2680==
==2680== Process terminating with default action of signal 11 (SIGSEGV)
==2680==  Access not within mapped region at address 0xFFE801668
==2680== Stack overflow in thread #1: can't grow stack to 0xffe801000
==2680==    at 0x4A266B0: _vgnU_freeres (vg_preloaded.c:59)
==2680==  If you believe this happened as a result of a stack
==2680==  overflow in your program's main thread (unlikely but
==2680==  possible), you can try to increase the size of the
==2680==  main thread stack using the --main-stacksize= flag.
==2680==  The main thread stack size used in this run was 8388608.
==2680==
==2680== HEAP SUMMARY:
==2680==     in use at exit: 386,578 bytes in 7,797 blocks
==2680==   total heap usage: 11,999 allocs, 4,202 frees, 1,576,533 bytes allocated
==2680==
==2680== Searching for pointers to 7,797 not-freed blocks
==2680== Checked 1,182,240 bytes
==2680==
==2680== LEAK SUMMARY:
==2680==    definitely lost: 0 bytes in 0 blocks
==2680==    indirectly lost: 0 bytes in 0 blocks
==2680==      possibly lost: 0 bytes in 0 blocks
==2680==    still reachable: 386,578 bytes in 7,797 blocks
==2680==         suppressed: 0 bytes in 0 blocks
==2680== Reachable blocks (those to which a pointer was found) are not shown.
==2680== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==2680==
==2680== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==2680== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

[1]+  Segmentation fault      valgrind --leak-check=full -v icecast -c /home/radio/user/8080/icecast.xml
mylselgan commented 4 years ago

gdb output

(gdb) run
Starting program: /usr/local/bin/icecast -c /home/radio/user/8080/icecast.xml
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
_log_open (id=id@entry=0, now=1591523669) at log.c:87
87      {
(gdb)
E46-S54 commented 4 years ago

Is your SSL certificate path correct?

I can't see anything that stands out from the stack trace.

karlheyes commented 4 years ago

looks like a stack smash, I suspect in gdb you see something recursive, issue the command bt to see that. also show the output from p *loglist@10
Based on my initial check I suspect it's down to a log failed to open for appending.

karl

karlheyes commented 4 years ago

I think this is because of the missing logging section. I have pushed a commit which should prevent those cases.

karl.

mylselgan commented 4 years ago

Hi, I found that my issue is related with libcurl and open SSL version conflict.

libcurl is build against OpenSSL 1.0.2 while the detected and used version of OpenSSL on my system is 1.1.

I fixed it by running

sudo apt-get purge libssl-dev
sudo apt-get install libssl1.0-dev

Thanks for the help. This can be closed