[dsc] Problem with dsc on Ubuntu Linux

Ted Fines fines at macalester.edu
Tue Aug 17 14:41:15 UTC 2010


Hi,

I have run into the same problem on CentOS 5--exactly the same behavior you
describe.  If run with "-d" it writes one .xml file and exits as planned.
If run as you'd normally want it to, it immediately dies with the malloc
error.

I too posted this problem back in February:
http://www.measurement-factory.com/pipermail/dsc/2010-February/000195.html
Duane Wessels quickly replied and offered a modification to the Makefile.in
to try, but it did not fix the problem for me.  Other work became more
pressing so I just gave up.

Yesterday though I tried again with the latest version from svn.  I noticed
that the aforementioned patch is included in the source now.  Still, it just
doesn't work and crashes the same way with the same malloc error.

So I brought up a CentOS 4.8 system, just to see if it would work on that.
It uses libpcap 0.8.3 (CentOS 5.4 uses libpcap 0.9.4; numerous other
libraries are different versions too). dsc runs perfectly fine on the CentOS
4.8 system, as it turns out!

I then copied the compiled binary from the CentOS 4.8 system to the CentOS
5.4 system and tried running it.  It immediately died, but with an error
that it couldn't find the libpcap.so.0.8.3 library.  That's understandable
since there wasn't one.  I created a symlink in /usr/lib for it (ln -s
libpcap.so.0.9.4 libpcap.so.0.8.3), then tried running it again, hoping the
good people at tcpdump.org would make 0.9.4 backward compatible with 0.8.3.


Hey, it works!  I've had dsc running overnight on my CentOS 5.4 system and
it has been humming along producing loads of .xml files.  Hooray!

I realize this is a total kludge.  But like Apache says, "Hey, it works!"  I
thought I'd post this as it might give Phil an idea to try something similar
and might provide insight to Duane as to why we get the malloc problem.

Hope this helps,
Ted

On Wed, Jul 21, 2010 at 12:41 PM, Phil Regnauld <regnauld at nsrc.org> wrote:

