Mantis - mc
Viewing Issue Advanced Details
5141 packaging crash always 2014-01-13 20:18 2014-04-17 22:18
iav  
dam  
normal  
assigned  
open  
none    
none  
0005141: crashes when external program starts
After update to 4.8.11 trying to run any external command, like ls, crashes mc with output

# mc

/users/srcadm# select (FD_SETSIZE, &read_set...): Bad file number (9)

4.8.8 not have this bug
solaris 10 sparc
Issue History
2014-01-13 20:18 iav New Issue
2014-01-13 20:21 iav Note Added: 0010681
2014-01-15 11:39 dam Status new => assigned
2014-01-15 11:39 dam Assigned To => dam
2014-01-15 11:40 dam Note Added: 0010682
2014-01-31 23:14 iav Note Added: 0010693
2014-02-03 13:41 dam Note Added: 0010695
2014-02-03 13:44 dam Note Added: 0010696
2014-02-03 21:29 iav Note Added: 0010698
2014-04-17 22:18 iav Note Added: 0010802

Notes
(0010681)
iav   
2014-01-13 20:21   
ldd /opt/csw/bin/mc
        libslang.so.2 => /opt/csw/lib/sparcv8/libslang.so.2
        libssh2.so.1 => /opt/csw/lib/sparcv8/libssh2.so.1
        libnsl.so.1 => /lib/libnsl.so.1
        libsocket.so.1 => /lib/libsocket.so.1
        libgmodule-2.0.so.0 => /opt/csw/lib/sparcv8/libgmodule-2.0.so.0
        libpthread.so.1 => /lib/libpthread.so.1
        libthread.so.1 => /lib/libthread.so.1
        libglib-2.0.so.0 => /opt/csw/lib/sparcv8/libglib-2.0.so.0
        libintl.so.8 => /opt/csw/lib/sparcv8/libintl.so.8
        libc.so.1 => /lib/libc.so.1
        libdl.so.1 => /lib/libdl.so.1
        libm.so.1 => /lib/libm.so.1
        libssl.so.1.0.0 => /opt/csw/lib/sparcv8/libssl.so.1.0.0
        libcrypto.so.1.0.0 => /opt/csw/lib/sparcv8/libcrypto.so.1.0.0
        libz.so.1 => /opt/csw/lib/sparcv8/libz.so.1
        libmp.so.2 => /lib/libmp.so.2
        libmd.so.1 => /lib/libmd.so.1
        libscf.so.1 => /lib/libscf.so.1
        libgcc_s.so.1 => /opt/csw/lib/sparcv8/libgcc_s.so.1
        libiconv.so.2 => /opt/csw/lib/sparcv8/libiconv.so.2
        libpcre.so.1 => /opt/csw/lib/sparcv8/libpcre.so.1
        librt.so.1 => /lib/librt.so.1
        libdoor.so.1 => /lib/libdoor.so.1
        libuutil.so.1 => /lib/libuutil.so.1
        libgen.so.1 => /lib/libgen.so.1
        libaio.so.1 => /lib/libaio.so.1
        libm.so.2 => /lib/libm.so.2
        /platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-T200/lib/libmd_psr.so.1
(0010682)
dam   
2014-01-15 11:40   
This is probably an upstream bug, can you please verify that the bug is not present on other platforms?
(0010693)
iav   
2014-01-31 23:14   
Made it in CentOS.
No that bug in centos.

If it does mean - I got CentOS 6, srpm of mc 4.8.10, then replace version number and source packege to the same from 4.8.11.
Then install, run and try to run "ls" command from mc command prompt. it works, then I return into mc by pressing control+o keys.

On solaris it's impossible to return into mc because it crashed when we try to run a subshell.
(0010695)
dam   
2014-02-03 13:41   
We recently had issues with applications compiled with Oracle Studio. Please try these packages compiled with gcc:
  http://buildfarm.opencsw.org/experimental.html#mc [^]
(0010696)
dam   
2014-02-03 13:44   
I just verified that the error is still present.
(0010698)
iav   
2014-02-03 21:29   
Just verifyed error present not only under u9, but on Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
(0010802)
iav   
2014-04-17 22:18   
Now I build mc-4.8.12 with same config, and same result: crash with "select (FD_SETSIZE, &read_set...): Bad file number (9)" on subshell invocation.

And I have to comment-out gnu compiler to have successful build.