And a full backtrace: -------------------------------------------------------------------------------------------------- (gdb) backtrace full #0 0xb75f3d72 in Curl_resolv_timeout (conn=0x0, hostname=0x0, port=-1255148712, entry=0x8055a7d, timeoutms=7) at hostip.c:654 elapsed_ms = 134566370 alarm_set = 148952256 keep_sigact = {__sigaction_handler = {sa_handler = 0, sa_sigaction = 0}, sa_mask = {__val = {0, 0, 16832, 3070230528, 0, 149426640, 3141316, 26627, 0, 0, 1302819, 33188, 4294967295, 0, 0, 0, 0, 0, 148388, 0, 4096, 304, 0, 3078191392, 0, 1292979439, 0, 1292979439, 0, 1302819, 0, 0}}, sa_flags = -1255148940, sa_restorer = 0xb52fef38} keep_copysig = false sigact = {__sigaction_handler = {sa_handler = 0xb76b78e4 <_IO_setb_internal+20>, sa_sigaction = 0xb76b78e4 <_IO_setb_internal+20>}, sa_mask = {__val = {1667591273, 1953396079, 3078193140, 3039818571, 3039817240, 3077278555, 3039817276, 3039817548, 3039818571, 3039818600, 3078193140, 3039817276, 3039817548, 3039817512, 3077252756, 3039817276, 134654652, 3039818608, 3039817548, 0, 3039817436, 1023, 4222451713, 3039817548, 3039817548, 3039817548, 3039817548, 3039817626, 3039818571, 3039817548, 3039818571, 0}}, sa_flags = 0, sa_restorer = 0} timeout = 1848536425 prev_alarm = 1952540018 data = (struct SessionHandle *) 0xb52ff1a4 rc = -1 #1 0xb77d06c0 in sl_log (severity=Cannot access memory at address 0x8 ) at syslog.c:73 No locals. Backtrace stopped: previous frame inner to this frame (corrupt stack?) --------------------------------------------------------------------------------------------------
b. On 22 December 2010 02:30, Bostjan Skufca <bost...@a2o.si> wrote: > Finally here you have the backtrace: > - Compile script is below > - collectd 4.10.2 > - tried to use curl 7.21.2 and 7.21.3 for which changelog says > something with timeouts has been fixed, but apparently this is not it > - the commented out patch is irrelevant, just something which enables > collection of IRQs with string names (LOC, CALm RES, TLB etc.) > > ------------------------------------------------------------------------------ > Core was generated by `/usr/local/collectd/sbin/collectd'. > Program terminated with signal 11, Segmentation fault. > [New process 12203] > [New process 12205] > [New process 12208] > [New process 12209] > [New process 12211] > [New process 12212] > [New process 12210] > [New process 12206] > #0 0xb75f3d72 in Curl_resolv_timeout (conn=0x0, hostname=0x0, > port=-1255148712, entry=0x8055a7d, timeoutms=7) > at hostip.c:654 > 654 unsigned long elapsed_ms = Curl_tvdiff(Curl_tvnow(), > conn->created); > ------------------------------------------------------------------------------ > > b. > > > PS: Install script: > ----------------------------------------------------------------------------------------------------- > # cat install-collectd-4.10.2-debug5.sh > #!/bin/bash > > > > # Compile directory > export SRCROOT="/var/src/daemons" && > mkdir -p $SRCROOT && > cd $SRCROOT && > > > > ### Curl - FIXME remove > # CheckURI: http://curl.haxx.se/download.html > cd $SRCROOT && . ../_functions.sh && > export PNAME="curl" && > export PVERSION="7.21.3" && > export PDIR="$PNAME-$PVERSION" && > export PFILE="$PDIR.tar.gz" && > export PURI="http://curl.haxx.se/download/$PFILE" && > rm -rf $PDIR && > GetUnpackCd && > ./configure --enable-debug --with-ssl=$PDESTDIR_OPENSSL CFLAGS="-g -O0" && > make -j 2 && > make install && > ldconfig && > cd $SRCROOT && > rm -rf $PDIR && > > > > ### Set versions and directories > export PVERSION_COLLECTD="4.10.2" && > export PDESTDIR_COLLECTD="/usr/local/collectd-4.10.2-debug5" && > export PDESTDIR_MYSQL="/usr/local/mysql-5.1.52-2" && > > > > ### Collectd > # CheckURI: http://www.collectd.org/ > cd $SRCROOT && . ../_functions.sh && > export PNAME="collectd" && > export PVERSION="$PVERSION_COLLECTD" && > export PDIR="$PNAME-$PVERSION" && > export PFILE="$PDIR.tar.gz" && > export PURI="http://collectd.org/files/$PFILE" && > > rm -rf $PDIR && > GetUnpackCd && > > #wget http://source.a2o.si/collectd-4.10.1-all-irq-patch.diff && > #cat collectd-4.10.1-all-irq-patch.diff | patch -p1 && > > export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && > > ./configure --prefix=$PDESTDIR_COLLECTD --sysconfdir=/etc \ > --enable-debug CFLAGS="-g -O0" \ > --enable-ping \ > --with-included-ltdl \ > --with-libmysql=$PDESTDIR_MYSQL && > make && > make install && > > unset PKG_CONFIG_PATH && > > cd $SRCROOT && > rm -rf $PDIR > ----------------------------------------------------------------------------------------------------- > > > > > On 15 December 2010 07:12, Florian Forster <o...@collectd.org> wrote: >> Hi Bostjan, >> >> On Wed, Dec 15, 2010 at 04:16:21AM +0100, Bostjan Skufca wrote: >>> I just want to note that on my systems (custom builds on top of >>> Slackware) collectd 4.10.1 and .2 segfaults when libcurl v 7.21.2 >>> (latest currently) is used. If I revert curl to 7.20.1 collectd works >>> with no problems. These segfaults occured on both, 32 and 64 bit >>> systems. >> >> could you build libcurl and collectd with debugging symbols and, >> ideally, without optimization. Then try to get a stack backtrace of the >> crashing program. How to do that using core files is described in our >> wiki at [0]. This will be of much help to pinpoint the problem and fix >> it. >> >> Best regards, >> --octo >> >> [0] <http://collectd.org/wiki/index.php/Core_file> >> -- >> Florian octo Forster >> Hacker in training >> GnuPG: 0x0C705A15 >> http://octo.it/ >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.9 (GNU/Linux) >> >> iQIcBAEBAgAGBQJNCFxUAAoJEMPSHpbi2MmgVmoQANC93iOGhiu0NQjrHAKxa+2U >> /ow9CbhjQYFQKQotVbjoNINcv5NGd9Km1+V24QrnvK2mnlHqVKrqWSFrnjVSc8ld >> CMKrUmknO6DoJgCqE9lKKWVZzYv8W9ES1dVbw0KfIIo41amRaJFplB7wV6qZzcJi >> 5N16d8uOAH11wo8howUwnXcy+6s+04wlUh3aWAZU6WAHshAqr57x9HeJtqXeoGIE >> g1JBpOR3jdx+gN/Wp5xpaoKk5VVLr5b4jO+swpY6fT6hVnOev5h/Kc7pSCNqcQNm >> 1GvGE75bg1aW88u2PNnqKO+E95vC0Ev8frGFhg25cNQrFgrB8v/g0fHsqtuSUf51 >> saptKDy8Jmal9cZwgR4EypOcJnm6RP9l0QpjT/YgAz6jPBQthSgM958/SpeEFZfM >> q/04ppH2gnei4DkPZjRIpA8uPftWLaeTTsVNwqgGMa7xIrBfpI4aHVY6DZE8KWPy >> JUtDezo+LM5CH2x/sC1sbyUuDb0vGnrBnht+BanZUXmgmyD72NNlZiWlxSPMBdic >> sFb8NI661u2GUnwxCj8/dqBicBFe2s3XjtKimC8pUvtg2gJrruemraaxvzVa+RbD >> +WPqKkr0itqD4Cb7WwxxpLOyfvVOjSEs/aA9Rcv1q+kB7GF6zJjTEivddaFkQ3a4 >> 89z7grm4mOoFndbaig91 >> =5CU6 >> -----END PGP SIGNATURE----- >> >> > _______________________________________________ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd