Bug #8025 2006-06-30 09:53

neonomicus

Crash when using copy and paste

When I copy and paste code using the keyboard, from time to time the aplication crashes. It seems that it happens when pasting into special code structes since after restarting codeblocks I can reproduce the crash by trying the same copy and paste.

Codeblocks version: nearly latest (bnot the build of 29/6/06, one earlier) svn version, with configure --enable-contrib

wxwidgets version: latest

Os: Debian unstable Linux

If codeblocks crashes again, I will upload the source file somewhere so you can test yourself. I also will try to make it crash in gdb to support you with further information.

greets

Neonomicus

Category
Application::Crash
Group
 
Status
Closed
Close date
2007-03-30 06:56
Assigned to
 
artoj 2006-07-05 21:14

I think I'm having the same issue. See my post: http://forums.codeblocks.org/index.php?topic=3483.0

bugmenot 2006-07-23 23:57

I'm having this bug occur all the time.

It seems to be when copy from, or pasting to certain places as it will always crash again when I try and copy / paste the same section.

Please make this a priority as CB is now crashing atleast ~10+ times an hour

bugmenot 2006-07-24 00:57

Sorry, failed to mention im using Linux (ArchLinux specifically), GCC 4.1 with gcc 4.1 compile fix mentioned in the forums.

Although previous versions that didn't need the fix still had this copy/paste crash bug.

bugmenot 2006-07-24 02:50

Also, the CB feedback agent that usually runs during crashes, did not run for this crash.

mandrav 2006-09-08 11:08

Does this bug still persist?

bugmenot 2006-09-24 23:30

I'll check if it still persists in the current version over the next few days (no spare time atm)

ID_33553 2006-11-14 19:27

Same problem with me. Linux SuSE 10.1, gcc 4.1, wxGTK 2.6.3, CB rpm rev 3202. Some combinations of text crash consistently when Ctrl-C or Crtl-X

tpetrov 2006-11-15 13:31
I also have the same really annoying problem... 


I'm on archlinux, build from today revision (3218), with old build (3081) same problem.

Some specs if  more needed I'll post again:)
uname -a
Linux myhost 2.6.18-ARCH #1 SMP PREEMPT Sat Nov 4 10:54:10 CET 2006 i686 Intel(R) Celeron(R) CPU 2.00GHz GenuineIntel GNU/Linux


here is a Backtrace: 

