Ticket #1616 (closed defect: wontfix)

Opened 7 years ago

Last modified 6 years ago

segmentation fault

Reported by: user192 Owned by:
Priority: critical Milestone:
Component: mcview Version:
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description

When I press key F3, mc takes off with segmentation fault. Output gdb:

Program received signal SIGSEGV, Segmentation fault.
0xb7bfea2d in ?? () from /lib/libc.so.6

The file on which occurs an error in attach.

Attachments

error.log.1 (247 bytes) - added by user192 7 years ago.

Change History

Changed 7 years ago by user192

comment:1 in reply to: ↑ description Changed 7 years ago by andrew_b

Replying to user192:

When I press key F3, mc takes off with segmentation fault. Output gdb:

Program received signal SIGSEGV, Segmentation fault.
0xb7bfea2d in ?? () from /lib/libc.so.6

This wiki page will help you to provide the detailed info about this bug.

comment:2 Changed 7 years ago by user192

./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --enable-background --enable-netcode --enable-nls --enable-charset --with-edit --without-ext2undel --with-gpm-mouse --with-vfs --with-x --without-samba --with-screen=ncurses --with-screen=slang

(gdb) bt
#0 0xb7c11a2d in ?? () from /lib/libc.so.6
#1 0x00004001 in ?? ()
#2 0xb7e5cd99 in SLsmg_write_chars () from /usr/lib/libslang.so.2
#3 0xb7e5e07d in SLsmg_fill_region () from /usr/lib/libslang.so.2
#4 0x00000000 in ?? ()

(gdb) bt full
#0 0xb7c11a2d in ?? () from /lib/libc.so.6
No symbol table info available.
#1 0x00004001 in ?? ()
No symbol table info available.
#2 0xb7e5cd99 in SLsmg_write_chars () from /usr/lib/libslang.so.2
No symbol table info available.
#3 0xb7e5e07d in SLsmg_fill_region () from /usr/lib/libslang.so.2
No symbol table info available.
#4 0x00000000 in ?? ()
No symbol table info available.

comment:3 follow-up: ↓ 4 Changed 7 years ago by slavazanko

No symbol table info available.

This strange. I think, you have installed mc from binary package with stripped debug info.

Next testCase, I think, have relate to this problem:

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

(gdb) where
#0  0x080d9318 in open_socket_out (type=163453216, addr=0x9c2e218, port=6, timeout=0) at ../../../vfs/samba/lib/util_sock.c:741
#1  0x080d9e7a in receive_smb (fd=163766808, buffer=0x9bfd4a0 "\30\342\302\t\t", timeout=4294967295) at ../../../vfs/samba/lib/util_sock.c:503
#2  0x080da673 in iface_n_ip (n=-1) at ../../../vfs/samba/lib/interface.c:321
#3  0x080d9574 in open_socket_in (type=163566752, port=163766336, dlevel=163766424, socket_addr=14114943, rebind=163766336)
    at ../../../vfs/samba/lib/util_sock.c:708
#4  0x080d88a2 in codepage_initialise (client_codepage=135380124) at ../../../vfs/samba/lib/charset.c:332
#5  0x080d8ab4 in charset_initialise () at ../../../vfs/samba/lib/charset.c:176
#6  0x080d8b88 in uname_string_combinations2 (s=<value optimized out>, offset=<value optimized out>, N=<value optimized out>, fn=<value optimized out>)
    at ../../../vfs/samba/lib/username.c:396
#7  0x0809ade1 in query_dialog (header=0x9bdf418 "bla-bla", text=0xffffffff <Address 0xffffffff out of bounds>, flags=<value optimized out>, count=11216784)
    at ../../src/wtools.c:181
#8  0x0809ae94 in query_dialog (header=0x9c09ab0 "", text=0x0, flags=<value optimized out>, count=163524921) at ../../src/wtools.c:197
#9  0x0809783a in move_buffer_backward (in=0x1, start=-1, end=0) at ../../src/widget.c:1274
#10 0x080984a7 in show_hist (history=0x9c09ab0, widget=0x12d) at ../../src/widget.c:1127
#11 0x0809f6ce in utf8_tool_copy_chars_to (tool=0x9c09ab0, to_ident=-1) at ../../src/strutilutf8.c:494
#12 0x0809fbef in str_utf8_fit_to_term (text=0x9c09ab0 "", width=301, just_mode=0) at ../../src/strutilutf8.c:602
#13 0x08087199 in ITEMS (p=<value optimized out>) at ../../src/screen.c:1644
#14 move_home (p=<value optimized out>) at ../../src/screen.c:1912
#15 0x08087a8f in parse_display_format (res_total_cols=<value optimized out>, isstatus=<value optimized out>, error=<value optimized out>,
    format=<value optimized out>, panel=<value optimized out>) at ../../src/screen.c:1333
#16 use_display_format (res_total_cols=<value optimized out>, isstatus=<value optimized out>, error=<value optimized out>, format=<value optimized out>,
    panel=<value optimized out>) at ../../src/screen.c:1462

Also, IMHO trouble described into #1591 looks like this trouble.

comment:4 in reply to: ↑ 3 Changed 7 years ago by user192

Replying to slavazanko:

This strange. I think, you have installed mc from binary package with stripped debug info.

MC compiled from git in gentoo.

Next testCase, I think, have relate to this problem:

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

In item 2 Confirmation dialog it is not shown, I do not know where to press on [< Fix it >]

В пункте 2 окно Confirmation не отображается, не знаю, где нажимать на [< Fix it >]

Also, with the new profile all works fine, the problem has appeared recently, after change of any customisations. Meanwhile the profile I do not wish to take down - it is necessary to catch an error.

Кстати, с чистым профилем всё работает нормально, проблема появилась недавно, после изменения каких-то настроек. Пока что профиль сносить не хочу - надо отловить ошибку.

Also, IMHO trouble described into #1591 looks like this trouble.

No, all works fine.

comment:5 Changed 7 years ago by user192

I now update mc from git, the bug has disappeared.

Обновился из git, баг пропал. Можно закрывать.

comment:6 Changed 7 years ago by slavazanko

  • Status changed from new to closed
  • Resolution set to wontfix

comment:7 Changed 7 years ago by slavazanko

  • Version 4.7.0-pre2 deleted
  • Milestone 4.7.0-pre3 deleted
Note: See TracTickets for help on using tickets.