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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 11.0.10-oracle
    • hotspot
    • None
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: