Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8268605

[warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 11.0.10-oracle
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Sometimes when running JDK11+ in CI I see:

      [11.028s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 2048k, guardsize: 0k, detached.

      What does this warning mean, and why is it shown by default (on JDK11+, not on JDK8)?
      The application does continue to run after the warning, so I think pthread_create() was retried and succeeded.

      It would be useful if this warning also showed the thread name.

      If it's literally pthread_create() returning EAGAIN, is there any point to show this warning by default if retrying pthread_create() works? I would think not.

      To make it worse, this is output on STDOUT, and so messes up the application output, and causes transient CI failures, while there seems to be no semantic problem.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bdaloze Benoit Daloze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: