public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How do I turn off glibc's runtime error checks?
@ 2011-07-02  0:05 Nikos Chantziaras
  2011-07-02  1:18 ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 1 reply; 4+ messages in thread
From: Nikos Chantziaras @ 2011-07-02  0:05 UTC (permalink / raw
  To: gentoo-user

This is driving me nuts.  Since a few days ago, glibc will abort 
programs with a:

*** glibc detected *** program: free(): invalid pointer: ... ***

or similar error message.  I have no idea which package was updated that 
triggered this.  I did *not* emerge glibc (qlop confirms that I emerged 
glibc 3 months ago.)

The crashing programs *are* buggy.  The problem is that I can't shut up 
glibc and prevent it from interfering.  It's extremely annoying and I 
feel the urge to kill baby bunnies.  Please help!




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: How do I turn off glibc's runtime error checks?
  2011-07-02  0:05 [gentoo-user] How do I turn off glibc's runtime error checks? Nikos Chantziaras
@ 2011-07-02  1:18 ` Nikos Chantziaras
  2011-07-02  9:32   ` Ivan T. Ivanov
  0 siblings, 1 reply; 4+ messages in thread
From: Nikos Chantziaras @ 2011-07-02  1:18 UTC (permalink / raw
  To: gentoo-user

On 07/02/2011 03:05 AM, Nikos Chantziaras wrote:
> This is driving me nuts. Since a few days ago, glibc will abort programs
> with a:
>
> *** glibc detected *** program: free(): invalid pointer: ... ***
>
> or similar error message. I have no idea which package was updated that
> triggered this. I did *not* emerge glibc (qlop confirms that I emerged
> glibc 3 months ago.)
>
> The crashing programs *are* buggy. The problem is that I can't shut up
> glibc and prevent it from interfering. It's extremely annoying and I
> feel the urge to kill baby bunnies. Please help!

Argh, I found the problem in an unlikely place.  It's KDE 4.7 RC1 (!). 
It seems there's an environment variable called MALLOC_CHECK_ that 
instructs glibc to perform runtime checks on every program that runs.

kde-base/kdebase-startkde-4.6.90 installs a /usr/bin/startkde that sets 
MALLOC_CHECK_=3.  This results in every program that runs after starting 
KDM to be runtime checked.  It also makes the system slower (Kwin here 
felt very sluggish and I also got a hefty performance loss when running 
another OS in a virtual machine.)

Note to others running 4.7 RC1: setting MALLOC_CHECK_=0 does not solve 
the performance problem; glibc still checks, but just doesn't abort or 
print errors.  To get rid of this, you need to edit /usr/bin/startkde 
and remove the 'if' section that sets MALLOC_CHECK_.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Re: How do I turn off glibc's runtime error checks?
  2011-07-02  1:18 ` [gentoo-user] " Nikos Chantziaras
@ 2011-07-02  9:32   ` Ivan T. Ivanov
  2011-07-02 12:10     ` Nikos Chantziaras
  0 siblings, 1 reply; 4+ messages in thread
From: Ivan T. Ivanov @ 2011-07-02  9:32 UTC (permalink / raw
  To: gentoo-user

Hi, 

On Sat, 2011-07-02 at 04:18 +0300, Nikos Chantziaras wrote:
> On 07/02/2011 03:05 AM, Nikos Chantziaras wrote:
> > This is driving me nuts. Since a few days ago, glibc will abort programs
> > with a:
> >
> > *** glibc detected *** program: free(): invalid pointer: ... ***
> >
> > or similar error message. I have no idea which package was updated that
> > triggered this. I did *not* emerge glibc (qlop confirms that I emerged
> > glibc 3 months ago.)
> >
> > The crashing programs *are* buggy. 

 You can also check this one:

 http://sourceware.org/bugzilla/show_bug.cgi?id=12518

 iivanov




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: How do I turn off glibc's runtime error checks?
  2011-07-02  9:32   ` Ivan T. Ivanov
@ 2011-07-02 12:10     ` Nikos Chantziaras
  0 siblings, 0 replies; 4+ messages in thread
From: Nikos Chantziaras @ 2011-07-02 12:10 UTC (permalink / raw
  To: gentoo-user

On 07/02/2011 12:32 PM, Ivan T. Ivanov wrote:
> Hi,
>
> On Sat, 2011-07-02 at 04:18 +0300, Nikos Chantziaras wrote:
>> On 07/02/2011 03:05 AM, Nikos Chantziaras wrote:
>>> This is driving me nuts. Since a few days ago, glibc will abort programs
>>> with a:
>>>
>>> *** glibc detected *** program: free(): invalid pointer: ... ***
>>>
>>> or similar error message. I have no idea which package was updated that
>>> triggered this. I did *not* emerge glibc (qlop confirms that I emerged
>>> glibc 3 months ago.)
>>>
>>> The crashing programs *are* buggy.
>
>   You can also check this one:
>
>   http://sourceware.org/bugzilla/show_bug.cgi?id=12518

I'm on glibc 2.12, so this doesn't affect me.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-02 13:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-02  0:05 [gentoo-user] How do I turn off glibc's runtime error checks? Nikos Chantziaras
2011-07-02  1:18 ` [gentoo-user] " Nikos Chantziaras
2011-07-02  9:32   ` Ivan T. Ivanov
2011-07-02 12:10     ` Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox