Ticket #2195 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Crash on search in viewed file after Parsed/Raw switching

Reported by: storchaka Owned by: slavazanko
Priority: major Milestone: 4.7.3
Component: mcview Version: 4.7.2
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset: committed-master committed-stable

Description (last modified by andrew_b) (diff)

View (F3) some file.
Switch Raw->Parse or Parse->Raw (F8).
Search any text, contained in the file.
Crash!
Posthumous error message: * glibc detected * double free or corruption (fasttop): 0x0000000000d7e580 *

Change History

comment:1 Changed 7 years ago by birdie

Confirming in MC 4.7.2 :)

comment:2 Changed 7 years ago by birdie

backtrace doesn't seem useful:

#0 0xb73fcd85 in _int_malloc () from /lib/libc.so.6
#1 0xb73fe08e in malloc () from /lib/libc.so.6
#2 0xb7574285 in g_malloc () from /lib/libglib-2.0.so.0
#3 0xb758d06a in g_strdup () from /lib/libglib-2.0.so.0
#4 0x080b270d in vfs_canon (path=0x94f6588 "/tmp/test") at vfs.c:1108
#5 0x080b26ef in vfs_canon (path=0x94ddc00 "test") at vfs.c:1098
#6 0x080b0fbb in vfs_canon_and_translate (path=0x94ddc00 "test") at vfs.c:546
#7 0x080b102c in mc_open (filename=0x94ddc00 "test", flags=2048) at vfs.c:568
#8 0x080cc449 in mcview_load (view=0x9502df0, command=0x0, file=0x94ddc00 "test", start_line=0) at mcviewer.c:350
#9 0x080d46e9 in mcview_toggle_magic_mode (view=0x9502df0) at lib.c:82
#10 0x080ceea8 in mcview_execute_cmd (view=0x9502df0, command=5008) at actions_cmd.c:364
#11 0x080cf4c5 in mcview_callback (w=0x9502df0, msg=WIDGET_COMMAND, parm=5008) at actions_cmd.c:556
#12 0x080ce236 in send_message (w=0x9502df0, msg=WIDGET_COMMAND, parm=5008) at ../../src/dialog.h:242
#13 0x080cf5c4 in mcview_dialog_callback (h=0x94f8908, sender=0x94f2f90, msg=DLG_ACTION, parm=5008, data=0x9502df0) at actions_cmd.c:594
#14 0x0806da8e in buttonbar_call (bb=0x94f2f90, i=7) at widget.c:2856
#15 0x0806db38 in buttonbar_callback (w=0x94f2f90, msg=WIDGET_HOTKEY, parm=1008) at widget.c:2884
#16 0x0805cc66 in send_message (w=0x94f2f90, msg=WIDGET_HOTKEY, parm=1008) at ../src/dialog.h:242
#17 0x0805dbc8 in dlg_try_hotkey (h=0x94f8908, d_key=1008) at dialog.c:706
#18 0x0805dca7 in dlg_key_event (h=0x94f8908, d_key=1008) at dialog.c:746
#19 0x0805e0b9 in dlg_process_event (h=0x94f8908, key=1008, event=0xbff32da0) at dialog.c:860
#20 0x0805e1a8 in frontend_run_dlg (h=0x94f8908) at dialog.c:894
#21 0x0805e217 in run_dlg (h=0x94f8908) at dialog.c:910
#22 0x080cc2b7 in mcview_viewer (command=0x0, file=0x94d7e18 "test", move_dir_p=0xbff32e90, start_line=0) at mcviewer.c:296
#23 0x08079ef6 in view_file_at_line (filename=0x94d7e18 "test", plain_view=0, internal=1, start_line=0) at cmd.c:167
#24 0x08079f87 in view_file (filename=0x94d7e18 "test", plain_view=0, internal=1) at cmd.c:197
#25 0x0807a17e in do_view_cmd (normal=0) at cmd.c:257
#26 0x0807a1cd in view_cmd () at cmd.c:271
#27 0x08098015 in midnight_execute_cmd (sender=0x94d9290, command=7070) at main.c:1434
#28 0x080988a8 in midnight_callback (h=0x94e1148, sender=0x94d9290, msg=DLG_ACTION, parm=7070, data=0x0) at main.c:1785
#29 0x0806da8e in buttonbar_call (bb=0x94d9290, i=2) at widget.c:2856
#30 0x0806db38 in buttonbar_callback (w=0x94d9290, msg=WIDGET_HOTKEY, parm=1003) at widget.c:2884
#31 0x0805cc66 in send_message (w=0x94d9290, msg=WIDGET_HOTKEY, parm=1003) at ../src/dialog.h:242
#32 0x0805dbc8 in dlg_try_hotkey (h=0x94e1148, d_key=1003) at dialog.c:706
#33 0x0805dca7 in dlg_key_event (h=0x94e1148, d_key=1003) at dialog.c:746
#34 0x0805e0b9 in dlg_process_event (h=0x94e1148, key=1003, event=0xbff33100) at dialog.c:860
#35 0x0805e1a8 in frontend_run_dlg (h=0x94e1148) at dialog.c:894
#36 0x0805e217 in run_dlg (h=0x94e1148) at dialog.c:910
#37 0x08098bb5 in create_panels_and_run_mc () at main.c:1893
#38 0x08098f1d in do_nc () at main.c:2006
#39 0x0809984c in main (argc=1, argv=0xbff33314) at main.c:2384

comment:3 Changed 7 years ago by andrew_b

  • Component changed from mc-core to mcview

comment:4 Changed 7 years ago by slavazanko

  • Owner set to slavazanko
  • Status changed from new to accepted
  • Component changed from mcview to mc-core
  • severity changed from no branch to on review

created branch 2195_crash_search_parsed_raw

changeset:8caad9350c0c69acc8b0b8d568323ef7c213be42

review, please

comment:5 Changed 7 years ago by andrew_b

  • Votes for changeset set to andrew_b
  • Component changed from mc-core to mcview

comment:6 Changed 7 years ago by angel_il

  • Votes for changeset changed from andrew_b to andrew_b angel_il
  • severity changed from on review to approved

comment:7 Changed 7 years ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset changed from andrew_b angel_il to committed-master committed-stable
  • severity changed from approved to merged
  • Milestone changed from 4.7 to 4.7.3
  • Keywords view removed
  • Resolution set to fixed

comment:8 Changed 7 years ago by andrew_b

  • Status changed from testing to closed
  • Description modified (diff)
Note: See TracTickets for help on using tickets.