Author Topic: Crash with Ctrl+X (cut)  (Read 5199 times)

neich

  • Guest
Crash with Ctrl+X (cut)
« on: November 09, 2006, 08:11:39 pm »
Hi,

I have just copiled codeblocks from sources and I got a consistent crash when I try to cut some text:

OS: Linux SuSE 10.1
Compiler: GCC 4.1.0
WxWidgets: 2.6.3
Codeblocks: rev 3190

Output:

Code
*** glibc detected *** codeblocks: free(): invalid next size (fast): 0x08c42bc0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb72b0911]
/lib/libc.so.6(__libc_free+0x84)[0xb72b1f84]
/usr/local/lib/libwx_gtk2u_core-2.6.so.0[0xb75f7efb]
/opt/gnome/lib/libgtk-x11-2.0.so.0[0xb6ff8f64]
/opt/gnome/lib/libgobject-2.0.so.0(g_closure_invoke+0x11d)[0xb6e2d8bd]
/opt/gnome/lib/libgobject-2.0.so.0[0xb6e3e243]
/opt/gnome/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8c7)[0xb6e3fac7]
/opt/gnome/lib/libgobject-2.0.so.0(g_signal_emit_by_name+0xee)[0xb6e4116e]
/opt/gnome/lib/libgtk-x11-2.0.so.0[0xb703be74]
/opt/gnome/lib/libgtk-x11-2.0.so.0[0xb703c101]
/opt/gnome/lib/libgtk-x11-2.0.so.0[0xb6ffa8fe]
/opt/gnome/lib/libgobject-2.0.so.0[0xb6e2c0c7]
/opt/gnome/lib/libgobject-2.0.so.0(g_closure_invoke+0x11d)[0xb6e2d8bd]
/opt/gnome/lib/libgobject-2.0.so.0[0xb6e3e893]
/opt/gnome/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x68f)[0xb6e3f88f]
/opt/gnome/lib/libgobject-2.0.so.0(g_signal_emit+0x35)[0xb6e3fc95]
/opt/gnome/lib/libgtk-x11-2.0.so.0[0xb70e55e8]
/opt/gnome/lib/libgtk-x11-2.0.so.0(IA__gtk_main_do_event+0x409)[0xb6ff5659]
/opt/gnome/lib/libgdk-x11-2.0.so.0[0xb720e58a]
/opt/gnome/lib/libglib-2.0.so.0(g_main_context_dispatch+0x16d)[0xb6ba9abd]
/opt/gnome/lib/libglib-2.0.so.0[0xb6baccbf]
/opt/gnome/lib/libglib-2.0.so.0(g_main_loop_run+0x1a9)[0xb6bad069]
/opt/gnome/lib/libgtk-x11-2.0.so.0(IA__gtk_main+0xb4)[0xb6ff59e4]
/usr/local/lib/libwx_gtk2u_core-2.6.so.0(_ZN11wxEventLoop3RunEv+0x5b)[0xb760bd4b]
/usr/local/lib/libwx_gtk2u_core-2.6.so.0(_ZN9wxAppBase8MainLoopEv+0x4e)[0xb769907e]
/usr/local/lib/libwx_gtk2u_core-2.6.so.0(_ZN9wxAppBase5OnRunEv+0x21)[0xb7698741]
codeblocks[0x8065a55]
/usr/local/lib/libwx_baseu-2.6.so.0(_Z7wxEntryRiPPw+0x6a)[0xb741d34a]
/usr/local/lib/libwx_baseu-2.6.so.0(_Z7wxEntryRiPPc+0x36)[0xb741d406]
codeblocks(_ZN12wxHtmlWindow8LoadPageERK8wxString+0xbd0)[0x8065450]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb726287c]
codeblocks(_ZNK12wxWindowBase16DoGetVirtualSizeEv+0x31)[0x8065171]
======= Memory map: ========
08048000-080de000 r-xp 00000000 08:03 374925     /usr/local/bin/codeblocks
080de000-080e3000 rw-p 00096000 08:03 374925     /usr/local/bin/codeblocks
080e3000-08cd7000 rw-p 080e3000 00:00 0          [heap]
b1200000-b1221000 rw-p b1200000 00:00 0
b1221000-b1300000 ---p b1221000 00:00 0
b1322000-b1323000 rw-p b1322000 00:00 0
b1323000-b1324000 r--s 00000000 08:03 821747     /opt/gnome/share/mime/mime.cache
b1324000-b1330000 r--s 00000000 08:03 994319     /usr/share/mime/mime.cache
b1330000-b1331000 r--s 00000000 08:03 821747     /opt/gnome/share/mime/mime.cache
b1331000-b133d000 r--s 00000000 08:03 994319     /usr/share/mime/mime.cache
b133d000-b133e000 ---p b133d000 00:00 0
b133e000-b1ce2000 rw-p b133e000 00:00 0
b1ce2000-b1ce3000 ---p b1ce2000 00:00 0
b1ce3000-b2554000 rw-p b1ce3000 00:00 0
b2554000-b2555000 r--s 00000000 08:03 821747     /opt/gnome/share/mime/mime.cache
b2555000-b2561000 r--s 00000000 08:03 994319     /usr/share/mime/mime.cache
b2561000-b2562000 r--s 00000000 08:03 821747     /opt/gnome/share/mime/mime.cache
b2562000-b256e000 r--s 00000000 08:03 994319     /usr/share/mime/mime.cache
b256e000-b2570000 r--p 00000000 08:03 69620      /opt/gnome/share/locale/es/LC_MESSAGES/atk10.mo
b2570000-b3312000 r--p 00000000 08:03 107990     /opt/kde3/share/icons/hicolor/icon-theme.cache
b3312000-b3317000 r--p 00000000 08:03 69577      /opt/gnome/share/locale/es/LC_MESSAGES/glib20.mo
b3317000-b3341000 r--p 00000000 08:03 474647     /usr/X11R6/lib/X11/fonts/truetype/albw.ttf
b3341000-b335f000 r--p 00000000 08:03 474662     /usr/X11R6/lib/X11/fonts/truetype/cumbwb__.ttf
b335f000-b337e000 r--p 00000000 08:03 474665     /usr/X11R6/lib/X11/fonts/truetype/cumbwr__.ttf
b337e000-b339a000 r-xp 00000000 08:03 946138     /usr/local/share/codeblocks/plugins/libtodo.so
b339a000-b339c000 rw-p 0001c000 08:03 946138     /usr/local/share/codeblocks/plugins/libtodo.so
b339c000-b33f6000 r-xp 00000000 08:03 946136     /usr/local/share/codeblocks/plugins/libscripte
[1]+  Abortado                codeblocks

