Gabríel Arthúr Pétursson <gabriel.arthur.peturs...@advania.is> writes:
> Executing the following results in a fierce crash:
>
>    $ bash -c '{0..255}.{0..255}.{0..255}.{0..255}'
>    malloc(): unaligned fastbin chunk detected 2
>    Aborted (core dumped)

As others have noted, you are attempting to construct 2^32 words.  Now
it's probable that you could run it on a computer with enough RAM to do
the job.  (I work with ones that have 128 GiB.)  But the indexes
involved are large enough that they are likely overflowing various
32-bit counters/pointers.  So bash dies on an internal error in
malloc().

Dale

Reply via email to