This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Ada] Fix error handling of Create_Task when thread creation failed


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.
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]