Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on search in viewed file after Parsed/Raw switching #2195

Closed
mc-butler opened this issue May 13, 2010 · 8 comments
Closed

Crash on search in viewed file after Parsed/Raw switching #2195

mc-butler opened this issue May 13, 2010 · 8 comments
Assignees
Labels
area: mcview mcview, the built-in text editor prio: medium Has the potential to affect progress ver: 4.7.2 Reproducible in version 4.7.2
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/2195
Reporter storchaka (storchaka@….com)

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 *

@mc-butler
Copy link
Author

Changed by birdie (aros@….com) on May 13, 2010 at 13:15 UTC (comment 1)

Confirming in MC 4.7.2 :)

@mc-butler
Copy link
Author

Changed by birdie (aros@….com) on May 13, 2010 at 13:26 UTC (comment 2)

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

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 13, 2010 at 15:44 UTC (comment 3)

  • Component changed from mc-core to mcview

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on May 14, 2010 at 6:24 UTC (comment 4)

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

created branch 2195_crash_search_parsed_raw

[8caad9350c0c69acc8b0b8d568323ef7c213be42]

review, please

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 14, 2010 at 6:59 UTC (comment 5)

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

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on May 19, 2010 at 14:25 UTC (comment 6)

  • Severity changed from on review to approved
  • Votes changed from andrew_b to andrew_b angel_il

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 21, 2010 at 17:46 UTC (comment 7)

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

Merged to master.
[da26aa5]

Cherry-picked to 4.7.0-stable
[0a24304]

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 21, 2010 at 17:49 UTC (comment 8)

  • Status changed from testing to closed
  • Description edited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mcview mcview, the built-in text editor prio: medium Has the potential to affect progress ver: 4.7.2 Reproducible in version 4.7.2
Development

No branches or pull requests

2 participants