This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Fix error handling of Create_Task when thread creation failed
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Arnaud Charlet" <charlet at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 29 Mar 2008 13:46:58 +0100
- Subject: Re: [Ada] Fix error handling of Create_Task when thread creation failed
- References: <20080326080501.GA14458@adacore.com>
On Wed, Mar 26, 2008 at 9:05 AM, Arnaud Charlet <charlet@adacore.com> wrote:
> Tested on i686-linux, committed on trunk
>
> Fix error handling of Create_Task when thread creation failed (e.g. when
> resources are exhausted), and the run-time attempted operations on a non
> existing thread, leading to SEGV or hangs.
> The program below should run silently to completion (all tasks will receive
> a tasking_error exception and terminate silently):
>
> See gnat.dg/too_many_tasks.adb
Did you serioulsy add a fork-bomb to the gcc testsuite with that?? Because this
test times out for me and in a parallel make check I see spurious
sh: fork: Resource temporarily unavailable^M
...
/space/rguenther/obj/gcc/as: fork: Resource temporarily unavailable
etc.
also testcases need an entry in testsuite/ChangeLog.
Thanks,
Richard.
> 2008-03-26 Arnaud Charlet <charlet@adacore.com>
> * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
> s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
> s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
> or task info if the thread could not be created.
>
>