Any hint ?

Thanks
Nacho
« Last Edit: November 11, 2006, 11:03:06 pm by neich »

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Crash with Xtrl+X (cut)
« Reply #1 on: November 09, 2006, 08:29:49 pm »
I can't confirm this here with revision 3196 on gentoo (wxGTK 2.6.2 gcc 4.1.1).
I just opened a project (with already some files open), marked some text and pressed Strg+X - nothing unexpected happened, no crash.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

neich

  • Guest
Re: Crash with Xtrl+X (cut)
« Reply #2 on: November 11, 2006, 09:41:32 pm »
Ok, I have done some tests and I see a really weird behaviuor. It only crashes when you select and cut a very specific text. Try this:

Code
echo "siroco2::App;" > main.cpp

Then create an empty project and add main.cpp as the only source file.

Open main.cpp

Then select EXACTLY this text "siroco2::App", do not select the semicolon.

Then Ctr-X (cut) and it crashes. Any other select+cut does not crash !!!

I hope someone can reproduce this ...

Thanks
Nacho

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Crash with Ctrl+X (cut)
« Reply #3 on: November 11, 2006, 11:43:22 pm »
Sry, still no crash for me.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline kingfox

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: Crash with Ctrl+X (cut)
« Reply #4 on: November 12, 2006, 02:17:34 am »
I can't reporduce it on Windows platform.