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

segmentation fault #1616

Closed
mc-butler opened this issue Sep 14, 2009 · 8 comments
Closed

segmentation fault #1616

mc-butler opened this issue Sep 14, 2009 · 8 comments
Labels
area: mcview mcview, the built-in text editor prio: high Serious problem that could block progress

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/1616
Reporter 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

The file on which occurs an error in attach.

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by user192 on Sep 14, 2009 at 15:24 UTC

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Sep 14, 2009 at 15:49 UTC

Replying to user192 (#1616):

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.

@mc-butler
Copy link
Author

Changed by user192 on Sep 14, 2009 at 19:58 UTC (comment 2)

./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.

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Sep 14, 2009 at 22:18 UTC (comment 3)

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.

@mc-butler
Copy link
Author

Changed by user192 on Sep 15, 2009 at 9:31 UTC (comment 3.4)

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.

@mc-butler
Copy link
Author

Changed by user192 on Sep 15, 2009 at 13:28 UTC (comment 5)

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

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

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Sep 15, 2009 at 14:33 UTC (comment 6)

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

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Sep 15, 2009 at 14:34 UTC (comment 7)

  • Milestone 4.7.0-pre3 deleted
  • Version 4.7.0-pre2 deleted

@mc-butler mc-butler closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2025
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: high Serious problem that could block progress
Development

No branches or pull requests

1 participant