> Hi,
>
> Trying to setup DSC to work on Ubuntu Linux, but am seeing the collector
> dying
> immediately with a malloc error when trying to run it.  See the output
> further down.
>
> Note that the collector runs if -d is specified, and exits as planned after
> the
> first write.
>
> Version: dsc-200912101623
> OS: Ubuntu, Linux 2.6.31-14-generic-pae i686
>
> The collector configuration is the dsc.conf.sample, with the following
> changes:
>
>        local_address 192.168.50.116;
>        run_dir "/usr/local/dsc/run/localhost";
>        interface eth0;
>
> Here's the output of the crash.
>
> I can provide any additonal info as required.
>
> Thanks,
> Phil
>
>
>
> # /usr/local/dsc/bin/dsc  -f /usr/local/dsc/etc/dsc.conf
> *** glibc detected *** /usr/local/dsc/bin/dsc: malloc(): memory corruption:
> 0x08f97048 ***
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6[0xb75aa0d1]
> /lib/tls/i686/cmov/libc.so.6[0xb75accc3]
> /lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x58)[0xb75ae978]
> /usr/lib/libstdc++.so.6(_Znwj+0x27)[0xb7782bb7]
> /usr/lib/libstdc++.so.6(_ZNSs4_Rep9_S_createEjjRKSaIcE+0x66)[0xb775e436]
> /usr/lib/libstdc++.so.6[0xb775f661]
> /usr/lib/libstdc++.so.6(_ZNSsC1ERKSsjj+0x52)[0xb775f8d2]
> /usr/local/dsc/bin/dsc[0x8064b03]
> /usr/local/dsc/bin/dsc[0x805acf3]
> /usr/local/dsc/bin/dsc[0x805ad0f]
> /usr/local/dsc/bin/dsc[0x8053490]
> /usr/local/dsc/bin/dsc[0x8053f37]
> /usr/local/dsc/bin/dsc[0x8053f37]
> /usr/local/dsc/bin/dsc[0x8053f37]
> /usr/local/dsc/bin/dsc[0x80568b4]
> /usr/local/dsc/bin/dsc[0x804fde0]
> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7555b56]
> /usr/local/dsc/bin/dsc[0x804b031]
> ======= Memory map: ========
> 08048000-0806f000 r-xp 00000000 08:01 40633      /usr/local/dsc/bin/dsc
> 0806f000-08070000 r--p 00026000 08:01 40633      /usr/local/dsc/bin/dsc
> 08070000-08071000 rw-p 00027000 08:01 40633      /usr/local/dsc/bin/dsc
> 08071000-08112000 rw-p 00000000 00:00 0
> 08f66000-08fa8000 rw-p 00000000 00:00 0          [heap]
> b7400000-b7421000 rw-p 00000000 00:00 0
> b7421000-b7500000 ---p 00000000 00:00 0
> b753d000-b753f000 rw-p 00000000 00:00 0
> b753f000-b767d000 r-xp 00000000 08:01 927        /lib/tls/i686/cmov/
> libc-2.10.1.so
> b767d000-b767e000 ---p 0013e000 08:01 927        /lib/tls/i686/cmov/
> libc-2.10.1.so
> b767e000-b7680000 r--p 0013e000 08:01 927        /lib/tls/i686/cmov/
> libc-2.10.1.so
> b7680000-b7681000 rw-p 00140000 08:01 927        /lib/tls/i686/cmov/
> libc-2.10.1.so
> b7681000-b7684000 rw-p 00000000 00:00 0
> b7684000-b76a0000 r-xp 00000000 08:01 2719       /lib/libgcc_s.so.1
> b76a0000-b76a1000 r--p 0001b000 08:01 2719       /lib/libgcc_s.so.1
> b76a1000-b76a2000 rw-p 0001c000 08:01 2719       /lib/libgcc_s.so.1
> b76a2000-b76c6000 r-xp 00000000 08:01 931        /lib/tls/i686/cmov/
> libm-2.10.1.so
> b76c6000-b76c7000 r--p 00023000 08:01 931        /lib/tls/i686/cmov/
> libm-2.10.1.so
> b76c7000-b76c8000 rw-p 00024000 08:01 931        /lib/tls/i686/cmov/
> libm-2.10.1.so
> b76c8000-b77ae000 r-xp 00000000 08:01 2758
> /usr/lib/libstdc++.so.6.0.13
> b77ae000-b77b2000 r--p 000e6000 08:01 2758
> /usr/lib/libstdc++.so.6.0.13
> b77b2000-b77b3000 rw-p 000ea000 08:01 2758
> /usr/lib/libstdc++.so.6.0.13
> b77b3000-b77ba000 rw-p 00000000 00:00 0
> b77ba000-b77ca000 r-xp 00000000 08:01 2704       /lib/tls/i686/cmov/
> libresolv-2.10.1.so
> b77ca000-b77cb000 r--p 00010000 08:01 2704       /lib/tls/i686/cmov/
> libresolv-2.10.1.so
> b77cb000-b77cc000 rw-p 00011000 08:01 2704       /lib/tls/i686/cmov/
> libresolv-2.10.1.so
> b77cc000-b77cf000 rw-p 00000000 00:00 0
> b77cf000-b77e2000 r-xp 00000000 08:01 934        /lib/tls/i686/cmov/
> libnsl-2.10.1.so
> b77e2000-b77e3000 r--p 00012000 08:01 934        /lib/tls/i686/cmov/
> libnsl-2.10.1.so
> b77e3000-b77e4000 rw-p 00013000 08:01 934        /lib/tls/i686/cmov/
> libnsl-2.10.1.so
> b77e4000-b77e6000 rw-p 00000000 00:00 0
> b77e6000-b7817000 r-xp 00000000 08:01 39037      /usr/lib/libpcap.so.1.0.0
> b7817000-b7818000 r--p 00031000 08:01 39037      /usr/lib/libpcap.so.1.0.0
> b7818000-b7819000 rw-p 00032000 08:01 39037      /usr/lib/libpcap.so.1.0.0
> b781e000-b7820000 rw-p 00000000 00:00 0
> b7820000-b7821000 r-xp 00000000 00:00 0          [vdso]
> b7821000-b783c000 r-xp 00000000 08:01 2446       /lib/ld-2.10.1.so
> b783c000-b783d000 r--p 0001a000 08:01 2446       /lib/ld-2.10.1.so
> b783d000-b783e000 rw-p 0001b000 08:01 2446       /lib/ld-2.10.1.so
> bfe89000-bfe9e000 rw-p 00000000 00:00 0          [stack]
> Aborted
>
> _______________________________________________
> dsc mailing list
> dsc at measurement-factory.com
> http://www.measurement-factory.com/mailman/listinfo/dsc
>



More information about the dsc mailing list