Bug report: Core dump with too many args

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug report: Core dump with too many args

Ole Tange
I get core dump when running:

$ /bin/echo `seq 1000000`
Segmentation fault (core dumped)

This also looks bad:

$ /bin/wc `seq 1000000`
      2 [main] -bash 15396 C:\cygwin\bin\bash.exe: *** fatal error - cmalloc would have returned NULL
Hangup


Versions:

$ bash --version
GNU bash, version 4.4.12(3)-release (i686-pc-cygwin)
Copyright (C) 2016 Free Software Foundation, Inc.
Licens GPLv3+: GNU GPL version 3 eller senere <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.

$ /bin/echo --version
echo (GNU coreutils) 8.26
Packaged by Cygwin (8.26-2)
Copyright (C) 2016 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.

Written by Brian Fox and Chet Ramey.

$ /bin/wc --version
wc (GNU coreutils) 8.26
Packaged by Cygwin (8.26-2)
Copyright (C) 2016 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.

Written by Paul Rubin and David MacKenzie.


Kind regards,

Ole Tange
It political advisor
[hidden email]<mailto:[hidden email]>
Encrypted mobile (Signal): +45 28 93 97 98


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Bug report: Core dump with too many args

Steven Penny
On Wed, 7 Nov 2018 13:37:53, Ole Tange wrote:

> I get core dump when running:
>
> $ /bin/echo `seq 1000000`
> Segmentation fault (core dumped)
>
> This also looks bad:
>
> $ /bin/wc `seq 1000000`
>       2 [main] -bash 15396 C:\cygwin\bin\bash.exe: *** fatal error - cmallo=
> c would have returned NULL
> Hangup

Not sure what you are expecting to happen when you provide pathological input to
the shell? For context - Fedora essentially does the same thing:

    $ /bin/echo `seq 1000000`
    Killed


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Bug report: Core dump with too many args

Achim Gratz
In reply to this post by Ole Tange
Ole Tange writes:

> I get core dump when running:
>
> $ /bin/echo `seq 1000000`
> Segmentation fault (core dumped)
>
> This also looks bad:
>
> $ /bin/wc `seq 1000000`
>       2 [main] -bash 15396 C:\cygwin\bin\bash.exe: *** fatal error - cmalloc would have returned NULL
> Hangup

They both just segfault with a stacktrace on my work laptop.  OTOH, both
succeed on our server, which admittedly has much more physical memory
(128GB), with lots of it free while I ran the commands.

So I guess the only real complaint is that the out-of-memory condition
should take precedence over other faults, or did you have something else
in mind?


Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple