Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 229000 - Sample.c frees template content handler twice
Summary: Sample.c frees template content handler twice
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: jkubasta CLA
QA Contact:
URL:
Whiteboard: closed461
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-26 15:28 EDT by Scott Cytacki CLA
Modified: 2016-05-05 10:48 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Cytacki CLA 2008-04-26 15:28:37 EDT
In the Sample.c file for the native CBE code:
/org.eclipse.tptp.platform.logging.events/src.native/CommonBaseEvent/Sample/Sample.c

The template content handler is free'd twice:

First Sample.c calls:
    hcbe_commonBaseEventDestr(commonBaseEvent);
     which in turn calls 
       hcbe_templateContentHandlerDestr

Then Sample.c calls hcbe_templateContentHandlerDestr

So the hcbe_templateContentHandlerDestr method is called twice.  
I found this bug while running the Sample application on OSX and it reported:

Sample(1085) malloc: ***  Deallocation of a pointer not malloced: 0x3008a0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
Comment 1 Paul Slauenwhite CLA 2008-07-16 11:56:42 EDT
Reassigning to new component lead.
Comment 2 jkubasta CLA 2008-08-16 12:15:27 EDT
As-is component. No plan to fix
Comment 3 Paul Slauenwhite CLA 2009-09-24 14:32:43 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.