User forums > Help

Saving updated wxSmith .wxs file causes crash

<< < (2/2)

zaleksf:
Yeah!!!  :D
That worked!

Thanks, Sebastien - I was to the point of talking with tech support about a total rebuild of my system, trying to chase down a mysteriously corrupt system ntdll.dll, etc (that would have been ugly!). I am quite excited that I can now use CodeBlocks with wxSmith for Win and Linux development; the Devs have done quite a good job.

We can't be the only people who have run in to this - is there a way to get the word out? Is there a good reason for the txml library to be in the wxSmith plugin?

seb_seb0:
It might be a bug that occurs only on very specific conditions.
It is strange enough that I did not have any problems with the Nightly Build, but that I had problem only with versions built by myself. Therefore there might also be a compiler / linker configuration issue. I still do not really understand the root cause of the problem (why it leads to crash - I suspect objects are allocated with codeblocks.dll, and deallocated with wxsmithlib, leading to freeing memory at a null pointer).

The devs may want to test this workaround thoroughly before applying it - what works for us may break the building process on others configurations (leading to link errors with "symbol not found" while compiling wxsmithlib - or worse: silent bugs waiting to appear on specific conditions).
Let them say what they think about it. They will surely want to understand exactly what happened - and it might not be so easy.

Sebastien

rcoll:
I just had this same problem, and the fix reported by seb_seb0 worked great.  The problem (as reported in the "codeblocks.rpt" file) appears to be in "tinystr.cpp", in function "TiXmlString::reserve"; this is a poorly-written function, that allows the possibility of copying data to un-allocated memory (it uses "memcpy", but does not check properly that the amount of data is too long for the allocated memory block).

However, using seb_seb0's fix, it all works now.

Would it make sense for the devs to "txml" from the linker portion of the wxSmith project?

Ringo

Jenna:

--- Quote from: rcoll on February 25, 2010, 03:07:54 pm ---Would it make sense for the devs to "txml" from the linker portion of the wxSmith project?

--- End quote ---

It's already done.

On windows in svn r6128, on linux I did it some commits earlier.

rcoll:

--- Quote from: jens on February 25, 2010, 03:19:47 pm ---
It's already done.

On windows in svn r6128, on linux I did it some commits earlier.

--- End quote ---

Thank you!  I'm using a somewhat earlier version, and so did not have it.  I guess it's time to download something newer.

Ringo

Navigation

[0] Message Index

[*] Previous page

Go to full version