Opened 13 years ago

Closed 13 years ago

#29425 closed defect (fixed)

php5-apc: Fatal error: Unknown: apc_fcntl_unlock failed

Reported by: fly.captain@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), Garfield-fr (Bertrand Zuchuat), bettybronner@…, richard@…, pixilla (Bradley Giesbrecht)
Port: php5-apc

Description

Hi,

After upgraded php5-apc 3.1.7 to 3.1.8, I've this error (with PHP as Apache2 module)

Fatal error: Unknown: apc_fcntl_unlock failed: in Unknown on line 0

The error is reported too in the PECL tracker :

http://pecl.php.net/bugs/bug.php?id=22688

Fabien

Attachments (1)

patch-Portfile.diff (291 bytes) - added by pixilla (Bradley Giesbrecht) 13 years ago.
--enable-apc-spinlocks

Download all attachments as: .zip

Change History (18)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Cc: ryandesign@… added
Port: php5-apc added
Summary: php5-apc 3.18php5-apc @3.18 - Fatal error: Unknown: apc_fcntl_unlock failed

Please remember to fill in the Port field, and please use a summary that describes the problem.

comment:2 Changed 13 years ago by Garfield-fr (Bertrand Zuchuat)

Cc: bertrand.zuchuat@… added

Cc Me!

comment:3 Changed 13 years ago by Garfield-fr (Bertrand Zuchuat)

is it possible to reinstall APC-3.1.7 with a port command ?

I tested "port install php5-apc @3.1.7" but port install the last version.

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: bettybronner@… added
Resolution: fixed
Status: newclosed

comment:6 Changed 13 years ago by Garfield-fr (Bertrand Zuchuat)

Hi,

I upgraded with the last version 3.1.9 but i have the same problem.

Thanks for your help

comment:7 Changed 13 years ago by richard@…

CC Plz. 3.1.9 has the same problem with me as well.

comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: richard@… added
Resolution: fixed
Status: closedreopened
Summary: php5-apc @3.18 - Fatal error: Unknown: apc_fcntl_unlock failedphp5-apc: Fatal error: Unknown: apc_fcntl_unlock failed

If you want to be Cc'd on a ticket, you generally use the "Cc me" button at the top of the ticket.

Please report this problem to the developer(s) of apc so they can fix it.

comment:9 Changed 13 years ago by richard@…

Cc: richard@… removed

Cc Me!

comment:10 Changed 13 years ago by richard@…

Cc: richard@… added

Cc Me!

comment:11 in reply to:  8 Changed 13 years ago by richard@…

Replying to ryandesign@…:

If you want to be Cc'd on a ticket, you generally use the "Cc me" button at the top of the ticket.

Please report this problem to the developer(s) of apc so they can fix it.

Oh - Thx *blush*

comment:12 Changed 13 years ago by andreas@…

It's already reported in apc:

http://pecl.php.net/bugs/bug.php?id=22688

Check Rasmus (creator of PHP and APC) comments about

[2011-05-17 20:30 UTC] rasmus at php dot net
Are you guys explicitly enabling fcntl locking? If so, why? 
It shouldn't break, obviously, but there are much faster 
locking mechanisms available.

Try: --enable-apc-pthreadrwlocks
or --enable-apc-pthreadmutex (which is the default)

and

[2011-05-17 21:48 UTC] rasmus at php dot net
Well, we switched the default away from fcntl locking years 
ago. I'll see if I can track down why it is failing, but I 
haven't used that slow locking mechanism in many many years.

comment:13 Changed 13 years ago by pixilla (Bradley Giesbrecht)

As reported here:
http://pecl.php.net/bugs/bug.php?id=22688

switching to spinlocks should work till a better solution emerges.

Changed 13 years ago by pixilla (Bradley Giesbrecht)

Attachment: patch-Portfile.diff added

--enable-apc-spinlocks

comment:14 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: pixilla@… added

I committed Brad's patch in r78756. Does that help?

comment:15 in reply to:  14 Changed 13 years ago by fly.captain@…

Replying to ryandesign@…:

I committed Brad's patch in r78756. Does that help?

Yes, that works. Thanks.

comment:16 Changed 13 years ago by andreas@…

Should this be closed now or?

comment:17 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.