id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3188	mc crashes on Solaris right after start	drookie		"mc crashes on Solaris 11.1 right after start. I've just built it, I've even had one successful session with it, but now it crashes. May be this has something to do with the fact that I changed the prompt.

OS: Solaris 11.1
GCC: 4.5.2
Comiler flags: -g -m64
Configure arguments: --prefix=/usr/local/mc --disable-dtrace
Shell: bash

Backtrace:

{{{
# gdb /usr/local/mc/bin/mc core
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type ""show copying""
and ""show warranty"" for details.
This GDB was configured as ""i386-pc-solaris2.11""...
Reading symbols from /usr/local/libiconv/lib/preloadable_libiconv.so...done.
Loaded symbols for /usr/local/libiconv/lib/preloadable_libiconv.so
Reading symbols from /usr/local/slang/lib/libslang.so.2...done.
Loaded symbols for /usr/local/slang/lib/libslang.so.2
Reading symbols from /usr/local/glib/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/local/glib/lib/libgmodule-2.0.so.0
Reading symbols from /usr/local/glib/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/glib/lib/libglib-2.0.so.0
Reading symbols from /lib/amd64/libpthread.so.1...
warning: Lowest section in /lib/amd64/libpthread.so.1 is .dynamic at 00000000000000b0
done.
Loaded symbols for /lib/64/libpthread.so.1
Reading symbols from /lib/amd64/libthread.so.1...
warning: Lowest section in /lib/amd64/libthread.so.1 is .dynamic at 00000000000000b0
done.
Loaded symbols for /lib/64/libthread.so.1
Reading symbols from /lib/amd64/libxnet.so.1...
warning: Lowest section in /lib/amd64/libxnet.so.1 is .dynamic at 00000000000000b0
done.
Loaded symbols for /lib/64/libxnet.so.1
Reading symbols from /lib/amd64/libc.so.1...done.
Loaded symbols for /lib/64/libc.so.1
Reading symbols from /usr/lib/amd64/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/64/libgcc_s.so.1
Reading symbols from /lib/amd64/libdl.so.1...
warning: Lowest section in /lib/amd64/libdl.so.1 is .dynamic at 00000000000000b0
done.
Loaded symbols for /lib/64/libdl.so.1
Reading symbols from /lib/amd64/libm.so.2...done.
Loaded symbols for /lib/64/libm.so.2
Reading symbols from /lib/amd64/libsocket.so.1...done.
Loaded symbols for /lib/64/libsocket.so.1
Reading symbols from /lib/amd64/libnsl.so.1...done.
Loaded symbols for /lib/64/libnsl.so.1
Reading symbols from /usr/lib/locale/en_US.UTF-8/amd64/en_US.UTF-8.so.3...done.
Loaded symbols for /usr/lib/locale/en_US.UTF-8/amd64/en_US.UTF-8.so.3
Reading symbols from /usr/lib/locale/en_US.UTF-8/amd64/methods_unicode.so.3...done.
Loaded symbols for /usr/lib/locale/en_US.UTF-8/amd64/methods_unicode.so.3
Reading symbols from /lib/amd64/ld.so.1...done.
Loaded symbols for /lib/amd64/ld.so.1
Core was generated by `/usr/local/mc/bin/mc'.
Program terminated with signal 11, Segmentation fault.
[New process 68301    ]
#0  0xffff80ffbf4ca933 in iconv () from /lib/64/libc.so.1
(gdb) bt
#0  0xffff80ffbf4ca933 in iconv () from /lib/64/libc.so.1
#1  0xffff80ffbcfc0201 in g_iconv (converter=0x556c00, inbuf=0x0, inbytes_left=0x0, outbuf=0x0, outbytes_left=0x0)
    at gconvert.c:169
#2  0x00000000004a11ee in _str_convert (coder=0x556c00, string=0x51265c ""~"", size=1, buffer=0x5bb780) at strutil.c:83
#3  0x00000000004a14f1 in str_convert (coder=0x556c00, string=0x51265c ""~"", buffer=0x5bb780) at strutil.c:83
#4  0x00000000004a0677 in mc_config_normalize_before_save (value=0x51265c ""~"") at set.c:57
#5  0x00000000004a07d4 in mc_config_set_string (mc_config=0x5b7b60, group=0x5127ec ""Midnight-Commander"", 
    param=0x512644 ""editor_backup_extension"", value=0x51265c ""~"") at set.c:77
#6  0x0000000000474f96 in mc_config_get_string (mc_config=0x5b7b60, group=0x5127ec ""Midnight-Commander"", 
    param=0x512644 ""editor_backup_extension"", def=0x51265c ""~"") at get.c:69
#7  0x00000000004532a1 in load_setup () at setup.c:502
#8  0x000000000044d8f7 in main (argc=1, argv=0xffff80ffbffffb78) at main.c:130
(gdb) bt full
#0  0xffff80ffbf4ca933 in iconv () from /lib/64/libc.so.1
No symbol table info available.
#1  0xffff80ffbcfc0201 in g_iconv (converter=0x556c00, inbuf=0x0, inbytes_left=0x0, outbuf=0x0, outbytes_left=0x0)
    at gconvert.c:169
        cd = (iconv_t) 0x556c00
#2  0x00000000004a11ee in _str_convert (coder=0x556c00, string=0x51265c ""~"", size=1, buffer=0x5bb780) at strutil.c:83
        state = ESTR_SUCCESS
        left = 1
        bytes_read = 0
        bytes_written = 0
#3  0x00000000004a14f1 in str_convert (coder=0x556c00, string=0x51265c ""~"", buffer=0x5bb780) at strutil.c:83
No locals.
#4  0x00000000004a0677 in mc_config_normalize_before_save (value=0x51265c ""~"") at set.c:57
        conv = (GIConv) 0x556c00
        buffer = (GString *) 0x5bb780
        ok = 0
#5  0x00000000004a07d4 in mc_config_set_string (mc_config=0x5b7b60, group=0x5127ec ""Midnight-Commander"", 
    param=0x512644 ""editor_backup_extension"", value=0x51265c ""~"") at set.c:77
        buffer = (gchar *) 0x5b7b60 """"
#6  0x0000000000474f96 in mc_config_get_string (mc_config=0x5b7b60, group=0x5127ec ""Midnight-Commander"", 
    param=0x512644 ""editor_backup_extension"", def=0x51265c ""~"") at get.c:69
        conv = (GIConv) 0x5127ec
        buffer = (GString *) 0xffff80ffbf4bfb7c
        ret = (gchar *) 0x0
        conv_res = 4294934783
#7  0x00000000004532a1 in load_setup () at setup.c:502
        profile = 0x563a00 ""/root/.config/mc/ini""
        i = 0
        buffer = 0xffff80ffbffffae0 ""PШЪ©Ъ\200ЪЪВьD""
        kt = 0x0
#8  0x000000000044d8f7 in main (argc=1, argv=0xffff80ffbffffb78) at main.c:130
        error = (GError *) 0x0
        config_migrated = 0
        config_migrate_msg = 0x44d45b ""H\203=Уc\016""
        exit_code = 1
(gdb) quit
}}}"	defect	closed	major		mc-core	4.8.11	invalid					no branch	
