Bug 84231 - [patch] devel/ccmalloc crashes
Summary: [patch] devel/ccmalloc crashes
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sam Lawrance
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-28 17:10 UTC by Bram Moolenaar
Modified: 2005-10-02 06:43 UTC (History)
0 users

See Also:


Attachments
file.diff (545 bytes, patch)
2005-07-28 17:10 UTC, Bram Moolenaar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bram Moolenaar 2005-07-28 17:10:14 UTC
	When using the ccmalloc library with an application a crash may occur.
	This is caused by the GCC function __builtin_return_address() not
	properly checking for the stack frame.

Fix: Use __builtin_frame_address() to check for the stack frame before
	calling __builtin_return_address().

	Apply this patch:
How-To-Repeat: 	Link your application with the ccmalloc library and run it.  Crash
	detected with Vim 7, but probably happens with many applications.
Comment 1 Sam Lawrance freebsd_committer freebsd_triage 2005-09-10 17:10:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lawrance

Take it
Comment 2 Sam Lawrance freebsd_committer freebsd_triage 2005-10-02 06:42:37 UTC
State Changed
From-To: open->closed

Committed, thanks!