Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-39577

APC/PHP fatal error: unable to obtain pthread lock (EDEADLK)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • None
    • 2.5
    • Caching
    • None
    • MOODLE_25_STABLE

    Description

      I installed APC on MACOSX. I noticed some fatal errors that do NOT crash anything - all my Moodle sites seem to work correctly whenever these errors appears in my php error logs:

      [Mon May 06 14:51:02 2013] [error] [client 127.0.0.1] PHP Fatal error: Unknown: unable to obtain pthread lock (EDEADLK) in Unknown on line 0, referer: http://jerome.moodle.local/~jerome/stable24/

      [Mon May 06 14:56:10 2013] [error] [client 127.0.0.1] PHP Fatal error: require(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/stable24/theme/styles_debug.php on line 28, referer: http://jerome.moodle.local/~jerome/stable24/admin/registration/register.php?sesskey=A9P2Goxjs4&huburl=http%3A%2F%2Fjerome.moodle.local%2F~jerome%2Fmaster%2Fadmin&password=&hubname=
      [Mon May 06 15:14:57 2013] [error] [client 127.0.0.1] PHP Fatal error: require(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/stable24/theme/styles_debug.php on line 28, referer: http://jerome.moodle.local/~jerome/stable24/admin/index.php

      Wed May 08 15:21:20 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/master/cache/lib.php on line 36, referer: http://jerome.moodle.local/~jerome/master/admin/modules.php
      Wed May 08 15:21:20 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/master/lib/setup.php on line 504, referer: http://jerome.moodle.local/~jerome/master/admin/modules.php

      [Fri May 03 17:23:16 2013] [error] [client 127.0.0.1] PHP Fatal error: require(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/integration/theme/image.php on line 32, referer: http://jerome.moodle.local/~jerome/integration/theme/index.php?device=default&sesskey=aGNl4fft7n
      [Fri May 03 17:24:04 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/integration/lib/setup.php on line 493, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2
      [Fri May 03 17:24:09 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/integration/lib/setup.php on line 494, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2
      [Fri May 03 17:24:09 2013] [error] [client 127.0.0.1] PHP Fatal error: Unknown: unable to obtain pthread lock (EDEADLK) in Unknown on line 0, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2
      [Fri May 03 17:24:09 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/integration/lib/setup.php on line 494, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2
      [Fri May 03 17:24:09 2013] [error] [client 127.0.0.1] PHP Fatal error: Unknown: unable to obtain pthread lock (EDEADLK) in Unknown on line 0, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2
      [Fri May 03 17:24:09 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/integration/lib/setup.php on line 492, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2
      [Fri May 03 17:24:10 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/integration/cache/classes/config.php on line 195, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2
      [Fri May 03 17:24:11 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/integration/config.php on line 27, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2
      [Fri May 03 17:24:19 2013] [error] [client 127.0.0.1] PHP Fatal error: require(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/integration/lib/adminlib.php on line 6377, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2
      [Fri May 03 17:24:19 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Users/jerome/Sites/integration/cache/classes/config.php on line 195, referer: http://jerome.moodle.local/~jerome/integration/course/view.php?id=2

      I suppose it's only APC that stops as my sites are still as slow as usual. I did not look much more than quickly googling "EDEADLK". I deduced that it's a problem with my config. I'm writing this tracker issue in case it's not a config issue but something important that you may want to know...

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda (Inactive)
              jerome Jérôme Mouneyrac
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.