Debian Developers - bash 3.0 breaks other packages

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > July 2004 > bash 3.0 breaks other packages





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author bash 3.0 breaks other packages
Blars Blarson

2004-07-30, 2:48 am

The new bash in sid, when used as /bin/sh, breaks compatability with
every other bourne-compatable shell (including posh and dash) on the
syntax of the trap builtin. This breaks at least two other packages,
(cnews and sendmail) and I feel should be release-critical. Matthias
Klose <doko@debian.org> has downgraded the bug to important. This is
bug 261948.

Such changes should not be made immediatly before the freeze, it will
probably take us months to track down all the places the old bourne
syntax (rather than the modified posix one) of trap is used.

--
Blars Blarson blarson@blars.org
http://www.blars.org/blars.html
With Microsoft, failure is not an option. It is a standard feature.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Eduard Bloch

2004-07-30, 2:48 am

#include <hallo.h>
* Blars Blarson [Fri, Jul 30 2004, 12:09:42AM]:

> The new bash in sid, when used as /bin/sh, breaks compatability with
> every other bourne-compatable shell (including posh and dash) on the
> syntax of the trap builtin. This breaks at least two other packages,
> (cnews and sendmail) and I feel should be release-critical. Matthias
> Klose <doko@debian.org> has downgraded the bug to important. This is
> bug 261948.


Sorry, it does break compatibility with BROKEN stuff. Symptoms very
similar to the errno.h problem and should IMO be fixed the same way:
allow the broken syntax but spew dangerous looking error messages.

> Such changes should not be made immediatly before the freeze, it will
> probably take us months to track down all the places the old bourne
> syntax (rather than the modified posix one) of trap is used.


In the current form, it is a time bomb. However, it should not be a
problem to scan all packages and file bugs against those with broken
syntax (so it has been done with libdb2 poisoned files, IIRC).

Regars,
Eduard.
--
Und hier noch eine wichtige Verkehrsdurchsage: Der Idiot, der auf der
Autobahn A9 in falscher Richtung fuhr, klebt jetzt am Kühler eines
Lasters und fährt wieder in richtiger Richtung.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Steve Langasek

2004-07-30, 2:48 am

On Fri, Jul 30, 2004 at 09:29:25AM +0200, Eduard Bloch wrote:
> #include <hallo.h>
> * Blars Blarson [Fri, Jul 30 2004, 12:09:42AM]:


[vbcol=seagreen]
> Sorry, it does break compatibility with BROKEN stuff. Symptoms very
> similar to the errno.h problem and should IMO be fixed the same way:
> allow the broken syntax but spew dangerous looking error messages.


It doesn't really matter whose side of the argument the standard is on;
these are not the kinds of changes we want to be introducing in the
default shell the week before a freeze.

As it happens, the bash upload comes too late to meet the freeze
deadline for base, so there's no real reason to consider this an RC bug
in bash -- it's not a change that's getting into sarge, regardless of
the bug severity.

And if all the other shells in sarge that provide /bin/sh also support
this syntax, it also doesn't matter for sarge whether those scripts are
depending on non-POSIX features. It appears that any packages that
break because of bash 3.0's "trap" handling should have serious bugs
filed against them; but it would be appropriate to tag these bugs
sarge-ignore as well.

[vbcol=seagreen]
> In the current form, it is a time bomb. However, it should not be a
> problem to scan all packages and file bugs against those with broken
> syntax (so it has been done with libdb2 poisoned files, IIRC).


Bear in mind that it's possible to call trap with two arguments and have
both of them be sigspecs. This makes it easy to miss problem scripts
when scanning the archive.

--
Steve Langasek
postmodern programmer

Thomas Skybakmoen

2004-07-30, 7:53 am

Regarding the freeze, is it possible to make a shoter deadline, hey we start
the freeze in 5 days, hurry up or..

There has been several attemts to make a debian freeze, that has not worked,
last desember was one..

But this is like totaly insane, cause one need a "start" freeze to get
packages in that will give the system a complete feal to it. several
packages are not uptodate, while others are, depending on the maintainer,
paople are on holliday and this just urrrgh

________________________________________
_________________________
Last ned MSN Messenger gratis http://www.msn.no/computing/messenger - Den
raskeste veien mellom deg og dine venner


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Matthias Klose

2004-07-30, 5:52 pm

Blars Blarson writes:
> The new bash in sid, when used as /bin/sh, breaks compatability with
> every other bourne-compatable shell (including posh and dash) on the
> syntax of the trap builtin. This breaks at least two other packages,
> (cnews and sendmail) and I feel should be release-critical. Matthias
> Klose <doko@debian.org> has downgraded the bug to important. This is
> bug 261948.


bash-3.0-3 is uploaded reverting the behaviour temporarily to the old
behaviour. I'll revert that change after sarge is released. For that
reason I'm downgrading the severity of bug reports reported against
packages failing on the new behaviour.

Matthias

FYI, various alpha/beta/rc bash-3.0 versions have been available for
testing for Debian developers since the end of 2003.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Colin Watson

2004-07-30, 5:52 pm

On Fri, Jul 30, 2004 at 01:06:29PM +0000, Thomas Skybakmoen wrote:
> Regarding the freeze, is it possible to make a shoter deadline, hey we
> start the freeze in 5 days, hurry up or..


http://lists.debian.org/debian-deve...7/msg00016.html

--
Colin Watson [cjwatson@flatline.org.uk]


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com