News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Help/About not working (Gentoo Linix) ? (memory leak ?)

Started by alchemist, September 25, 2007, 08:35:15 PM

Previous topic - Next topic

alchemist

Hello,

I have a segfault when I try the menu Help/About*** glibc detected *** codeblocks: free(): invalid pointer: 0x0000000001444930 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b1d756b80ec]
/lib/libc.so.6(cfree+0x76)[0x2b1d756b9e06]
/usr/lib/libglib-2.0.so.0(g_free+0x23)[0x2b1d7260ad13]
/usr/lib/libwx_gtk2u_core-2.8.so.0[0x2b1d73efe3c9]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN18wxButtonXmlHandler16DoCreateResourceEv+0x23f)[0x2b1d732a026f]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN20wxXmlResourceHandler14CreateResourceEP9wxXmlNodeP8wxObjectS3_+0x1a7)[0x2b1d732dd9f7]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN13wxXmlResource17CreateResFromNodeEP9wxXmlNodeP8wxObjectS3_P20wxXmlResourceHandler+0x477)[0x2b1d732e5877]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN17wxSizerXmlHandler16Handle_sizeritemEv+0xcc)[0x2b1d732c66fc]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN20wxXmlResourceHandler14CreateResourceEP9wxXmlNodeP8wxObjectS3_+0x1a7)[0x2b1d732dd9f7]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN13wxXmlResource17CreateResFromNodeEP9wxXmlNodeP8wxObjectS3_P20wxXmlResourceHandler+0x49d)[0x2b1d732e589d]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN20wxXmlResourceHandler14CreateChildrenEP8wxObjectb+0x124)[0x2b1d732e5be4]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN17wxSizerXmlHandler12Handle_sizerEv+0x140)[0x2b1d732c70c0]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN20wxXmlResourceHandler14CreateResourceEP9wxXmlNodeP8wxObjectS3_+0x1a7)[0x2b1d732dd9f7]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN13wxXmlResource17CreateResFromNodeEP9wxXmlNodeP8wxObjectS3_P20wxXmlResourceHandler+0x477)[0x2b1d732e5877]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN20wxXmlResourceHandler14CreateChildrenEP8wxObjectb+0x124)[0x2b1d732e5be4]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN18wxDialogXmlHandler16DoCreateResourceEv+0x3cd)[0x2b1d732aadad]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN20wxXmlResourceHandler14CreateResourceEP9wxXmlNodeP8wxObjectS3_+0x1a7)[0x2b1d732dd9f7]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN13wxXmlResource17CreateResFromNodeEP9wxXmlNodeP8wxObjectS3_P20wxXmlResourceHandler+0x477)[0x2b1d732e5877]
/usr/lib/libwx_gtk2u_xrc-2.8.so.0(_ZN13wxXmlResource10LoadDialogEP8wxDialogP8wxWindowRK8wxString+0x68)[0x2b1d732e6278]
codeblocks[0x435d1e]
codeblocks(_ZN9MainFrame11OnHelpAboutER14wxCommandEvent+0x29)[0x445299]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x7d)[0x2b1d748208ad]
/usr/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0x9b)[0x2b1d74820a6b]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xad)[0x2b1d74820bad]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x2b1d74820b50]
/usr/lib/libwx_baseu-Abandon


Is it also by you? It crashes in ~x86 (Pentium M) and ~amd64.

I don't know if it is a C::B bug, wxGTK or a local corrupted Gentoo :?
Kind Regards,
Xavier Miller.
[url="http://xaviermiller.be"]http://xaviermiller.be[/url]

Biplab

Looking at the crash log it seems C::B is unable to load the required xrc files. Just do a clean install (which should re-create the zip files) and see if it persists or not.
Be a part of the solution, not a part of the problem.

alchemist

Ok, I'lll uninstall, clean the SVN files and try again
Kind Regards,
Xavier Miller.
[url="http://xaviermiller.be"]http://xaviermiller.be[/url]

alchemist

Hello,

Someone at the Gentoo Forum gave me a work-around:G_SLICE=always-malloc codeblocks and this works!

G_SLICE is a glib parameter, so no problem with C::B or wx ;)
Kind Regards,
Xavier Miller.
[url="http://xaviermiller.be"]http://xaviermiller.be[/url]

Seronis

Im an XP user, but could you explain what that option does?  Been considering getting a 2nd HD for gentoo or ubuntu for dual boot option and would like to know what potential problems id have using C::B there.

alchemist

Hello,

This is a GNU glib issue, encountered in Gentoo Linux. Maybe the chosen compilation flags changed that option, so that C::B crashes.

Glib is not used for the Windows build (only wxMSW and mingw G++)
Kind Regards,
Xavier Miller.
[url="http://xaviermiller.be"]http://xaviermiller.be[/url]

Anubis

This is a confirmed GTK issue, actually.   (new GTK version release just before Gnome 2.20 has issues, thus having compiled wxGTK against one of the newer GTK versions will cause this crash in C::B).

At least, that's my understanding.

alchemist

Works fine now, since I upgraded wxGTK to version 2.8.6 8)
Kind Regards,
Xavier Miller.
[url="http://xaviermiller.be"]http://xaviermiller.be[/url]