Author Topic: Infinite recursion when loading plugins leading to codeblocks crash.  (Read 280 times)

Offline Anon5710

  • Single posting newcomer
  • *
  • Posts: 4
Hello,

I'm using codeblocks as an editor, using CENTOS7 as OS.
For some irritation unknown reason my installation stopped working today.
Around the same time,  i was using to much space in my /home folder. (limited to 2 gb here :( )
I have cleared some old files, and I should have more then enough room now.

Whatever I do, codeblocks will hang a minute or so after start up.
If I look at the strace output, I'm seeing infinite symbolic link traversing :

stat("/sys/bus/cpu/devices/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu6/node0/memory147/subsystem/devices/memory246", 0x7ffd0e078710) = -1 ELOOP (Too many levels of symbolic links)
stat("/sys/bus/cpu/devices/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu0/node0/cpu6/node0/memory147/subsystem/devices/memory247", 0x7ffd0e078710) = -1 ELOOP (Too many levels of symbolic links)


As far as I'm aware this recursive symbolic linking is normal. (Other machines are setup like this to)
If i startup with --safe-mode, there is no crash and I can continue working.  (without all the plugins tough ... )

I have tried :

1) clean the .codeblocks directory in /home/user/
2) uninstall and re-install all the packages.  codeblocks.x86_64,  codeblocks-contrib.x86_64, codeblocks-contrib-libs.x86_64 codeblocks-libs.x86_64


Any other things I can do to get this working again ?



Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 4972
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Infinite recursion when loading plugins leading to codeblocks crash.
« Reply #1 on: October 09, 2017, 04:20:33 pm »
Which version of Code::Blocks do you use?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Anon5710

  • Single posting newcomer
  • *
  • Posts: 4
Re: Infinite recursion when loading plugins leading to codeblocks crash.
« Reply #2 on: October 09, 2017, 04:30:23 pm »
 Code::Blocks 13.12 - wx2.8.12 64 bit

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 4972
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Infinite recursion when loading plugins leading to codeblocks crash.
« Reply #3 on: October 09, 2017, 04:32:40 pm »
Code::Blocks 13.12 - wx2.8.12 64 bit
This version of C::B is too old, and can you try a nightly version? Since the bugs may already fixed in the recent nightly build versions. Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10279
Re: Infinite recursion when loading plugins leading to codeblocks crash.
« Reply #4 on: October 09, 2017, 08:47:15 pm »
Yep, this should be fixed in the 16.01 (not 100% sure) or night builds. If it is not then we need a backtrace to see where the recursion is starting.
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Anon5710

  • Single posting newcomer
  • *
  • Posts: 4
Re: Infinite recursion when loading plugins leading to codeblocks crash.
« Reply #5 on: October 11, 2017, 03:27:05 pm »
I have updated to the last version, while this specific infinite recursion is not occurring anymore.
Codeblocks is hanging on something else, again only when i run in normal mode. In safe mode this does not happen.

How should i go about providing a stacktrace ?
« Last Edit: October 11, 2017, 03:33:28 pm by Anon5710 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10279
Re: Infinite recursion when loading plugins leading to codeblocks crash.
« Reply #6 on: October 12, 2017, 09:23:58 am »
The steps are something like:
1. install all debug info packages related to cb
2. install gdb
3. run codeblocks under gdb - gdb /usr/bin/codeblocks
4. what for the hang
5. ctrl-c
6. thread apply all bt

And send us the output from gdb.
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Anon5710

  • Single posting newcomer
  • *
  • Posts: 4
Re: Infinite recursion when loading plugins leading to codeblocks crash.
« Reply #7 on: October 17, 2017, 09:30:24 am »
sudo debuginfo-install codeblocks-16.01-1.el7.x86_64
Loaded plugins: fastestmirror, langpacks, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
centos7-x86_64                                                                                                                                                                     | 1.0 kB  00:00:00     
centos7-x86_64-centosplus                                                                                                                                                          |  871 B  00:00:00     
centos7-x86_64-extras                                                                                                                                                              |  871 B  00:00:00     
centos7-x86_64-fasttrack                                                                                                                                                           |  871 B  00:00:00     
centos7-x86_64-updates                                                                                                                                                             |  871 B  00:00:00     
clone-spacewalk-client-7-x86_64                                                                                                                                                    | 1.0 kB  00:00:00     
epel7-centos7-x86_64                                                                                                                                                               | 1.3 kB  00:00:00     
openscap7_64                                                                                                                                                                       | 1.1 kB  00:00:00     
Could not find debuginfo for main pkg: codeblocks-16.01-1.el7.x86_64
Could not find debuginfo pkg for dependency package atk-2.14.0-1.el7.x86_64
Could not find debuginfo pkg for dependency package glibc-2.17-157.el7_3.1.x86_64
Could not find debuginfo pkg for dependency package cairo-1.14.2-1.el7.x86_64
Could not find debuginfo pkg for dependency package codeblocks-libs-16.01-1.el7.x86_64
Could not find debuginfo pkg for dependency package fontconfig-2.10.95-10.el7.x86_64
Could not find debuginfo pkg for dependency package freetype-2.4.11-12.el7.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.8.5-11.el7.x86_64
Could not find debuginfo pkg for dependency package gtk2-2.24.28-8.el7.x86_64
Could not find debuginfo pkg for dependency package gdk-pixbuf2-2.31.6-3.el7.x86_64
Could not find debuginfo pkg for dependency package glib2-2.50.3-3.el7.x86_64
Could not find debuginfo pkg for dependency package pango-1.36.8-2.el7.x86_64
Could not find debuginfo pkg for dependency package libstdc++-4.8.5-11.el7.x86_64
Could not find debuginfo pkg for dependency package wxBase-2.8.12-20.el7.x86_64
Could not find debuginfo pkg for dependency package wxGTK-2.8.12-20.el7.x86_64

I'll need to get this working first ...