[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#13258: closed (bug in ln.)

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#13258: closed (bug in ln.)
Date: Sun, 23 Dec 2012 17:35:02 +0000

Your message dated Sun, 23 Dec 2012 09:34:18 -0800
with message-id <address@hidden>
and subject line Bash loops and otherwise mishandles long lines
has caused the debbugs.gnu.org bug report #13258,
regarding bug in ln.
to be marked as done.

(If you believe you have received this mail in error, please contact

13258: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13258
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: bug in ln. Date: Sun, 23 Dec 2012 15:40:01 +1100 User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0
ln bug.

$ gdb ln
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /bin/ln...(no debugging symbols found)...done.
(gdb) run `perl -e 'print "x"x(2**31)'` `perl -e 'print "x"x(2**30)'`
Starting program: /bin/ln `perl -e 'print "x"x(2**31)'` `perl -e 'print "x"x(2**30)'`
/bin/bash: xrealloc: ../bash/subst.c:5179: cannot allocate 18446744071562067968 bytes (4295012352 bytes allocated)
During startup program exited with code 2.

Doing it without gdb, it just crashes the console.
Inside `screen` it crashes that one screen (say you have two "tabs" in the screen, it only crashes the one tab)
Bug can be reproduced like this:
/bin/ln `perl -e 'print "x"x(2**31)'` `perl -e 'print "x"x(2**30)'`

K, thanks.

Joshua Rogers - Retro Game Collector && IT Security Specialist
gpg pubkey

--- End Message ---
--- Begin Message --- Subject: Bash loops and otherwise mishandles long lines Date: Sun, 23 Dec 2012 09:34:18 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0
Here's how to reproduce the problem:

(printf 'ln '
 perl -e 'print "x"x(2**31)'
 printf ' '
 perl -e 'print "x"x(2**30)'
 printf '\n'
) >bigscript
bash bigscript

On my x86-64 host, Bash loops, seemingly forever.
I expect it's using a 32-bit integer to keep track
of line lengths, somewhere.

This bug report was inspired by the following report:


That bug report is against coreutils, but the real
bug was in bash, so I'm closing bug 13258 and forwarding
this to address@hidden

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]