C++ Logo


Advanced search

Re: [std-proposals] set_new_handler extension

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 20 Feb 2023 09:14:13 -0800
On Saturday, 18 February 2023 20:39:37 PST Phil Bouchard via Std-Proposals
> So case closed, I proved my point. The only hope left is to amend the
> C++ standards.

You've proven absolutely nothing. Your program crashes on Windows because of
stack overflows. Your program places this on the stack:

    unique_ptr<char []> buffer[1024 * 256];
That's 2 MB, which is more than the default thread stack size on Windows.
After I added -Wl,--stack,8388608 to my MinGW build of this application, it
ran fine on Windows.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-02-20 17:14:16