[obf@myhost ~]$ codeblocks  -d
*** glibc detected *** codeblocks: free(): invalid next size (fast): 0x08f40fa8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb737b750]
/lib/libc.so.6(__libc_free+0x84)[0xb737cda4]
/usr/lib/libwx_gtk2u_core-2.6.so.0[0xb77ace3c]
/usr/lib/libgtk-x11-2.0.so.0[0xb70769c6]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x13b)[0xb6eaf07b]
/usr/lib/libgobject-2.0.so.0[0xb6ebf4e9]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x899)[0xb6ec09a9]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_by_name+0xee)[0xb6ec375e]
/usr/lib/libgtk-x11-2.0.so.0[0xb70d36e4]
/usr/lib/libgtk-x11-2.0.so.0(gtk_selection_convert+0x145)[0xb70d4565]
/usr/lib/libwx_gtk2u_core-2.6.so.0(_ZN11wxClipboard7GetDataER12wxDataObject+0x1ec)[0xb77ad09c]
/usr/lib/libcodeblocks.so.0(_ZN11ScintillaWX5PasteEv+0x17c)[0xb7df14fc]
/usr/lib/libcodeblocks.so.0(_ZN6Editor7WndProcEjml+0x23d0)[0xb7e1f970]
/usr/lib/libcodeblocks.so.0(_ZN13ScintillaBase7WndProcEjml+0x2b7)[0xb7ea3cc7]
/usr/lib/libcodeblocks.so.0(_ZN11ScintillaWX7WndProcEjml+0x54)[0xb7def3e4]
/usr/lib/libcodeblocks.so.0(_ZN11wxScintilla7SendMsgEill+0x2f)[0xb7df392f]
/usr/lib/libcodeblocks.so.0(_ZN11wxScintilla5PasteEv+0x32)[0xb7df5f82]
/usr/lib/libcodeblocks.so.0(_ZN8cbEditor5PasteEv+0x25)[0xb7c2ecb5]
codeblocks(_ZN9MainFrame11OnEditPasteER14wxCommandEvent+0x38)[0x807aef8]
/usr/lib/libwx_baseu-2.6.so.0(_ZNK12wxAppConsole11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_+0x35)[0xb75a0395]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x92)[0xb762c662]
/usr/lib/libwx_baseu-2.6.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0x7b)[0xb762c7ab]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xcf)[0xb762c91f]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x6e)[0xb762c8be]
/usr/lib/libwx_gtk2u_core-2.6.so.0[0xb782d568]
/usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x4b)[0xb6ebc41b]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x13b)[0xb6eaf07b]
/usr/lib/libgobject-2.0.so.0[0xb6ebf4e9]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x899)[0xb6ec09a9]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0xb6ec0b59]
/usr/lib/libgtk-x11-2.0.so.0[0xb718e02d]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x13b)[0xb6eaf07b]
/usr/lib/libgobject-2.0.so.0[0xb6ebf4e9]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x678)[0xb6ec0788]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0xb6ec0b59]
======= Memory map: ========
08048000-080dd000 r-xp 00000000 03:02 1157112    /usr/bin/codeblocks
080dd000-080e3000 rwxp 00094000 03:02 1157112    /usr/bin/codeblocks
080e3000-09104000 rwxp 080e3000 00:00 0          [heap]
b2643000-b27e7000 rwxp b2643000 00:00 0 
b27e7000-b27e8000 ---p b27e7000 00:00 0 
b27e8000-b2fe8000 rwxp b27e8000 00:00 0 
b2fe8000-b2fe9000 ---p b2fe8000 00:00 0 
b2fe9000-b385a000 rwxp b2fe9000 00:00 0 
b385a000-b3869000 r-xp 00000000 03:02 699151     /lib/libbz2.so.1.0.3
b3869000-b386a000 rwxp 0000e000 03:02 699151     /lib/libbz2.so.1.0.3
b386a000-b397c000 r-xp 00000000 03:02 1162197    /usr/lib/libxml2.so.2.6.26
b397c000-b3981000 rwxp 00112000 03:02 1162197    /usr/lib/libxml2.so.2.6.26
b3981000-b3982000 rwxp b3981000 00:00 0 
b3982000-b39b4000 r-xp 00000000 03:02 1161938    /usr/lib/libcroco-0.6.so.3.0.1
b39b4000-b39b7000 rwxp 00031000 03:02 1161938    /usr/lib/libcroco-0.6.so.3.0.1
b39b7000-b39e1000 r-xp 00000000 03:02 1161943    /usr/lib/libgsf-1.so.114.0.1
b39e1000-b39e4000 rwxp 00029000 03:02 1161943    /usr/lib/libgsf-1.so.114.0.1
b39e4000-b39e5000 rwxp b39e4000 00:00 0 
b39e5000-b3a13000 r-xp 00000000 03:02 1154457    /usr/lib/librsvg-2.so.2.16.0
b3a13000-b3a14000 rwxp 0002e000 03:02 1154457    /usr/lib/librsvg-2.so.2.16.0
b3a22000-b3a2e000 r-xp 00000000 03:02 114255     /usr/share/fonts/TTF/VeraMoBd.ttf
b3a2e000-b3a2f000 r-xp 00000000 03:02 51906      /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
b3a2f000-b3a30000 rwxp 00001000 03:02 51906      /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
b3a30000-b3a3d000 r-xp 00000000 03:02 114254     /usr/share/fonts/TTF/VeraMono.ttf
b3a3d000-b3b8c000 r-xp 00000000 03:02 1187590    /usr/share/codeblocks/plugins/libwxsmith.so
b3b8c000-b3b99000 rwxp 0014f000 03:02 1187590    /usr/share/codeblocks/plugins/libwxsmith.so
b3b99000-b3b9d000 rwxp b3b99000 00:00 0 
b3b9d000-b3bb4000 r-xp 00000000 03:02 1187589    /usr/share/codeblocks/plugins/libSymTab.so
b3bb4000-b3bb5000 rwxp 00017000 03:02 1187589    /usr/share/codeblocks/plugins/libSymTab.so
b3bb5000-b3Aborted
[obf@myhost ~]$ 
ID_35146 2007-01-18 15:48

I can reproduce this bug. Codeblocks crashes everytimes when I copy a piece of code of 12+n*8 character length.

svn version: 3500

OS: Redhat

Was partially built with older libraries

ID_35518 2007-01-31 22:24

I'm encountering this bug on svn build rev 3496 (2007-01-16 19:06:00) gcc 3.4.6 Linux/unicode.

Occaisionally when I paste a line of text codeblocks closes.

*** glibc detected *** free(): invalid next size (fast): 0x08ce1fb8 *** Aborted

Code::Blocks is awesome but this bug is bad news I'm afraid to use it now because I keep losing work.

Slackware 11 with 2.6.17.13 kernel on x86.

artoj 2007-02-05 11:40

OK, just to make sure, is everyone having this issue using wxWidgets with the latest patches from:

http://wxwidgets.org/downloads/patch.htm

ID_35518 2007-02-18 05:16

I have applied the patches and rebuilt and have not seen the problem since. I would say it is greatly mitigated or fixed. Thanks mike_t for the info and arto_j for the followup. Great app and great team.

biplab 2007-03-30 06:56

Closing it based on user feedback.