You are not logged in.

#1 2014-02-28 06:14:38

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

[solved] Me pipes are busted

After todays update of bash piping anything to anything just hangs, doesn't ever complete or even fail.
e.g. ls | wc -l    printf "hello\n there" | grep hello

Downgrading bash to  4.2.045-5 fixes it.

Last edited by moetunes (2014-02-28 07:51:38)


You're just jealous because the voices only talk to me.

Offline

#2 2014-02-28 06:19:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Me pipes are busted

Works here.

Offline

#3 2014-02-28 06:35:08

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted

I updated this morning, shutdown the laptop, did some stuff and fired the laptop up again and when I tried to do any piping in the terminal it would never do anything. I downgraded bash and rebooted and piping worked again. Don't know what else it could be...


You're just jealous because the voices only talk to me.

Offline

#4 2014-02-28 06:36:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [solved] Me pipes are busted

something in your ~/.bashrc, maybe?

Offline

#5 2014-02-28 06:50:18

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted

Unless it is the check for running interactively don't see what it could be(have been using this .bashrc for a while now)

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

shopt -s checkwinsize

export EDITOR=vim
export PAGER=less
# export BROWSER=firefox
export HISTCONTROL=ignoredups
export HISTFILESIZE=2000
export HISTIGNORE="su:exit:top:Q:q:logout:cd:cd ..*:ls:clear:gm*:ggm*:rm*"
# export _JAVA_AWT_WM_NONREPARENTING=1

complete -cf sudo
complete -r mplayer

# Supercharge 'less'
eval $(lesspipe.sh)

alias sudo='sudo '
alias ls='ls --color=auto'
alias Q='exit'
alias make='nice -n 10 make -j 5'
alias rm='rm -v'
alias stab='killall -v'
alias allmail='clear;ggmail_check m; sleep 2; gmail_check m'
alias wandm='allmail && weather'
alias xmms='XLIB_SKIP_ARGB_VISUALS=1 xmms -e'
alias cmtrix='cmatrix -a -b -C blue'
alias mpll='mpv -ao alsa'
alias mphd='mplayer -ao alsa -vfm ffmpeg -lavdopts fast:skiploopfilter=all'
alias ssh='ssh -C4c arcfour,blowfish-cbc'
alias ttp='textpad'
alias dmesg='dmesg -L'

#PS1='[\u@\h \W]\$ '
#PS1='\n\D{%l:%M:%S %P}\n\[\033[01;34m\][\u@\h \W]\[\033[00m\]$ '
#PS1='\n\[\033[0;33m\]\D{%l:%M:%S %P}\n\[\033[01;34m\] [ \[\033[01;37m\]\W\[\033[01;34m\] ]\[\033[1;33m\]$\[\033[00m\] '
PS1='\n\[\033[0;33m\]\D{%l:%M:%S %P}\n\[\033[01;34m\] [ \[\033[01;37m\]\W\[\033[01;34m\] ]\[\033[1;33m\]$\n\342\224\224\342\224\200\342\224\200\342\225\274\[\033[00m\] '
case "$TERM" in
xterm*|rxvt*)
    # Show the currently running command in the terminal title:
    # http://www.davidpashley.com/articles/xterm-titles-with-bash.html
    show_command_in_title_bar()
    {
        case "$BASH_COMMAND" in
            *\033]0*)
                # The command is trying to set the title bar as well;
                # this is most likely the execution of $PROMPT_COMMAND.
                # In any case nested escapes confuse the terminal, so don't
                # output them.
                ;;
            *)
                echo -ne "\033]0;${BASH_COMMAND}\007"
                ;;
        esac
    }
    trap show_command_in_title_bar DEBUG
    ;;
*)
    ;;
esac

You're just jealous because the voices only talk to me.

Offline

#6 2014-02-28 07:01:45

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [solved] Me pipes are busted

I would try it with the default bashrc and see if it works, easy way to eliminate a variable.

Offline

#7 2014-02-28 07:06:58

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted

Found out is the trap line near the bottom. That has worked well for ages and I can't find anything in bash's changelog that is relevant to it...


You're just jealous because the voices only talk to me.

Offline

#8 2014-02-28 07:10:31

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted

Thanks to jasonwryan

bash changelog wrote:

Fixed a bug caused by executing an external program from the DEBUG trap
    while a pipeline was running.  The effect was to disturb the pipeline
    state, occasionally causing it to hang


You're just jealous because the voices only talk to me.

Offline

#9 2014-02-28 07:10:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Me pipes are busted

See http://gnu-bash.2382.n7.nabble.com/Bash … 12531.html and a few others.

Last edited by karol (2014-02-28 07:12:49)

Offline

#10 2014-02-28 07:50:58

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted

Confirmed in #bash as a bash bug. Bug report filed with them.
Thanks for the swift interest and replies.

Cheers


You're just jealous because the voices only talk to me.

Offline

#11 2014-02-28 09:33:26

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [solved] Me pipes are busted

I saw the report.  I will pull the patch when it gets posted.

Offline

#12 2014-02-28 10:54:18

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: [solved] Me pipes are busted

I am also using the same script as motunes to show the title in urxvt. Need to hold bash from update?

Offline

#13 2014-02-28 11:15:08

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted

yes, or comment the trap line or don't use pipes


You're just jealous because the voices only talk to me.

Offline

#14 2014-02-28 11:35:39

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted

On a side note, bashbug fails without rmail being installed and rmail isn't in the repos.

/usr/bin/bashbug: line 266: rmail: command not found
/usr/bin/bashbug: mail failed: report saved in /home/pnewm/dead.bashbug

I found the appropriate mailing list and sent the dead.bashbug file there.

Last edited by moetunes (2014-02-28 11:38:19)


You're just jealous because the voices only talk to me.

Offline

#15 2014-02-28 12:01:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [solved] Me pipes are busted

moetunes wrote:

bashbug fails without rmail being installed and rmail isn't in the repos.

I don't know anything about how these would go together - but it seems rmail is in the repos:

$ pkgfile rmail
community/exim

$ pkgfile -l exim | grep rmail
community/exim	/usr/bin/rmail

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#16 2014-02-28 12:17:16

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [solved] Me pipes are busted

easysid wrote:

I am also using the same script as motunes to show the title in urxvt. Need to hold bash from update?

I'm not expecting bash to be rushed from [testing]...

Offline

#17 2014-02-28 12:31:20

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted

Thanks for that Trilby, I should install pkgfile but I don't seem to need it often enough...
I just did a pacman -Ss rmail.
I'll see if I can have the bash people include their bugs mailing address in the error message for when rmail isn't found. It would save having it as a dependency and people having to search for the mailing list


You're just jealous because the voices only talk to me.

Offline

#18 2014-02-28 21:35:42

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted

I was sent a patch so I built bash with it and all seems to be good now.


You're just jealous because the voices only talk to me.

Offline

#19 2014-02-28 21:54:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] Me pipes are busted

It might pay to pastebin the patch, just in case others find themselves in the same boat.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#20 2014-02-28 22:01:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Me pipes are busted

Offline

#21 2014-02-28 22:03:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] Me pipes are busted

smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#22 2014-02-28 22:07:58

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [solved] Me pipes are busted


You're just jealous because the voices only talk to me.

Offline

#23 2014-03-10 09:37:35

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [solved] Me pipes are busted

Gentoo's just added some patches, for bash and readline.

Offline

Board footer

Powered by FluxBB