DragonFly BSD
DragonFly bugs List (threaded) for 2012-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[DragonFlyBSD - Bug #2344] dmalloc assertion: (*bmp & (1LU << bno)) == 0 in memfree


From: Venkatesh Srinivas via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 7 Apr 2012 18:00:36 -0700

Issue #2344 has been updated by Venkatesh Srinivas.


Hi,

I believe the test program posted above is wrong. Specifically, after realloc(), it checks if the original pointer, not the new return from realloc, is nonzero, and then free()s. This is not okay -- after a nonzero return from realloc, the original pointer has been released and is no longer valid.

Thanks,
----------------------------------------
Bug #2344: dmalloc assertion: (*bmp & (1LU << bno)) == 0 in memfree
http://bugs.dragonflybsd.org/issues/2344

Author: Sven Gaerner
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 


When running zsh an assertion is shown each time zsh is closed.

DragonFly version is v3.0.2.23.g17720-RELEASE an X86_64.



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]