Bug 1147453 - at commands don't run
Summary: at commands don't run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Oprala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-29 09:35 UTC by Matan Ziv-Av
Modified: 2016-02-01 02:10 UTC (History)
9 users (show)

Fixed In Version: 3.1.16-1
Clone Of:
Environment:
Last Closed: 2015-06-01 07:57:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Spool file created by at (6.12 KB, text/plain)
2014-09-29 09:46 UTC, Matan Ziv-Av
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1146958 0 unspecified CLOSED after new bash-4.1.2-15.el6_5.2.x86_64 and environment-modules-3.2.10-1.el6_5.x86_64 installed results with at jobs stop... 2021-02-22 00:41:40 UTC

Internal Links: 1146958

Description Matan Ziv-Av 2014-09-29 09:35:52 UTC
Description of problem:

Commands spooled with "at" tool do not 

Version-Release number of selected component (if applicable):

at-3.1.13-14.fc20.x86_64

How reproducible:

Always

Steps to Reproduce:
1. at now + 1 minute
2. echo OK > filename
3. 

Actual results:

No file created.

Expected results:

file called filename created containing string OK.

Additional info:

This is the content of the error mail sent:
sh: line 89: syntax error near unexpected token `$'=\\(\\)\\ {\\ \\ eval\\ \\`/usr/bin/modulecmd\\ bash\\ \\$\\*\\`"\n"}''
sh: line 89: `"}; export BASH_FUNC_module()'

The problem appeared on 2014-09-27, though I did not use at for a few weeks before.

Might be related to recent bash changes.

Comment 1 Matan Ziv-Av 2014-09-29 09:46:30 UTC
Created attachment 942247 [details]
Spool file created by at

The spool file created by at, in case it is relevant.

Comment 2 Tomas Mraz 2014-09-29 10:03:55 UTC
Where is the BASH_FUNC_module() environment variable coming from? This does not look like at problem but something wrong in your system.

Comment 3 Matan Ziv-Av 2014-09-29 10:09:35 UTC
13:06:56:/mnt/video/disk/b/15/03$ rpm -qf /etc/profile.d/modules.sh 
environment-modules-3.2.10-6.fc20.x86_64
13:07:23:/mnt/video/disk/b/15/03$ cat /etc/profile.d/modules.sh
shell=`/bin/basename \`/bin/ps -p $$ -ocomm=\``
if [ -f /usr/share/Modules/init/$shell ]
then
  . /usr/share/Modules/init/$shell
else
  . /usr/share/Modules/init/sh
fi
13:07:32:/mnt/video/disk/b/15/03$ rpm -qf /usr/share/Modules/init/sh
environment-modules-3.2.10-6.fc20.x86_64
13:07:43:/mnt/video/disk/b/15/03$ cat /usr/share/Modules/init/sh

module() { eval `/usr/bin/modulecmd sh $*`; }

MODULESHOME=/usr/share/Modules
export MODULESHOME

if [ "${LOADEDMODULES:-}" = "" ]; then
  LOADEDMODULES=
  export LOADEDMODULES
fi

if [ "${MODULEPATH:-}" = "" ]; then
  MODULEPATH=`sed -n 's/[       #].*$//; /./H; $ { x; s/^\n//; s/\n/:/g; p; }' ${MODULESHOME}/init/.modulespath`
  export MODULEPATH
fi

Comment 4 Orion Poplawski 2014-09-30 03:36:49 UTC
I'd like to get the bash folk's take on this as the recent bash changes seem to have triggered this.  Previously we would end up with this in the environment:

module=() {  eval `/usr/bin/modulecmd bash $*`
}

now we get:

BASH_FUNC_module()=() {  eval `/usr/bin/modulecmd bash $*`
}

Comment 5 Orion Poplawski 2014-09-30 04:24:38 UTC
This actually does seem to be related to how at writes out the environment to the script that at generates and runs.  It ends up writing:

BASH_FUNC_module()=\\(\\)\\ {\\ \\ eval\\ \\`/usr/bin/modulecmd\\ bash\\ \\$\\*\\`\"
\"}; export BASH_FUNC_module()

which fails to parse:

bash: syntax error near unexpected token `=\\'

Not sure what it is supposed to do though.

Comment 6 Ondrej Oprala 2014-09-30 05:25:23 UTC
Hi and thanks for the report.
We are well aware of this issue. For the time being, please consider using a workaround my colleague suggests in https://bugzilla.redhat.com/show_bug.cgi?id=1147043#c8

Comment 7 Fedora End Of Life 2015-05-29 12:59:21 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Florian Weimer 2015-06-01 07:57:59 UTC
I believe this was fixed in:

* Thu Oct  2 2014 Tomáš Mráz <tmraz> - 3.1.16-1
- new upstream release fixing regression from security fix in bash
- drop sysvinit subpackage


Note You need to log in before you can comment on or make changes to this bug.