Ticket #1429 (new defect) — at Initial Version

Opened 15 years ago

Last modified 15 years ago

segfault on path completion

Reported by: iNode Owned by:
Priority: major Milestone: 4.7.0-pre1
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description

Sometimes on input in command line:

cd M-Tab

mc segfaults.

Backtrace:

(gdb) where full
#0  0xb7e4751f in memcpy () from /lib/libc.so.6
No symbol table info available.
#1  0x08065a48 in insert_text (in=0x9caf000, text=0x9c755b0 "subshell.o", size=-2)
    at /usr/include/bits/string3.h:52
        buff_len = 3
#2  0x080666c3 in query_callback (h=0x9c7aaf0, msg=DLG_KEY, parm=115) at complete.c:1012
        e = (WLEntry *) 0x9c7b810
        e1 = (WLEntry *) 0x9c7b810
        need_redraw = 2
        low = -2
        last_text = 0x9c755b0 "subshell.o"
        buff = "s", '\0' <repeats 14 times>
        bl = 1
#3  0x080674b3 in dlg_process_event (h=0x9c7aaf0, key=115, event=0xbf8f8a60) at dialog.c:662
No locals.
#4  0x08067907 in run_dlg (h=0x9c7aaf0) at dialog.c:808
No locals.
#5  0x08065d25 in complete (in=0x9c8dd00) at complete.c:1109
        engine_flags = 2
#6  0x080a1565 in handle_char (in=0x9c8dd00, c_code=8201) at widget.c:1663
        v = <value optimized out>
        i = -3
#7  0x0807eb1f in midnight_callback (h=0x9c7b8a3, msg=DLG_UNHANDLED_KEY, parm=8201) at dialog.h:207
        i = <value optimized out>
#8  0x080675f7 in dlg_process_event (h=0x9c6fe58, key=8201, event=0xbf8f8b80) at dialog.c:677
No locals.
#9  0x08067907 in run_dlg (h=0x9c6fe58) at dialog.c:808
No locals.
#10 0x0808004d in main (argc=Cannot access memory at address 0x3fff3228
) at main.c:1797
        s = {st_dev = 2053, __pad1 = 0, __st_ino = 705710, st_mode = 16877, st_nlink = 4, st_uid = 1000, 
  st_gid = 10, st_rdev = 0, __pad2 = 0, st_size = 4096, st_blksize = 4096, st_blocks = 8, st_atim = {
    tv_sec = 1248887295, tv_nsec = 0}, st_mtim = {tv_sec = 1248891754, tv_nsec = 0}, st_ctim = {
    tv_sec = 1248891754, tv_nsec = 0}, st_ino = 705710}
        mc_dir = <value optimized out>
Note: See TracTickets for help on using tickets.