This e-mail is just for future reference for anyone else as dumb as I am :-)
I spent some days with lots of strange memory errors and segmentation faults often round free() and malloc(). I was using my own makefiles to make my app. The root cause is that I was not linking my app with the -lpthread flag. You need to use this flag otherwise (I beleive) that non-thread safe versions of malloc() etc. are linked in - and you will see lots of strange memory errors as your app becomes more complex. This includes seg faulting debuggers, valgard and trashing unix sockets. Because Witty is a shared library GCC happily links without this flag - i.e. without giving any error or warning. Hope this helps someone. Adrian > > since 2.99.2 my application crashed on WTableCell::clear(). And in Debugger > he sayd it crashes in WContainerWidget::insertWidget if it goes to ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
