When one tries to add a wxChartCtrl to a form, codeblocks crashed with a sigsegv. This is because in the chartwindow.cpp a pointer sizes variable is set by calling GetSizes() which may return a NULL pointer. However, this is not checked before the pointer is de-referenced. The bug has been reported upstream as https://developer.berlios.de/bugs/?func=detailbug&bug_id=18182&group_id=5358 with a patch provided as https://developer.berlios.de/patch/?func=detailpatch&patch_id=3177&group_id=5358 Reproducible: Always Steps to Reproduce: 1. Create a new Project using wxSmith as GUI builder 2. add a wxChartCtrl to the newly created Dialog/Form Actual Results: Program crashes with a sigsegv Expected Results: control is added to the form
Created attachment 278013 [details, diff] Proposed fix as sent upstream
Created attachment 278015 [details, diff] Proposed fix as sent upstream Sorry, hit okay too fast.
What version?
10.05, btw, the bug is now fixed upstream in HEAD of their wxSmith branch.
Report is obsolete in dev-util/codeblocks-10.05, so it should be closed
Care to elaborate? v10.05 is the latest unstable version in the portage tree, what made the bug obsolete? If there was some change to the ebuild that would change the behaviour with respect to the bug, shouldn't there be a version -r1?
My Mistake, forget what I wrote
What was the actual fix that was applied to upstream? I'm having trouble locating it in their tree.
According to the patch tracker https://developer.berlios.de/patch/?func=detailpatch&patch_id=3177&group_id=5358 it is the patch I gave above, their link is: https://developer.berlios.de/patch/download.php?id=3177
The "applied partially" and your comment about not knowing if it is the correct fix make me want to see the actual commit.
Fixed in 10.05-r1. Sorry about the wait.