[DragonFlyBSD - Bug #2344] dmalloc assertion: (*bmp & (1LU << bno)) == 0 in memfree
Venkatesh Srinivas via Redmine
bugtracker-admin at leaf.dragonflybsd.org
Sat Apr 7 18:00:36 PDT 2012
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
More information about the Bugs
mailing list