Opened 12 years ago
Last modified 9 years ago
#35267 new defect
php-gearman error for object pointer being freed was not allocated
Reported by: | chris@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | Cc: | pixilla (Bradley Giesbrecht), grkrysiak@…, ryandesign (Ryan Carsten Schmidt) | |
Port: | php-gearman |
Description
I can't get php54-gearman @1.0.2_2 to work properly. It builds fine, but when I try to utilize the Gearman PHP libraries it fails to run.
$ php54 Dispatch.php [ 1] Starting 25 workers php54(15382) malloc: *** error for object 0x10b892c58: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap: 6
Everything else in PHP seems to work normal. I have tried both php5 and php54. Both result in the same outcome.
Machine is brand new. Using Mac OS X 10.7.4, Xcode 4.3.3
Please let me know if I've included enough detail. I'm new around here.
Change History (9)
comment:1 Changed 12 years ago by pixilla (Bradley Giesbrecht)
Cc: | pixilla@… added |
---|
comment:2 Changed 12 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to rodney.rehm@… |
---|---|
Port: | php54-gearman added |
In the future, please fill in the Port field and Cc the port maintainer(s).
comment:3 Changed 12 years ago by pixilla (Bradley Giesbrecht)
chris: Is there a simple example that can be download for testing?
comment:4 Changed 12 years ago by chris@…
Got it.
What kind of example? PHP? The default code samples on the PHP website will reproduce the above.
http://www.php.net/manual/en/gearman.examples-reverse-bg.php
Also, it appears that the error only happens with the worker class. The client sample normally waits for a response from the worker, but it just dies with no error.
Christophers-MacBook-Pro:Sample chris$ php Worker.php Starting php(87054) malloc: *** error for object 0x10379cde0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap: 6 Christophers-MacBook-Pro:Sample chris$ php Worker.php Starting php(87060) malloc: *** error for object 0x109186de0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap: 6
comment:5 Changed 12 years ago by chris@…
Not sure what difference this makes, but I installed the PECL (I think from pear-CodeGen_PECL) to see if I could use the PECL installer. I tried versions pecl-gearman 1.0.2 (version that macports installs), 1.0.1, 1.0.1, and 0.8.1. All of these versions result with the same message above.
comment:6 Changed 12 years ago by roberto.carvajal@…
Hey guys, I have exactly the same problem and I tracked it down to libboost 1.50 and gearman 0.34, I noticed that I couldn't compile gearman 0.33 against libboost 1.50 (which I upgraded trough macports), the only solution was to downgrade libboost back to 1.47 and compile gearman 0.33 again, any other combination, even gearman 0.34 against libboost 1.47 failed.. just my 2¢ in case anyone else needs to have gearman running again quickly..
comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Port: | php-gearman added; php54-gearman removed |
Summary: | php54-gearman error for object pointer being freed was not allocated → php-gearman error for object pointer being freed was not allocated |
I do not get a crash when running the example scripts on the above web page. I just get errors presumably because I am not running a gearmand server.
Is anybody still seeing this problem with the current versions? If so please report the problem to the developers of gearmand; it doesn't sound like a MacPorts-specific problem.
comment:9 Changed 9 years ago by mf2k (Frank Schima)
Owner: | changed from rodney.rehm@… to macports-tickets@… |
---|
This port no longer has a maintainer. See #47536.
Cc Me!