[MacPorts] #25693: bash-4.1.7, login shell crash, EXC_BAD_INSTRUCTION
#25693: bash-4.1.7, login shell crash, EXC_BAD_INSTRUCTION ------------------------------------+--------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: bash ------------------------------------+--------------------------------------- For undefined reason my bash version 4.1.7 from macports crashed by an login shell. If I'm using bash without a login shell everything works fine. Example: {{{ # Doesn't work, and fall back to the normal shell output misterx $ sudo su - misterx $ # Work correctly misterx $ sudo su root $ }}} I've no .bashrc, .bash_profile or other files around that could be kill the login shell. The crash report is attached to the ticket, and it looks like something going wrong with the dynamic libs but rebuild 'bash' has no effect. -- Ticket URL: <http://trac.macports.org/ticket/25693> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25693: bash-4.1.7, login shell crash, EXC_BAD_INSTRUCTION ------------------------------------+--------------------------------------- Reporter: macports@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: bash ------------------------------------+--------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => raimue@… -- Ticket URL: <http://trac.macports.org/ticket/25693#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25693: bash-4.1.7, login shell crash, EXC_BAD_INSTRUCTION ------------------------------------+--------------------------------------- Reporter: macports@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: bash ------------------------------------+--------------------------------------- Changes (by raimue@…): * status: new => assigned -- Ticket URL: <http://trac.macports.org/ticket/25693#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25693: bash-4.1.7, login shell crash, EXC_BAD_INSTRUCTION ------------------------------------+--------------------------------------- Reporter: macports@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: bash ------------------------------------+--------------------------------------- Comment(by raimue@…): I am unable to reproduce this issue as described above. But I was able to reproduce when bash is being used as a login shell `/opt/local/bin/bash -l` in iTerm (while it does work fine in Terminal.app). Apparently this has something to do with closing file descriptors. From reading the source, bash attempts to close fds 3 to 20 if started as a login shell (why?). So I can only guess that this has something to do with the forking process leaving fds open in this range. -- Ticket URL: <http://trac.macports.org/ticket/25693#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25693: bash-4.1.7, login shell crash, EXC_BAD_INSTRUCTION ------------------------------------+--------------------------------------- Reporter: macports@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: bash ------------------------------------+--------------------------------------- Comment(by macports@…): I've uninstalled all port files and reinstalled macports from scratch. After the new installation i couldn't reproduce the problem any more. Currently i've also tested iTerm with the login shell ''/opt/local/bin/bash -l'' and it's also working. -- Ticket URL: <http://trac.macports.org/ticket/25693#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25693: bash-4.1.7, login shell crash, EXC_BAD_INSTRUCTION -------------------------------------+-------------------------------------- Reporter: macports@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: bash | -------------------------------------+-------------------------------------- Changes (by raimue@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r70914, as [http://lists.gnu.org/archive/html/bug- bash/2010-08/msg00157.html discussed on bash-bug]. -- Ticket URL: <http://trac.macports.org/ticket/25693#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts