Ticket #2356 (new defect) — at Version 2
mc viewer: segmentation fault
Reported by: | laborer | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 4.7.5 |
Component: | mcview | Version: | 4.7.4 |
Keywords: | Cc: | zaytsev | |
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: |
Description (last modified by slyfox) (diff)
I compiled mc with ncurses for ARM. It generally works. But when i open ANY text file in internal viewer the program crashes.
My system: armv5tel GNU/Linux, kernel 2.6.22.19
My compiler: arm-xscale-linux-gnueabi-gcc 4.2.3
$ mc -V GNU Midnight Commander 4.7.4 Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish With builtin Editor Using the ncurses library With subshell support as default With support for background operations With mouse support on xterm With internationalization support With multiple codepages support Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 32;
backtrace:
(gdb) bt #0 0x401e1b14 in strlen () from /lib/libc.so.6 #1 0x401b3534 in vfprintf () from /lib/libc.so.6 #2 0x401d3f48 in vsnprintf () from /lib/libc.so.6 #3 0x401331e8 in _nc_printf_string () from /usr/lib/libncurses.so.5 #4 0x4012eff8 in vwprintw () from /usr/lib/libncurses.so.5 #5 0x0005fc44 in tty_printf (fmt=0xa40f8 "") at tty-ncurses.c:409 #6 0x0006ff9c in mcview_display_status (view=0x125140) at display.c:157 #7 0x0006db64 in mcview_callback (w=0x125140, msg=WIDGET_DRAW, parm=0) at actions_cmd.c:468 #8 0x00011508 in send_message (h=0x124e20, message=604, reverse=1, flags=0) at dialog.h:269 #9 dlg_broadcast_msg_to (h=0x124e20, message=604, reverse=1, flags=0) at dialog.c:444 #10 0x000115d4 in dlg_redraw (h=0x124e20) at dialog.c:693 #11 0x00011cd8 in init_dlg (h=0x124e20) at dialog.c:976 #12 0x00011d68 in run_dlg (h=0xa9118) at dialog.c:1074 #13 0x0004c828 in mcview_viewer (command=0x0, file=0x119840 ".ash_history", start_line=267) at mcviewer.c:265 #14 0x0002d914 in view_file_at_line (filename=0x119840 ".ash_history", plain_view=<value optimized out>, internal=<value optimized out>, start_line=0) at cmd.c:176 #15 0x0002db9c in do_view_cmd (normal=0) at cmd.c:279 #16 0x00046608 in midnight_execute_cmd (sender=0x12a720, command=7071) ---Type <return> to continue, or q <return> to quit---q at main.cQuit (gdb) bt #0 0x401e1b14 in strlen () from /lib/libc.so.6 #1 0x401b3534 in vfprintf () from /lib/libc.so.6 #2 0x401d3f48 in vsnprintf () from /lib/libc.so.6 #3 0x401331e8 in _nc_printf_string () from /usr/lib/libncurses.so.5 #4 0x4012eff8 in vwprintw () from /usr/lib/libncurses.so.5 #5 0x0005fc44 in tty_printf (fmt=0xa40f8 "") at tty-ncurses.c:409 #6 0x0006ff9c in mcview_display_status (view=0x125140) at display.c:157 #7 0x0006db64 in mcview_callback (w=0x125140, msg=WIDGET_DRAW, parm=0) at actions_cmd.c:468 #8 0x00011508 in send_message (h=0x124e20, message=604, reverse=1, flags=0) at dialog.h:269 #9 dlg_broadcast_msg_to (h=0x124e20, message=604, reverse=1, flags=0) at dialog.c:444 #10 0x000115d4 in dlg_redraw (h=0x124e20) at dialog.c:693 #11 0x00011cd8 in init_dlg (h=0x124e20) at dialog.c:976 #12 0x00011d68 in run_dlg (h=0xa9118) at dialog.c:1074 #13 0x0004c828 in mcview_viewer (command=0x0, file=0x119840 ".ash_history", start_line=267) at mcviewer.c:265 #14 0x0002d914 in view_file_at_line (filename=0x119840 ".ash_history", plain_view=<value optimized out>, internal=<value optimized out>, start_line=0) at cmd.c:176 #15 0x0002db9c in do_view_cmd (normal=0) at cmd.c:279 #16 0x00046608 in midnight_execute_cmd (sender=0x12a720, command=7071) ---Type <return> to continue, or q <return> to quit--- at main.c:1251 #17 0x00046c08 in midnight_callback (h=<value optimized out>, sender=0xa9118, msg=3201143928, parm=7071, data=0x40290000) at main.c:1604 #18 0x0001b240 in buttonbar_call (bb=0x25c, i=<value optimized out>) at widget.c:3019 #19 0x0001b890 in buttonbar_callback (w=0x12a720, msg=<value optimized out>, parm=267) at widget.c:3107 #20 0x00011c0c in send_message (h=0x118878, key=267, event=<value optimized out>) at dialog.h:269 #21 dlg_try_hotkey (h=0x118878, key=267, event=<value optimized out>) at dialog.c:888 #22 dlg_key_event (h=0x118878, key=267, event=<value optimized out>) at dialog.c:935 #23 dlg_process_event (h=0x118878, key=267, event=<value optimized out>) at dialog.c:1003 #24 0x00011e4c in frontend_run_dlg (h=0x118878) at dialog.c:1045 #25 run_dlg (h=0x118878) at dialog.c:1075 #26 0x000452a8 in create_panels_and_run_mc () at main.c:1716 #27 do_nc () at main.c:1798 #28 0x00045998 in main (argc=<value optimized out>, argv=<value optimized out>) at main.c:2048
Need some more information?
Change History
Note: See
TracTickets for help on using
tickets.
Do you use some distro or you've built everything youself?