php-debuginfo

Support/Development for PHP
chrismcb
Forum Regular
Forum Regular
Posts: 293
Joined: Tue Nov 23, 2010 7:30 am
Location: Glasgow, UK

php-debuginfo

Unread post by chrismcb »

Can I request that a php-debuginfo package be generated with the next PHP release please?

I did request it through the support portal relating to an issue I'm having, but have now been asked to post it on the forum.


Thanks
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: php-debuginfo

Unread post by scott »

mkay
chrismcb
Forum Regular
Forum Regular
Posts: 293
Joined: Tue Nov 23, 2010 7:30 am
Location: Glasgow, UK

Re: php-debuginfo

Unread post by chrismcb »

Hi Scott,

I just updated today with the latest PHP release... any chance the php-debuginfo package can be rolled for this version?


Thanks
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: php-debuginfo

Unread post by scott »

afraid it doesnt look like it can be done any more.
chrismcb
Forum Regular
Forum Regular
Posts: 293
Joined: Tue Nov 23, 2010 7:30 am
Location: Glasgow, UK

Re: php-debuginfo

Unread post by chrismcb »

Pity - any other suggestions as to nail down what from PHP is causing a segfault on a multi-vhost system?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: php-debuginfo

Unread post by scott »

If you want to take a crack at it, you can enable-debug in the source rpm and then rebuild it. Otherwise, Id start backing out all the modules one by one to see if you can narrow the search.
chrismcb
Forum Regular
Forum Regular
Posts: 293
Joined: Tue Nov 23, 2010 7:30 am
Location: Glasgow, UK

Re: php-debuginfo

Unread post by chrismcb »

Hi Scott,

Back to this again - I'm getting more and more intermittent segfaults and need to get the source pinned down to resolve it.

Having never compiled my own version of PHP, do you have any pointers on how to proceed from here?

I'd ideally like to include all of the tweaks and fixes that you have included in your version - is your source available? Or must I use the official PHP sources?


I'm guessing at https://www6.atomicorp.com/channels/sou ... rt.src.rpm but I believe I also need a "spec" file?
Which should I be using from https://www6.atomicorp.com/channels/source/php/


Any help you can offer would be appreciated.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: php-debuginfo

Unread post by scott »

Yup thats it, I believe you have to enable the debug symbols in the package itself. Its a little different from the way it used to be now, so I dont know the exact way to get it in place with 5.3 like I did with 5.1.
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: php-debuginfo

Unread post by BruceLee »

I don't know if you checked it already but maybe Valgrind or gdb is something for you?
chrismcb
Forum Regular
Forum Regular
Posts: 293
Joined: Tue Nov 23, 2010 7:30 am
Location: Glasgow, UK

Re: php-debuginfo

Unread post by chrismcb »

Thanks BruceLee - I'm attempting to use gdb, however it needs the debug symbols for PHP to narrow it down to the causing file.
Not heard of Valgrind, but will take a look at it now.

Scott, I'll try it out when I next get the chance and hopefully pinpoint the issue.


Thanks
chrismcb
Forum Regular
Forum Regular
Posts: 293
Joined: Tue Nov 23, 2010 7:30 am
Location: Glasgow, UK

Re: php-debuginfo

Unread post by chrismcb »

OK, finally got my head round building my own PHP version built with the --enable-debug flag

So far, this is what I did:

Code: Select all

rpmbuild -ba php.spec
error: /root/php/php.spec:729: parseExpressionBoolean returns -1
error: Failed build dependencies:
        xorg-x11-devel is needed by php-5.3.21-14.x86_64

Code: Select all

No package xorg-x11-devel available.
Searching Google, I believe xorg-x11-devel has been split up into modules of xorg-x11-*-devel

Stumbling at the last hurdle, but can anyone point me as to how to resolve this last dependancy?
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: php-debuginfo

Unread post by BruceLee »

I think you have to change that part as well since the package xorg-x11-devel was changed to many single packages
which will also lead to other dependencies. see this post:
http://www.centos.org/modules/newbb/vie ... 0&forum=37

Maybe Scott can clarify if thats the best way to go.
chrismcb
Forum Regular
Forum Regular
Posts: 293
Joined: Tue Nov 23, 2010 7:30 am
Location: Glasgow, UK

Re: php-debuginfo

Unread post by chrismcb »

BruceLee wrote: I think you have to change that part as well since the package xorg-x11-devel was changed to many single packages
which will also lead to other dependencies. see this post:
http://www.centos.org/modules/newbb/vie ... 0&forum=37
Yeah, that's the post I found too - but since this is an up to date php build and spec file, I assume the dependencies can somehow be resolved?

Or does xorg-x11-devel become marked as installed when all of the separate single packages are installed too?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: php-debuginfo

Unread post by scott »

save yourself some time, and build this with mock
chrismcb
Forum Regular
Forum Regular
Posts: 293
Joined: Tue Nov 23, 2010 7:30 am
Location: Glasgow, UK

Re: php-debuginfo

Unread post by chrismcb »

OK, here was me thinking I was making progress too!

I've downloaded mock and configured user access etc, but even more confused now.

I assumed you needed a src.rpm file and a spec file to build an installable rpm file?

I have the src.rpm file installed and the php.spec file, but not sure what I've to do with mock?
Its options are either to build a new src.rpm file with --buildsrpm and specify a spec file - or rebuild with --rebuild.


Confused here now... Scott, can you help with some guidance?


Thanks
Post Reply