Stroller | 2 Jul 2006 19:24
Picon

Fetchnews - glibc detected *** double free or corruption - aborted

Hi there,

I'm having a bit of a problem with fetchnews on one of my systems,  
which gives this error:

    $ sudo fetchnews -vvv
    Password:
    fetchnews mode: get articles, get headers, get bodies, post articles
    erased stale pid 8995 host quattro.stroller.uk.eu.org lockfile / 
var/spool/news/leaf.node/lock.file
    *** glibc detected *** double free or corruption (!prev):  
0x08068d98 ***
    Aborted
    $ sudo rm -f /var/spool/news/leaf.node/lock.file
    $ sudo fetchnews -vvv
    fetchnews mode: get articles, get headers, get bodies, post articles
    *** glibc detected *** double free or corruption (!prev):  
0x08068d98 ***
    Aborted
    $

It used to work fine, but I am using the Gentoo distro and upgraded  
something else and now fetchnews does this consistently. I have tried  
recompiling Leafnode, libpcre and most every package on my system  
(using `emerge -e leafnode) and I still get this problem; it gives  
the same symptoms using the 20060321 snapshot (supplied by Gentoo's  
portage) and the 20060608 snapshot, both irrespective of whether I  
compile them using Gentoo's ebuild or manually using `./configure ;  
make ; make install`.

(Continue reading)

Martin | 2 Jul 2006 20:44
Picon
Favicon

Re: Fetchnews - glibc detected *** double free or corruption - aborted

Hello,

On Sun, Jul 02, 2006 at 06:24:58PM +0100, Stroller wrote:
> Hi there,
> 
> I'm having a bit of a problem with fetchnews on one of my systems,  
> which gives this error:
> 
>     $ sudo fetchnews -vvv

What happens, if you do *not* sudo but log in as root and then
fetchnews?

> It used to work fine, but I am using the Gentoo distro and upgraded  
> something else and now fetchnews does this consistently. I have tried  
> recompiling Leafnode, libpcre and most every package on my system  
> (using `emerge -e leafnode) and I still get this problem; it gives  
> the same symptoms using the 20060321 snapshot (supplied by Gentoo's  
> portage) and the 20060608 snapshot, both irrespective of whether I  
> compile them using Gentoo's ebuild or manually using `./configure ;  
> make ; make install`.
> 
> I have this idea that this "double free" message may be only a run- 
> time warning from the compiler, but I have no idea to disable it.

https://www.redhat.com/archives/fedora-list/2005-January/msg01918.html

There's said that there are "additional sanity checks" in glibc. So
either sudo or fetchnews are insane.

(Continue reading)

Stroller | 2 Jul 2006 21:44
Picon

Re: Fetchnews - glibc detected *** double free or corruption - aborted


On 2 Jul 2006, at 19:44, Martin wrote:
>>
>> I'm having a bit of a problem with fetchnews on one of my systems,
>> which gives this error:
>>
>>     $ sudo fetchnews -vvv
>
> What happens, if you do *not* sudo but log in as root and then
> fetchnews?

Sorry, I should have said: exactly the same thing.

>> I have this idea that this "double free" message may be only a run-
>> time warning from the compiler, but I have no idea to disable it.
>
> https://www.redhat.com/archives/fedora-list/2005-January/msg01918.html

I _think_ the implication of this is that I can do

   # MALLOC_CHECK_=0 fetchnews -vvv

??

I'll try this shortly (I'm bogged down in some other stuff right now).

> .... gcc is
> installed in versions 3.3.6 and 3.4.6-r1, gcc-config says I'm using
> 3.4.6 (I suspect you also habe an installed 3.4.6, but did not switch
> with gcc-config. Remember to fix_libtool_files.sh!)
(Continue reading)

Martin | 2 Jul 2006 21:58
Picon
Favicon

Re: Fetchnews - glibc detected *** double free or corruption - aborted

On Sun, Jul 02, 2006 at 08:44:16PM +0100, Stroller wrote:
> On 2 Jul 2006, at 19:44, Martin wrote:
> >> I have this idea that this "double free" message may be only a run-
> >> time warning from the compiler, but I have no idea to disable it.
> >
> > https://www.redhat.com/archives/fedora-list/2005-January/msg01918.html
> 
> I _think_ the implication of this is that I can do
> 
>    # MALLOC_CHECK_=0 fetchnews -vvv
> 
> ??

Yes, that should help 
- avoiding this message and
- not getting this program killed.

> I've just Googled & found <http://www.gentoo.org/doc/en/gcc- 
> upgrading.xml#upgrade-3.3-to-3.4> so I'll try that now.

There are a lot of upgrading guides on gentoo.org/doc/en. Today my
Gentoo wanted to upgrade to modular X, I directly looked up that page.

Thanks to all the guys writing this!

> > Maybe I could risk a short look at how much traffic is on -user, but I
> > think itd be too much for my poor mailbox. I'm currently reading only
> > -user-de.
> 
> Actually, it seems remarkably low volume to me, these days. 59  
(Continue reading)

Matthias Andree | 3 Jul 2006 11:29
Picon
Picon

Re: Fetchnews - glibc detected *** double free or corruption - aborted

Stroller <linux.luser@...> writes:

>     CFLAGS="-O2 -march=pentium2 -fomit-frame-pointer"

-fomit-frame-pointer forfeits most of the debugging efforts.
Please don't use it.

And back to the original order:

> I'm having a bit of a problem with fetchnews on one of my systems,  
> which gives this error:
>
>     $ sudo fetchnews -vvv
>     Password:
>     fetchnews mode: get articles, get headers, get bodies, post articles
>     erased stale pid 8995 host quattro.stroller.uk.eu.org lockfile / 
> var/spool/news/leaf.node/lock.file
>     *** glibc detected *** double free or corruption (!prev):  
> 0x08068d98 ***

Can you do this:

1. make sure that your leafnode install does not strip debugging
   symbols. In doubt, CFLAGS="-ggdb3 -O1" ./configure ; make
   and then make install (add other configure options as you need them).

2. Install the most recent valgrind you can find and then run:

   sudo valgrind --leak-check=yes --show-reachable=yes \
                 --num-callers=16 --quiet fetchnews -vvv 2>&1 \
(Continue reading)

Martin | 3 Jul 2006 20:11
Picon
Favicon

Re: Fetchnews - glibc detected *** double free or corruption - aborted

On Mon, Jul 03, 2006 at 11:29:20AM +0200, Matthias Andree wrote:
> Stroller <linux.luser@...> writes:
> 
> >     CFLAGS="-O2 -march=pentium2 -fomit-frame-pointer"
> 
> -fomit-frame-pointer forfeits most of the debugging efforts.
> Please don't use it.

emerge does anyway.

> > I'm having a bit of a problem with fetchnews on one of my systems,  
> > which gives this error:
> >
> >     $ sudo fetchnews -vvv
> >     Password:
> >     fetchnews mode: get articles, get headers, get bodies, post articles
> >     erased stale pid 8995 host quattro.stroller.uk.eu.org lockfile / 
> > var/spool/news/leaf.node/lock.file
> >     *** glibc detected *** double free or corruption (!prev):  
> > 0x08068d98 ***
> 
> Can you do this:
> 
> 1. make sure that your leafnode install does not strip debugging
>    symbols. In doubt, CFLAGS="-ggdb3 -O1" ./configure ; make
>    and then make install (add other configure options as you need them).

I would not really like to do this, since this installs files beside the
portage system and I'm not a friend of this. (Long time ago I had a
slackware-install and installed other programs "from source" beside it.
(Continue reading)

Stroller | 4 Jul 2006 02:12
Picon

Re: Fetchnews - glibc detected *** double free or corruption - aborted


On 3 Jul 2006, at 10:29, Matthias Andree wrote:
> ...
>> I'm having a bit of a problem with fetchnews on one of my systems,
>> which gives this error:
>>
>>     $ sudo fetchnews -vvv
>>     Password:
>>     fetchnews mode: get articles, get headers, get bodies, post  
>> articles
>>     erased stale pid 8995 host quattro.stroller.uk.eu.org lockfile /
>> var/spool/news/leaf.node/lock.file
>>     *** glibc detected *** double free or corruption (!prev):
>> 0x08068d98 ***
>
> Can you do this:
>
> 1. make sure that your leafnode install does not strip debugging
>    symbols. In doubt, CFLAGS="-ggdb3 -O1" ./configure ; make
> ...
> 2. Install the most recent valgrind you can find and then run:
>
>    sudo valgrind --leak-check=yes --show-reachable=yes \
>                  --num-callers=16 --quiet fetchnews -vvv 2>&1 \
>    tee fetchnews.log
> ...
> And provide the output to me. If it's excessively large, please  
> gzip and
> mail me directly, anything up to 200 lines of logs should be fine for
> the list.
(Continue reading)

Matthias Andree | 4 Jul 2006 12:42
Picon
Picon

Re: Fetchnews - glibc detected *** double free or corruption - aborted

Martin <virenfang@...> writes:

>> >     CFLAGS="-O2 -march=pentium2 -fomit-frame-pointer"
>> 
>> -fomit-frame-pointer forfeits most of the debugging efforts.
>> Please don't use it.
>
> emerge does anyway.

Tell it not do to that, but use -ggdb3 -O1 instead.
(I don't know emerge.)

> I'd suggest tuning make.conf the following way:

make.conf isn't a fetchmail feature.

> 1) Add FEATURES="nostrip"
> 2) Use CFLAGS="-ggdb3 -O1"
>
> The call for configure in the ebuild uses the default options 
>                 --sysconfdir=/etc/leafnode \
>                 --with-runas-user=news \
>                 --localstatedir=/var \
>                 --with-spooldir=/var/spool/news \
>                 $(use_with ipv6) \

"use_with ipv6" is obsolete since fetchmail 6.3.0, the configure scripts
works as though --enable-ipv6 has been specified, because the IPv6 API
has been official for quite a while and the original inet6 libraries
have been withdrawn by their author.
(Continue reading)

Joerg Dietrich | 4 Jul 2006 13:09
Gravatar

Re: Fetchnews - glibc detected *** double free or corruption - aborted

> > I'd suggest tuning make.conf the following way:
> 
> make.conf isn't a fetchmail feature.
                    ^^^^^^^^^
		    
make.conf is a configuration file for emerge giving the default
compiler options. Why fetchmail?

> "use_with ipv6" is obsolete since fetchmail 6.3.0
                                    ^^^^^^^^^^^^^^^

One uf us is on the wrong list... The point is of course valid.

Cheers,
	Jo:rg

--

-- 
       ---===  Encrypted mail preferred. Key-ID: 1024D/2B693EBF  ===---
Fortune cookie of the day:
It's all right letting yourself go as long as you can let yourself back.
		-- Mick Jagger
Matthias Andree | 4 Jul 2006 17:53
Picon
Picon

Re: Fetchnews - glibc detected *** double free or corruption - aborted

Matthias Andree schrieb am 2006-07-04:

> "use_with ipv6" is obsolete since fetchmail 6.3.0, the configure scripts
> works as though --enable-ipv6 has been specified, because the IPv6 API
> has been official for quite a while and the original inet6 libraries
> have been withdrawn by their author.

Whoops, barking up the wrong tree -- I got distracted by a fetchmail
report while writing this reply, sorry for that.

Of course use_with ipv6 (to provide --with-ipv6) still applies to leafnode.

The emerge and compiler flags related comments still apply.

--

-- 
Matthias Andree

Gmane