Forums / General / Apache is segfaulting on |attribute(show)

Apache is segfaulting on |attribute(show)

Author Message

Andrew K

Sunday 01 July 2007 1:03:20 pm

This is really weird. My site is running great. But I'm trying to make a new template for a photo album. I have a variable that's an image object ($image) and when I do the following...

$image|attribute(show)

...it shows the attributes. But let's say I want to go a little deeper in the object. When I do this...

$image.data_map|attribute(show)

...Apache segfaults (11) and I get a zero size page.
I decided to try the following...

$image.data_map|attribute(show,1)

...worked great...

$image.data_map.name|attribute(show,1)

...worked great...

$image.data_map.image|attribute(show,1)

...Apache segfaults.

I've seen a number of segfault issues on the forums when people are first installing, but nothing like this. I've tried clearing my cache and that didn't do anything. I disabled my Zend Optimizer, but that had no effect.

Thoughts?

--Andrew

Heath

Sunday 01 July 2007 1:17:38 pm

Hello Andrew,

Not a bad level of message detail but you have omitted which version of php and apache you are really using or what platform your using.

These additional details may prove helpful to others to decipher your problem.

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Andrew K

Sunday 01 July 2007 1:37:24 pm

Hmm... still more interesting...

{$image.data_map.image.content|attribute(show,1)}

..works fine.

--Andrew

Andrew K

Sunday 01 July 2007 1:44:50 pm

Heath, good call. Sorry about that.

Apache/2.0.55
PHP 4.4.2-1build1 (apache mod)
Ubuntu Dapper

--Andrew

Heath

Sunday 01 July 2007 1:49:11 pm

Is this a stock eZ Publish 3.9.2 installation or a customized build of eZ?

Trying to understand what might be unique in your environment which may play a part in the problem. I do know that php 4.4.2 does have some problems which is why php 4.4.7 is recommended these days ...

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Andrew K

Sunday 01 July 2007 2:01:05 pm

I knew I forgot something. This is a stock 3.8.6 eZ install. I'll see about up grading php. I don't think that php version is in the the dapper repositories, but I may be able to find it elsewhere.

--Andrew

Bruce Morrison

Sunday 01 July 2007 4:22:03 pm

Hi Andrew

How do you know that apache is segfaulting? Are there any error messages in the apache logs?

Have you tried it with debugging on? What happens if you incrment the depth parameter e.g.
$image.data_map|attribute(show,2), $image.data_map|attribute(show,3) etc at what value does it stop working?

You might find that the system is simply running out of memory or reaching a timeout limit in retrieving all the information to the default depth (I think it's 5) - I take it that it's running OK apart from this issue?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Andrew K

Monday 02 July 2007 8:03:54 am

Hey Bruce.

Yeah, I'm getting Segfault (11) in my apache error logs when I get a zero response from the server.

So far {$image.data_map.image|attribute(show,1)} is where I've isolated the problem. But like I said before I can get to $image.data_map.image.content|attribute(show,1).

Fortunately I'm able to work around this little problem and get my template done. And the site is running just great. It's just a little weird. It very well could be my PHP version. But it looks like I'll have to compile a new version since I can't find 4.4.7 in a Dapper repository.

--Andrew