From fines at macalester.edu Tue Feb 16 22:05:15 2010 From: fines at macalester.edu (Ted Fines) Date: Tue, 16 Feb 2010 16:05:15 -0600 Subject: [dsc] dsc malloc() memory corruption error Message-ID: <8d0d60a81002161405v2c9961a2rcdb3b4a440553582@mail.gmail.com> I have built and installed dsc on a CentOS 5.x (RHEL 5 clone) system running kernel 2.6.18-164.6.1.el5 but can't get it to run. When I try starting dsc I get the following malloc() memory corruption error right away (below). I have tried starting it both as root and as the 'dsc' user. I have tried two different versions of dsc, today's (Feb. 16) SVN version, "Checked out revision 12169", and also from the .tar.gz download dsc-200911111630.tar.gz. In all cases I get the error. Any help? Thanks, Ted [dsc at ns dsc]$ bin/dsc etc/dsc.conf *** glibc detected *** bin/dsc: malloc(): memory corruption: 0x0828d2f8 *** ======= Backtrace: ========= /lib/libc.so.6[0x753250] /lib/libc.so.6(__libc_malloc+0x67)[0x754d87] /usr/lib/libstdc++.so.6(_Znwj+0x27)[0xd824d7] /usr/lib/libstdc++.so.6(_ZNSs4_Rep9_S_createEjjRKSaIcE+0x6b)[0xd5db1b] /usr/lib/libstdc++.so.6[0xd5eb85] /usr/lib/libstdc++.so.6(_ZNSsC1ERKSsjj+0x53)[0xd5ed03] bin/dsc[0x8065cd1] bin/dsc[0x805adf7] bin/dsc[0x805ae13] bin/dsc[0x8053b48] bin/dsc[0x80543ab] bin/dsc[0x80543ab] bin/dsc[0x80543ab] bin/dsc[0x8057141] bin/dsc[0x804f2b1] /lib/libc.so.6(__libc_start_main+0xdc)[0x6fee9c] bin/dsc(__gxx_personality_v0+0xdd)[0x804a891] ======= Memory map: ======== 00158000-0017d000 r-xp 00000000 fd:00 492411 /lib/libm-2.5.so 0017d000-0017e000 r-xp 00024000 fd:00 492411 /lib/libm-2.5.so 0017e000-0017f000 rwxp 00025000 fd:00 492411 /lib/libm-2.5.so 001f3000-0020d000 r-xp 00000000 fd:00 657700 /lib/ld-2.5.so 0020d000-0020e000 r-xp 00019000 fd:00 657700 /lib/ld-2.5.so 0020e000-0020f000 rwxp 0001a000 fd:00 657700 /lib/ld-2.5.so 00637000-00642000 r-xp 00000000 fd:00 492652 /lib/libgcc_s-4.1.2-20080825.so.1 00642000-00643000 rwxp 0000a000 fd:00 492652 /lib/libgcc_s-4.1.2-20080825.so.1 006e9000-00828000 r-xp 00000000 fd:00 492397 /lib/libc-2.5.so 00828000-00829000 --xp 0013f000 fd:00 492397 /lib/libc-2.5.so 00829000-0082b000 r-xp 0013f000 fd:00 492397 /lib/libc-2.5.so 0082b000-0082c000 rwxp 00141000 fd:00 492397 /lib/libc-2.5.so 0082c000-0082f000 rwxp 0082c000 00:00 0 00921000-00930000 r-xp 00000000 fd:00 492443 /lib/libresolv-2.5.so 00930000-00931000 r-xp 0000e000 fd:00 492443 /lib/libresolv-2.5.so 00931000-00932000 rwxp 0000f000 fd:00 492443 /lib/libresolv-2.5.so 00932000-00934000 rwxp 00932000 00:00 0 00a29000-00a2a000 r-xp 00a29000 00:00 0 [vdso] 00a66000-00a79000 r-xp 00000000 fd:00 492413 /lib/libnsl-2.5.so 00a79000-00a7a000 r-xp 00012000 fd:00 492413 /lib/libnsl-2.5.so 00a7a000-00a7b000 rwxp 00013000 fd:00 492413 /lib/libnsl-2.5.so 00a7b000-00a7d000 rwxp 00a7b000 00:00 0 00ad0000-00af8000 r-xp 00000000 fd:00 466302 /usr/lib/libpcap.so.0.9.4 00af8000-00af9000 rwxp 00028000 fd:00 466302 /usr/lib/libpcap.so.0.9.4 00cd0000-00dae000 r-xp 00000000 fd:00 470354 /usr/lib/libstdc++.so.6.0.8 00dae000-00db1000 r-xp 000dd000 fd:00 470354 /usr/lib/libstdc++.so.6.0.8 00db1000-00db3000 rwxp 000e0000 fd:00 470354 /usr/lib/libstdc++.so.6.0.8 00db3000-00db9000 rwxp 00db3000 00:00 0 08048000-08070000 r-xp 00000000 fd:00 958727 /usr/local/dsc/bin/dsc 08070000-08071000 rw-p 00028000 fd:00 958727 /usr/local/dsc/bin/dsc 08071000-08112000 rw-p 08071000 00:00 0 0825c000-0829e000 rw-p 0825c000 00:00 0 [heap] b7d00000-b7d21000 rw-p b7d00000 00:00 0 b7d21000-b7e00000 ---p b7d21000 00:00 0 b7f00000-b7f03000 rw-p b7f00000 00:00 0 bfeda000-bfeef000 rw-p bffea000 00:00 0 [stack] Aborted From wessels at measurement-factory.com Thu Feb 18 02:13:53 2010 From: wessels at measurement-factory.com (Duane Wessels) Date: Wed, 17 Feb 2010 19:13:53 -0700 (MST) Subject: [dsc] dsc malloc() memory corruption error In-Reply-To: <8d0d60a81002161405v2c9961a2rcdb3b4a440553582@mail.gmail.com> References: <8d0d60a81002161405v2c9961a2rcdb3b4a440553582@mail.gmail.com> Message-ID: On Tue, 16 Feb 2010, Ted Fines wrote: > I have built and installed dsc on a CentOS 5.x (RHEL 5 clone) system running > kernel 2.6.18-164.6.1.el5 but can't get it to run. When I try starting dsc > I get the following malloc() memory corruption error right away (below). I > have tried starting it both as root and as the 'dsc' user. I have tried two > different versions of dsc, today's (Feb. 16) SVN version, "Checked out > revision 12169", and also from the .tar.gz download > dsc-200911111630.tar.gz. In all cases I get the error. Hi Ted, can you share your dsc.conf with me (privately) and I'll try to reproduce it here. From mehmet at akcin.net Sat Feb 20 18:10:58 2010 From: mehmet at akcin.net (Mehmet Akcin) Date: Sat, 20 Feb 2010 12:10:58 -0600 Subject: [dsc] dsc malloc() memory corruption error Message-ID: <522CAE83-58C5-4B61-93C7-AEE3C31AFE33@akcin.net> *** glibc detected *** /usr/local/dsc/bin/dsc: realloc(): invalid next size: 0x098d7dc8 *** anyone has an idea on this error's solution.. Mehmet From mehmet at icann.org Sat Feb 20 18:49:08 2010 From: mehmet at icann.org (Mehmet Akcin) Date: Sat, 20 Feb 2010 10:49:08 -0800 Subject: [dsc] dsc malloc() memory corruption error In-Reply-To: <522CAE83-58C5-4B61-93C7-AEE3C31AFE33@akcin.net> Message-ID: [root at b collector]# /usr/local/dsc/bin/dsc -p /usr/local/dsc/etc/dsc.conf *** glibc detected *** /usr/local/dsc/bin/dsc: realloc(): invalid next size: 0x0947ddc8 *** ======= Backtrace: ========= /lib/libc.so.6[0xd6a851] /lib/libc.so.6(realloc+0xe6)[0xd6b276] /lib/libc.so.6[0xd5ecca] /lib/libc.so.6(fclose+0xbb)[0xd56c1b] /lib/libc.so.6(__vsyslog_chk+0x19a)[0xdccf9a] /lib/libc.so.6(syslog+0x2a)[0xdcd43a] /usr/local/dsc/bin/dsc[0x8057472] /usr/local/dsc/bin/dsc[0x805385c] /usr/local/dsc/bin/dsc[0x80543ab] /usr/local/dsc/bin/dsc[0x80543ab] /usr/local/dsc/bin/dsc[0x80543ab] /usr/local/dsc/bin/dsc[0x8057141] /usr/local/dsc/bin/dsc[0x804f2b1] /lib/libc.so.6(__libc_start_main+0xdc)[0xd14e9c] /usr/local/dsc/bin/dsc(__gxx_personality_v0+0xdd)[0x804a891] ======= Memory map: ======== 00110000-00135000 r-xp 00000000 08:03 8938449 /lib/libm-2.5.so 00135000-00136000 r--p 00024000 08:03 8938449 /lib/libm-2.5.so 00136000-00137000 rw-p 00025000 08:03 8938449 /lib/libm-2.5.so 003f6000-00409000 r-xp 00000000 08:03 8938451 /lib/libnsl-2.5.so 00409000-0040a000 r--p 00012000 08:03 8938451 /lib/libnsl-2.5.so 0040a000-0040b000 rw-p 00013000 08:03 8938451 /lib/libnsl-2.5.so 0040b000-0040d000 rw-p 0040b000 00:00 0 00728000-00729000 r-xp 00728000 00:00 0 [vdso] 0075a000-00769000 r-xp 00000000 08:03 8938455 /lib/libresolv-2.5.so 00769000-0076a000 r--p 0000e000 08:03 8938455 /lib/libresolv-2.5.so 0076a000-0076b000 rw-p 0000f000 08:03 8938455 /lib/libresolv-2.5.so 0076b000-0076d000 rw-p 0076b000 00:00 0 008c5000-008ed000 r-xp 00000000 08:03 12449616 /usr/lib/libpcap.so.0.9.4 008ed000-008ee000 rw-p 00028000 08:03 12449616 /usr/lib/libpcap.so.0.9.4 00b7e000-00b89000 r-xp 00000000 08:03 8938463 /lib/libgcc_s-4.1.2-20080825.so.1 00b89000-00b8a000 rw-p 0000a000 08:03 8938463 /lib/libgcc_s-4.1.2-20080825.so.1 00b8c000-00c6c000 r-xp 00000000 08:03 12449272 /usr/lib/libstdc++.so.6.0.8 00c6c000-00c70000 r--p 000df000 08:03 12449272 /usr/lib/libstdc++.so.6.0.8 00c70000-00c71000 rw-p 000e3000 08:03 12449272 /usr/lib/libstdc++.so.6.0.8 00c71000-00c77000 rw-p 00c71000 00:00 0 00cd1000-00ceb000 r-xp 00000000 08:03 8936941 /lib/ld-2.5.so 00ceb000-00cec000 r--p 00019000 08:03 8936941 /lib/ld-2.5.so 00cec000-00ced000 rw-p 0001a000 08:03 8936941 /lib/ld-2.5.so 00cff000-00e3e000 r-xp 00000000 08:03 8936948 /lib/libc-2.5.so 00e3e000-00e3f000 ---p 0013f000 08:03 8936948 /lib/libc-2.5.so 00e3f000-00e41000 r--p 0013f000 08:03 8936948 /lib/libc-2.5.so 00e41000-00e42000 rw-p 00141000 08:03 8936948 /lib/libc-2.5.so 00e42000-00e45000 rw-p 00e42000 00:00 0 08048000-08070000 r-xp 00000000 08:03 12804795 /usr/local/dsc/bin/dsc 08070000-08071000 rw-p 00028000 08:03 12804795 /usr/local/dsc/bin/dsc 08071000-08112000 rw-p 08071000 00:00 0 09458000-0949a000 rw-p 09458000 00:00 0 [heap] b7e00000-b7e21000 rw-p b7e00000 00:00 0 b7e21000-b7f00000 ---p b7e21000 00:00 0 b7f25000-b7f28000 rw-p b7f25000 00:00 0 bfb34000-bfb49000 rw-p bffea000 00:00 0 [stack] Aborted Perhaps this will be more useful mehmet On 2/20/10 10:10 AM, "Mehmet Akcin" wrote: > *** glibc detected *** /usr/local/dsc/bin/dsc: realloc(): invalid next size: > 0x098d7dc8 *** > > anyone has an idea on this error's solution.. > > Mehmet > _______________________________________________ > dsc mailing list > dsc at measurement-factory.com > http://www.measurement-factory.com/mailman/listinfo/dsc From wessels at measurement-factory.com Sun Feb 21 07:24:50 2010 From: wessels at measurement-factory.com (Duane Wessels) Date: Sun, 21 Feb 2010 00:24:50 -0700 (MST) Subject: [dsc] dsc malloc() memory corruption error In-Reply-To: References: Message-ID: On Sat, 20 Feb 2010, Mehmet Akcin wrote: > > [root at b collector]# /usr/local/dsc/bin/dsc -p /usr/local/dsc/etc/dsc.conf can you run it like this: /usr/local/dsc/bin/dsc -f -d /usr/local/dsc/etc/dsc.conf and send me the output? From wessels at measurement-factory.com Mon Feb 22 21:36:53 2010 From: wessels at measurement-factory.com (Duane Wessels) Date: Mon, 22 Feb 2010 14:36:53 -0700 (MST) Subject: [dsc] tap tap tap... Message-ID: It seems the mailman configuration has been broken for a while after a software upgrade. Here's a test to the list... Duane W. From wessels at measurement-factory.com Mon Feb 22 23:01:59 2010 From: wessels at measurement-factory.com (Duane Wessels) Date: Mon, 22 Feb 2010 16:01:59 -0700 (MST) Subject: [dsc] dsc malloc() memory corruption error In-Reply-To: <8d0d60a81002161405v2c9961a2rcdb3b4a440553582@mail.gmail.com> References: <8d0d60a81002161405v2c9961a2rcdb3b4a440553582@mail.gmail.com> Message-ID: On Tue, 16 Feb 2010, Ted Fines wrote: > I have built and installed dsc on a CentOS 5.x (RHEL 5 clone) system running > kernel 2.6.18-164.6.1.el5 but can't get it to run. When I try starting dsc > I get the following malloc() memory corruption error right away (below). I Hi Ted, You weren't the only one with this problem. See if the attached patch fixes it for you. Index: collector/dsc/Makefile.in =================================================================== --- collector/dsc/Makefile.in (revision 12012) +++ collector/dsc/Makefile.in (revision 12013) @@ -1,7 +1,8 @@ PROG=dsc HAPY=../TmfBase/Hapy -CFLAGS=-g -Wall -DUSE_IPV6=1 -I $(HAPY)/src/include -I/usr/local/include +CFLAGS=-g -Wall CPPFLAGS = ${CFLAGS} +MYCPPFLAGS = -DUSE_IPV6=1 -I $(HAPY)/src/include -I/usr/local/include LDFLAGS += -L/usr/local/lib TODAY != date +%Y%m%d INSTALLDIR=/usr/local/dsc @@ -76,6 +77,7 @@ ParseConfig.o: ParseConfig.cc $(LIBHAPY) + $(CXX) -c -o $@ ${MYCPPFLAGS} ParseConfig.cc $(LIBHAPY): $(HAPY)/Makefile @echo $@ is out of date From wessels at measurement-factory.com Mon Feb 22 23:09:26 2010 From: wessels at measurement-factory.com (Duane Wessels) Date: Mon, 22 Feb 2010 16:09:26 -0700 (MST) Subject: [dsc] Some notes on DSC docs. In-Reply-To: References: Message-ID: On Sat, 20 Feb 2010, Warren Kumari wrote: > Hey Duane, > > Hows life treating you these days? > > I *finally* got around to installing DSC and really like it. I did run into a > few minor issues during install / setup and figured I should provide some > notes. > > These notes are against: dsc-200911111630 running on Ubuntu 8.04 and against > the PDF doc dated: January 24, 2008 > > 1: The doc makes multiple references to > '/usr/local/dsc/libexec/upload-prep.sh', but I think you actually mean > '/usr/local/dsc/libexec/upload-prep.pl' > > 2: On Page 18 of the doc you have: 'Note that DEST is the name of the local > ?upload? directory and em RSYNC-DEST' -- I think that the 'em' tag didn't get > parsed properly. > > 3: I need to add 'IO::File' to > /usr/local/share/perl/5.8.8/DSC/grapher/config.pm to make debug work (tiny > diff below). > > 4: Ubuntu's package manager (apt) helpfully puts 'ploticus' in /usr/bin -- I > was going to update ploticus.pm, but got lazy and just symlinked them. Thanks for the comments! These should all be fixed now for the next release. From fines at macalester.edu Tue Feb 23 13:47:57 2010 From: fines at macalester.edu (Ted Fines) Date: Tue, 23 Feb 2010 07:47:57 -0600 Subject: [dsc] dsc malloc() memory corruption error In-Reply-To: References: <8d0d60a81002161405v2c9961a2rcdb3b4a440553582@mail.gmail.com> Message-ID: <8d0d60a81002230547q78265323s10cc41496fef6a4c@mail.gmail.com> Hi, Thank you. Still having problems, unfortunately. The source download at http://dns.measurement-factory.com/tools/dsc/download/dsc-200911111630.tar.gzalready has the changes you note below in its collector/dsc/Makefile.in. I also tried the older one at http://dns.measurement-factory.com/tools/dsc/download/dsc-200801301758.tar.gz, which didn't have the diff changes you noted. So I patched that one and make/make installed it, but I get the same malloc error. However, one way I can get any of the versions to run, without getting the error, is if I run it with the "-d" debug flag. Whether I do cd /usr/local/dsc bin/dsc -d etc/dsc.conf ...or... /usr/local/dsc/bin/dsc -d /usr/local/dsc/etc/dsc.conf The program runs correctly, without error and produces the .xml file. I don't know why that would be -- seems strange to me. Is that any help? Thanks, Ted On Mon, Feb 22, 2010 at 5:01 PM, Duane Wessels < wessels at measurement-factory.com> wrote: > > > > On Tue, 16 Feb 2010, Ted Fines wrote: > > I have built and installed dsc on a CentOS 5.x (RHEL 5 clone) system >> running >> kernel 2.6.18-164.6.1.el5 but can't get it to run. When I try starting >> dsc >> I get the following malloc() memory corruption error right away (below). >> I >> > > Hi Ted, > > You weren't the only one with this problem. See if the attached > patch fixes it for you. > > > Index: collector/dsc/Makefile.in > =================================================================== > --- collector/dsc/Makefile.in (revision 12012) > +++ collector/dsc/Makefile.in (revision 12013) > @@ -1,7 +1,8 @@ > PROG=dsc > HAPY=../TmfBase/Hapy > -CFLAGS=-g -Wall -DUSE_IPV6=1 -I $(HAPY)/src/include -I/usr/local/include > +CFLAGS=-g -Wall > CPPFLAGS = ${CFLAGS} > +MYCPPFLAGS = -DUSE_IPV6=1 -I $(HAPY)/src/include -I/usr/local/include > LDFLAGS += -L/usr/local/lib > TODAY != date +%Y%m%d > INSTALLDIR=/usr/local/dsc > @@ -76,6 +77,7 @@ > > > ParseConfig.o: ParseConfig.cc $(LIBHAPY) > + $(CXX) -c -o $@ ${MYCPPFLAGS} ParseConfig.cc > > $(LIBHAPY): $(HAPY)/Makefile > @echo $@ is out of date > From wessels at measurement-factory.com Tue Feb 23 15:40:13 2010 From: wessels at measurement-factory.com (Duane Wessels) Date: Tue, 23 Feb 2010 08:40:13 -0700 (MST) Subject: [dsc] dsc malloc() memory corruption error In-Reply-To: <8d0d60a81002230547q78265323s10cc41496fef6a4c@mail.gmail.com> References: <8d0d60a81002161405v2c9961a2rcdb3b4a440553582@mail.gmail.com> <8d0d60a81002230547q78265323s10cc41496fef6a4c@mail.gmail.com> Message-ID: On Tue, 23 Feb 2010, Ted Fines wrote: > Hi, > > Thank you. Still having problems, unfortunately. > > The source download at > http://dns.measurement-factory.com/tools/dsc/download/dsc-200911111630.tar.gzalready > has the changes you note below in its collector/dsc/Makefile.in. I My mistake. I made the patch incorrectly. It should be this: $ svn diff -r12013:12176 collector/dsc/Makefile.in Index: collector/dsc/Makefile.in =================================================================== --- collector/dsc/Makefile.in (revision 12013) +++ collector/dsc/Makefile.in (revision 12176) @@ -1,8 +1,8 @@ PROG=dsc HAPY=../TmfBase/Hapy -CFLAGS=-g -Wall +CFLAGS=-g -Wall -DUSE_IPV6=1 CPPFLAGS = ${CFLAGS} -MYCPPFLAGS = -DUSE_IPV6=1 -I $(HAPY)/src/include -I/usr/local/include +MYCPPFLAGS = -g -DUSE_IPV6=1 -I $(HAPY)/src/include -I/usr/local/include LDFLAGS += -L/usr/local/lib TODAY != date +%Y%m%d INSTALLDIR=/usr/local/dsc From fines at macalester.edu Tue Feb 23 21:54:20 2010 From: fines at macalester.edu (Ted Fines) Date: Tue, 23 Feb 2010 15:54:20 -0600 Subject: [dsc] dsc malloc() memory corruption error In-Reply-To: References: <8d0d60a81002161405v2c9961a2rcdb3b4a440553582@mail.gmail.com> <8d0d60a81002230547q78265323s10cc41496fef6a4c@mail.gmail.com> Message-ID: <8d0d60a81002231354v406834a5tf7e38b29cf229028@mail.gmail.com> Hi, I get the same error with the new Makefile.in too. This system is a VMWare virtual machine, in case that makes a difference... Thanks, Ted On Tue, Feb 23, 2010 at 9:40 AM, Duane Wessels < wessels at measurement-factory.com> wrote: > > > > On Tue, 23 Feb 2010, Ted Fines wrote: > > Hi, >> >> Thank you. Still having problems, unfortunately. >> >> The source download at >> >> http://dns.measurement-factory.com/tools/dsc/download/dsc-200911111630.tar.gzalready >> has the changes you note below in its collector/dsc/Makefile.in. I >> > > My mistake. I made the patch incorrectly. It should be this: > > $ svn diff -r12013:12176 collector/dsc/Makefile.in > > Index: collector/dsc/Makefile.in > =================================================================== > --- collector/dsc/Makefile.in (revision 12013) > +++ collector/dsc/Makefile.in (revision 12176) > @@ -1,8 +1,8 @@ > > PROG=dsc > HAPY=../TmfBase/Hapy > -CFLAGS=-g -Wall +CFLAGS=-g -Wall -DUSE_IPV6=1 > > CPPFLAGS = ${CFLAGS} > -MYCPPFLAGS = -DUSE_IPV6=1 -I $(HAPY)/src/include -I/usr/local/include > +MYCPPFLAGS = -g -DUSE_IPV6=1 -I $(HAPY)/src/include -I/usr/local/include > > LDFLAGS += -L/usr/local/lib > TODAY != date +%Y%m%d > INSTALLDIR=/usr/local/dsc > > From wessels at measurement-factory.com Wed Feb 24 18:34:23 2010 From: wessels at measurement-factory.com (Duane Wessels) Date: Wed, 24 Feb 2010 11:34:23 -0700 (MST) Subject: [dsc] dsc malloc() memory corruption error In-Reply-To: <8d0d60a81002231354v406834a5tf7e38b29cf229028@mail.gmail.com> References: <8d0d60a81002161405v2c9961a2rcdb3b4a440553582@mail.gmail.com> <8d0d60a81002230547q78265323s10cc41496fef6a4c@mail.gmail.com> <8d0d60a81002231354v406834a5tf7e38b29cf229028@mail.gmail.com> Message-ID: On Tue, 23 Feb 2010, Ted Fines wrote: > Hi, > > I get the same error with the new Makefile.in too. This system is a VMWare > virtual machine, in case that makes a difference... Really? Because I saw it work on another centos system where I reproduced the problem? I probably should have mentioned that you have to re-run configure after patching Makefile.in. Did you happen to do that?