[Bug 1583269] Re: Bash dies with a SIGABRT sporadically when doing 'read -N INTEGER'.
xhienne
1583269 at bugs.launchpad.net
Mon Jun 19 15:33:43 UTC 2017
Affects trusty too. A quick way to reproduce this is (works 9 times out of 10 here):
$ bash -c 'read -N 10000000' < /dev/urandom
Trusty output:
$ bash -c 'read -N 10000000' < /dev/urandom
malloc: ../.././builtins/../.././builtins/read.def:603: assertion botched
realloc: start and end chunk sizes differ
Aborting...Aborted
Xenial output:
$ bash -c 'read -N 10000000' < /dev/urandom
malloc: ../.././builtins/../.././builtins/read.def:617: assertion botched
realloc: start and end chunk sizes differ
Aborting...Aborted
** Tags added: trusty
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1583269
Title:
Bash dies with a SIGABRT sporadically when doing 'read -N INTEGER'.
Status in bash package in Ubuntu:
Confirmed
Bug description:
Bash sometimes dies with a SIGABRT on the command
read -N $N < /dev/urandom
where $N represent an integer >=1.
It occurs frequently for high values of N (>2**20).
It occurs rarely for low values of N (<2**20).
It has occurred more than once with a value of N as low as 128!
With N=2**21, this command aborts approximately 5 out of 10 tries.
( read -N 2097152 < /dev/urandom )
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: bash 4.3-14ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Wed May 18 12:24:28 2016
DistributionChannelDescriptor:
# This is a distribution channel descriptor
# For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
canonical-oem-formosa-beigang-precise-amd64-20130801-1
InstallationDate: Installed on 2016-01-23 (116 days ago)
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20130801-07:00
SourcePackage: bash
UpgradeStatus: Upgraded to xenial on 2016-04-22 (26 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1583269/+subscriptions
More information about the foundations-bugs
mailing list