LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-08-2014, 05:39 AM   #1
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32
Posts: 321

Rep: Reputation: 24
Codeblocks problem


Hello,

While running Codeblocks in its latest or previous versions it stops working and hangs/ or kills itself.
Why is that ?




From CLI :

ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
*** Error in `codeblocks': realloc(): invalid next size: 0x0a9f1c70 ***
======= Backtrace: =========
/lib/libc.so.6(+0x77d4d)[0xb4091d4d]
/lib/libc.so.6(+0x7b283)[0xb4095283]
/lib/libc.so.6(realloc+0xd6)[0xb4096616]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxStringBase5AllocEj+0x80)[0xb697ea30]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxStringBase6appendEjw+0x3a)[0xb697eb0a]
/usr/lib/libwx_baseu-2.8.so.0(_Z15wxExpandEnvVarsRK8wxString+0x9f)[0xb692feff]
/usr/lib/libwx_baseu-2.8.so.0(_ZN10wxFileName9NormalizeEiRK8wxString12wxPathFormat+0x56)[0xb6952b76]
/usr/lib/libwx_baseu-2.8.so.0(_ZN10wxFileName14MakeRelativeToERK8wxString12wxPathFormat+0x61)[0xb6953481]
/usr/lib/codeblocks/plugins/libcodecompletion.so(_ZN18HeaderDirTraverser6OnFileERK8wxString+0xb2)[0xb15e2ca2]
/usr/lib/libwx_baseu-2.8.so.0(_ZNK5wxDir8TraverseER14wxDirTraverserRK8wxStringi+0x27f)[0xb693b8cf]
/usr/lib/libwx_baseu-2.8.so.0(_ZNK5wxDir8TraverseER14wxDirTraverserRK8wxStringi+0x198)[0xb693b7e8]
--||--||--
/usr/lib/libwx_baseu-2.8.so.0(_ZNK5wxDir8TraverseER14wxDirTraverserRK8wxStringi+0x198)[0xb693b7e8]
/usr/lib/codeblocks/plugins/libcodecompletion.so(_ZN19SystemHeadersThread5EntryEv+0x355)[0xb15e33c5]
/usr/lib/libwx_baseu-2.8.so.0(_ZN16wxThreadInternal12PthreadStartEP8wxThread+0xcb)[0xb69b929b]
/usr/lib/libwx_baseu-2.8.so.0(wxPthreadStart+0x1b)[0xb69b930b]
/lib/libpthread.so.0(+0x6955)[0xb420f955]
/lib/libc.so.6(clone+0x5e)[0xb41011ae]
======= Memory map: ========
00018000-00100000 rw-p 00000000 00:00 0
00100000-00300000 rw-p 00000000 00:00 0

and so on

08048000-0817f000 r-xp 00000000 fd:01 1196322 /usr/bin/codeblocks
0817f000-0818a000 rw-p 00136000 fd:01 1196322 /usr/bin/codeblocks

and it ends with that:

53000000-531fd000 rw-p 00000000 00:00 0
531fd000-53200000 ---p 00000000 00:00 0
53200000-53400000 rw-p 00000000 00:00 0 Aborted
 
Old 05-09-2014, 12:43 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,799

Rep: Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020
Code:
/usr/lib/libwx_baseu-2.8.so.0(wxStringBase::Alloc(unsigned int)+0x80)[0xb697ea30]
/usr/lib/libwx_baseu-2.8.so.0(wxStringBase::append(unsigned int, wchar_t)+0x3a)[0xb697eb0a]
/usr/lib/libwx_baseu-2.8.so.0(wxExpandEnvVars(wxString const&)+0x9f)[0xb692feff]
/usr/lib/libwx_baseu-2.8.so.0(wxFileName::Normalize(int, wxString const&, wxPathFormat)+0x56)[0xb6952b76]
/usr/lib/libwx_baseu-2.8.so.0(wxFileName::MakeRelativeTo(wxString const&, wxPathFormat)+0x61)[0xb6953481]
/usr/lib/codeblocks/plugins/libcodecompletion.so(HeaderDirTraverser::OnFile(wxString const&)+0xb2)[0xb15e2ca2]
/usr/lib/libwx_baseu-2.8.so.0(wxDir::Traverse(wxDirTraverser&, wxString const&, int) const+0x27f)[0xb693b8cf]
/usr/lib/libwx_baseu-2.8.so.0(wxDir::Traverse(wxDirTraverser&, wxString const&, int) const+0x198)[0xb693b7e8]
probably an env var contains incorrect value?
 
Old 05-09-2014, 07:40 AM   #3
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32
Posts: 321

Original Poster
Rep: Reputation: 24
<<< probably an env var contains incorrect value? >>>

Codeblocks was compiled in a current (as of 06 may 2014) Slackware environment using slackbuilds.org files.

I wonder if we can do something about it.
 
Old 05-09-2014, 07:54 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,799

Rep: Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020
I mean during execution, not during compilation. you may try to use debug version of /usr/lib/libwx_baseu-2.8.so.0 (probably needs rebuild wxGTK ?) and check what was going wrong. Or you may try a newer version of wxWidgets.
 
Old 05-10-2014, 03:36 AM   #5
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32
Posts: 321

Original Poster
Rep: Reputation: 24
I have wxPython instead of wxGTK for serving other software.

From SBo description: "wxPython is a port of wxWidgets and as such compatible to other ports like wxGTK and wxX11."

How can I alter existing /usr/lib/libwx_baseu-2.8.so.0 ?
Maybe installing wxGTK instead of wxPython would be resolve the problem ?
 
Old 05-10-2014, 04:51 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,799

Rep: Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020Reputation: 4020
I think wxPython needs wxGTK. Would be nice to know your os, and the versions of wxPython, wxGTK and codeblocks. Slack contains a newer version of wxGTK: http://slackbuilds.org/repository/13...braries/wxGTK/, probably that solves this issue.
 
Old 05-10-2014, 05:14 AM   #7
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32
Posts: 321

Original Poster
Rep: Reputation: 24
I use Slackware current 32-bit (as of 06.05.2014), wxPython-2.8.12.1-i486-1_SBo, codeblocks 13.12.
No wxGTK at all as it may collide with wxPython.
But I'll try to temporarily exchange these two to see what's going on.
I always compile all my stuff in the SBo way.
 
Old 05-10-2014, 03:10 PM   #8
otherpat
LQ Newbie
 
Registered: May 2014
Posts: 1

Rep: Reputation: Disabled
I had a similar issue with Codeblocks a few months ago. It was using 100% CPU on one core and eating up memory 'til I killed it. I'm not sure if this is the same problem you've got, but I did end up fixing it.

Turns out the Seamonkey package in Slackware (I was using 14.1 64-bit) has a couple of symlinked folders pointing to themselves, which would cause Codeblocks (when using the code completion plugin), to loop infinitely.

Just Google 'codecompletion plugin will eat 100% CPU usage' -- that'll get you the thread on the Codeblocks forums. (Apparently I can't post a link until I've made one post)
----[Here is the post that solved my issue]------
I have the same problem and traced it to the '/usr/include/seamonkey/' directory which has 3 soft links to itself
i.e
nss -> ./
plugin -> ./
xpcom -> ./

I have resolved the problem by deleting these links, but someone who knows how the codecompletion directory transversal works can perhaps detect these situations and prevent these from causing continuous loops within the thread.
---------------

I simply uninstalled Seamonkey, since I don't use it. Hope this helps.
 
2 members found this post helpful.
Old 05-10-2014, 07:56 PM   #9
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 542

Rep: Reputation: 120Reputation: 120
Like brodo I only have wxPython-2.8.12.1. Until now, all the applications I built that need wxGTK (amule, audacity, filezilla...) compiled and worked fine. Just an observation: to build Codeblocks you'll nedd to compile wxPython (or wxGTK) with "--with-regex=builtin"...
 
Old 05-11-2014, 02:54 AM   #10
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32
Posts: 321

Original Poster
Rep: Reputation: 24
To otherpat - Indeed, after removing seamonkey Codeblocks works well.

To BrZ - I'll try later to recompile wxPython with "--with-regex=builtin"

Thanks folks !
 
Old 10-11-2015, 06:25 AM   #11
arvent
LQ Newbie
 
Registered: Nov 2010
Location: Bulgaria
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
I have the same problem with CB. Resolved with removal of the Seamonkey package(as suggested by brodo and pointed out by otherpat).

This is on Slackware64 14.1. I tried to recompile wxPython with "--with-regex=builtin", but with no luck. The problem still remain.

It is not a nice solution, but is some.
 
Old 10-11-2015, 07:33 AM   #12
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
so maybe there should be a bug report about seamonkey?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CodeBlocks problem r_jr Linux - Software 1 04-29-2012 02:46 AM
Error in CodeBlocks sujitkulkarni Programming 2 03-16-2011 05:55 PM
Ubuntu Lucid codeblocks problem artur13 Linux - Software 0 04-23-2010 06:53 AM
codeblocks elishac Linux - Newbie 9 03-25-2010 04:06 PM
[SOLVED] Problem installing Codeblocks konzo Linux - Software 12 02-02-2010 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration