Uh, no, those messages have nothing to do with memory leaks.  "free(): 
invalid pointer" means that free got a pointer that was already freed 
earlier, or wasn't malloced at all.  If detected, glibc will simply 
ignore such pointers, but don't lull yourself into a false sense of 
security - the real danger are the potential cases that are _not_ 
detected.  Depending on exactly how the code is misbehaving, it may end 
up freeing memory that shouldn't have been freed yet, or it may try to 
free a pointer to an unmapped region, causing a hard segfault.

Any memory errors like this should be taken seriously and solved 
immediately before they have a chance to fester, not "at some point". 
As Jesper already pointed out, valgrind is a good tool for finding out 
exactly what's going wrong.

Mikko

On 29.10.2012 20:07, Ulrich Pegelow wrote:
> Hi,
>
> not much to worry about. For some reason on your system environment
> variable MALLOC_CHECK_ is set to 1. This will cause glibc to spit out
> warning on all (potential) memory leaks in darktable or its libraries.
> Most user won't see this as they have MALLOC_CHECK_ not set.
>
> At some point we should have a look those warnings and debug them.
>
> If the message annoys you, just start darktable with
>
> MALLOC_CHECK_= /opt/darktable/bin/darktable
>
> Ulrich
>
> Am 29.10.2012 08:47, schrieb Roumano:
>> Hi,
>>
>> Sorry Nop, still some "free() invalid pointer"when i went to darkroom
>> mode (but can't Always reproduce) :
>>
>> ls -ald /opt/darktable/
>> ls: cannot access /opt/darktable/: No such file or directory
>>
>> sudo make install
>> /opt/darktable/bin/darktable :
>> *** glibc detected *** /opt/darktable/bin/darktable: free(): invalid
>> pointer: 0x00000000022dbf20 ***
>> *** glibc detected *** /opt/darktable/bin/darktable: free(): invalid
>> pointer: 0x00000000023388e0 ***
>> *** glibc detected *** /opt/darktable/bin/darktable: free(): invalid
>> pointer: 0x000000000233ad20 ***
>>
>
> ------------------------------------------------------------------------------
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> _______________________________________________
> darktable-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/darktable-devel


------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to