Crash on editor replace dialog at cancel

2009-09-14 Thread David Martin

That's it: edit file with F4, then F4+ESC+ESC=crash. If using the proper cancel 
button it crashes as well.- It doesn't happen with this morning's build (I kept 
it)- I tried to reproduce it with no locale (LANG= mc) but there's no crash in 
English, just in SpanishCould you try in different locales and try to 
reproduce?David


Weight Loss Program
Best Weight Loss Program - Click Here!
http://tagline.excite.com/fc/FgElN1gv0RPgqjPMOe8LLcIrUNBMQAhGdI104FCpNimaxBff5846EhswQ8Y/___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: Crash on editor replace dialog at cancel

2009-09-14 Thread David Martin

(gdb) bt#0  0xb7f75410 in __kernel_vsyscall ()#1  0xb7c7a085 in raise () from 
/lib/tls/i686/cmov/libc.so.6#2  0xb7c7ba01 in abort () from 
/lib/tls/i686/cmov/libc.so.6#3  0xb7cb2b7c in ?? () from 
/lib/tls/i686/cmov/libc.so.6#4  0xb7cbe61b in free () from 
/lib/tls/i686/cmov/libc.so.6#5  0xb7dddb81 in g_free () from 
/usr/lib/libglib-2.0.so.0#6  0xb7df532f in g_strfreev () from 
/usr/lib/libglib-2.0.so.0#7  0x080b8d88 in editcmd_dialog_replace_show 
(edit=0x81eb828,    search_default=0x2 Address 0x2 out of bounds, 
replace_default=0x81cfde8 , search_text=0xbfc2e7a8,    
replace_text=0xbfc2e7a4) at editcmd_dialogs.c:129#8  0x080ac69d in 
edit_replace_cmd (edit=0x81eb828, again=0) at editcmd.c:1482#9  0x080a8d6b in 
edit_execute_cmd (edit=0x81eb828, command=303, char_for_insertion=-1) at 
edit.c:3039#10 0x080a99e8 in edit_execute_key_command (edit=0x81eb828, 
command=303, char_for_insertion=-1) at edit.c:2534#11 0x080b0182 in 
edit_callback (w=0x81eb828, msg=WIDGET_KEY, parm=1004) at editwidget.c:354#12 
0x080b061f in cmd_F4 (edit=0x81eb828) at ../src/tty/../../src/dialog.h:227#13 
0x08098a29 in buttonbar_call (bb=value optimized out, i=value optimized 
out) at widget.c:2500#14 0x08099200 in buttonbar_callback (w=0x81e6560, 
msg=WIDGET_HOTKEY, parm=1004) at widget.c:2528#15 0x0806fa5a in 
dlg_process_event (h=0x81d3170, key=1004, event=0xbfc2fd84)    at 
../src/tty/../../src/dialog.h:227#16 0x0806fd4d in run_dlg (h=0x81d3170) at 
dialog.c:858#17 0x080afd8c in edit_file (_file=0x81d87a0 stamp-h1, line=0) at 
editwidget.c:214#18 0x0806ba1c in do_edit_at_line (what=0x81d87a0 stamp-h1, 
start_line=0) at cmd.c:304#19 0x0806ba56 in do_edit (what=0x0) at cmd.c:322#20 
0x08098a34 in buttonbar_call (bb=0x0, i=value optimized out) at 
widget.c:2497#21 0x08099200 in buttonbar_callback (w=0x81d4cc8, 
msg=WIDGET_HOTKEY, parm=1004) at widget.c:2528#22 0x0806fa5a in 
dlg_process_event (h=0x81c9c80, key=1004, event=0xbfc2feb4)    at 
../src/tty/../../src/dialog.h:227#23 0x0806fd4d in run_dlg (h=0x81c9c80) at 
dialog.c:858#24 0x08084f5f in do_nc () at main.c:1613#25 0x080858a7 in main 
(argc=134803680, argv=0x0) at main.c:2003-Original Message-From: David 
Martin [dmart...@excite.com]date: 14/09/2009 23:16To: 
mc-de...@gnome.orgsubject: Re: Crash on editor replace dialog at cancel  That's 
it: edit file with F4, then F4+ESC+ESC=crash. If using the proper cancel button 
it crashes as well.  - It doesn't happen with this morning's build (I kept it) 
- I tried to reproduce it with no locale (LANG= mc) but there's no crash in 
English, just in Spanish   Could you try in different locales and try to 
reproduce?   David      
   Weight Loss Program  Best Weight Loss Program - 
Click Here!  Click Here For More Information
    


Business Phone System
Paying too much for your business phone system?  Click here to compare systems 
from top companies.
http://tagline.excite.com/fc/FgElN1g6lTe9BdnwyoJE1OnZT8PKHXSMVqykH3y4aXxMU2tIausXsbB8gVa/___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: Crash on editor replace dialog at cancel

2009-09-14 Thread Slava Zanko
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

15.09.2009 00:21, David Martin wrote:
 
 (gdb) bt

#7  0x080b8d88 in editcmd_dialog_replace_show (edit=0x81eb828,

search_default=0x2 Address 0x2 out of bounds,

 replace_default=0x81cfde8 , search_text=0xbfc2e7a8,

replace_text=0xbfc2e7a4) at editcmd_dialogs.c:129

This strange: search_default=0x2; where search default have type
'const char*'

And this strange: at editcmd_dialogs.c:129

Line No 129 of 'editcmd_dialogs.c' file contain:
g_strfreev (list_of_types);

in other words, release list of search types...

I suspect that we have somewhere to overdo with the i18n.

BTW, I found segfault solution in the process of understanding your problem:

1) LANG= mc
2) In Confirmation dialog select '[ Fix it ]'.
3) open any file in internal editor (by F4) or viewer (by F3) or .
4) F7 - Enter search string: bla-bla
5) Press 'Enter' key
6) 'profit'

http://www.midnight-commander.org/ticket/1616#comment:3

I suspect that all errors will result in one place: src/strutils*

WBR, Slavaz.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkquwyEACgkQb3oGR6aVLpqElACgg0pYnfw7s0wmD2xx+Jbc7rhg
ov8AoIW0Ksigb4WqyClLWyNETrJbbmg0
=efcq
-END PGP SIGNATURE-
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel