Author Topic: Crash because compeletion plugin  (Read 2571 times)

Offline kipade

  • Multiple posting newcomer
  • *
  • Posts: 50
Crash because compeletion plugin
« on: July 20, 2016, 02:44:17 am »
I use slackware linux.
CB usually crashed if codecompeletion plugin enabled:
ClassBrowser::OnThreadEvent(): Updating class browser...
*** Error in `./codeblocks': double free or corruption (fasttop): 0x00000000033e71d0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x776f4)[0x7faf737766f4]
/lib64/libc.so.6(+0x7ff4a)[0x7faf7377ef4a]
/lib64/libc.so.6(+0x82a69)[0x7faf73781a69]
/lib64/libc.so.6(realloc+0x179)[0x7faf73782f19]
/usr/lib64/../lib64/libglib-2.0.so.0(g_realloc+0x28)[0x7faf74d49bc8]
/usr/lib64/../lib64/libgdk-x11-2.0.so.0(+0x319d2)[0x7faf7ae6d9d2]
/usr/lib64/../lib64/libgdk-x11-2.0.so.0(+0x32dc8)[0x7faf7ae6edc8]
/usr/lib64/../lib64/libgdk-x11-2.0.so.0(gdk_region_union+0x65)[0x7faf7ae6f305]
/usr/lib64/../lib64/libgdk-x11-2.0.so.0(+0x3d730)[0x7faf7ae79730]
/usr/lib64/../lib64/libgdk-x11-2.0.so.0(+0x3d87e)[0x7faf7ae7987e]
/usr/lib64/../lib64/libgtk-x11-2.0.so.0(gtk_widget_unmap+0x9f)[0x7faf7b33055f]
/usr/lib64/../lib64/libgobject-2.0.so.0(+0xfc04)[0x7faf7592cc04]
/usr/lib64/../lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xbf8)[0x7faf75946a68]
/usr/lib64/../lib64/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7faf75947132]
/usr/lib64/../lib64/libgtk-x11-2.0.so.0(gtk_widget_hide+0x9e)[0x7faf7b3358be]
/usr/local/lib/libwx_gtk2u_core-3.1.so.0(_ZN8wxWindow4ShowEb+0x55)[0x7faf7c2e5e15]
/home/kezhh/.local/share/codeblocks/plugins/libcodecompletion.so(_ZN25ClassBrowserBuilderThread9BuildTreeEv+0x340)[0x7faf66448110]
/home/kezhh/.local/share/codeblocks/plugins/libcodecompletion.so(_ZN25ClassBrowserBuilderThread5EntryEv+0x7a)[0x7faf66448c3a]
/usr/local/lib/libwx_baseu-3.1.so.0(_ZN8wxThread9CallEntryEv+0x82)[0x7faf7b8f91c2]
/usr/local/lib/libwx_baseu-3.1.so.0(+0x1ccdcd)[0x7faf7b8f9dcd]
/lib64/libpthread.so.0(+0x7684)[0x7faf741f3684]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Crash because compeletion plugin
« Reply #1 on: July 20, 2016, 03:18:37 am »
Hi, can you disable the symbol browser in the code completion plugin's setting dialog?

It is a known issue for wx 3.x under linux.(this issue has asked many times before in our forum) :)
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 kipade

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: Crash because compeletion plugin
« Reply #2 on: July 21, 2016, 09:17:50 am »
Yes, it can simply avoid by disable codecompletion plugin, if so, class symbol browser will be gone. I do not think its a good idea.
Thanks all the same.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Crash because compeletion plugin
« Reply #3 on: July 21, 2016, 10:02:49 am »
There is an option to disable just the symbol browser, but leave code completion enabled.
(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!]