bug-coreutils
[Top][All Lists]
Advanced

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

bug#13258: bug in ln.


From: Joshua Rogers
Subject: bug#13258: 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:
<http://bugs.launchpad.net/gdb-linaro/>...
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 <http://www.internot.info/docs/gpg_pubkey.asc.gpg>


reply via email to

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