# assistance debuging PHP required.

- Thread: https://externals.io/message/19099
- Original archive: https://news-web.php.net/php.internals/19099
- Started by D. Walsh on 2005-09-20T00:10:05+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #19099 — D. Walsh — 2005-09-20T00:10:05+00:00

URL: https://externals.io/message/19099#19099

I've been building for some time without incident however, when I  
include a module apache crashes.

I have gdb and while I can start apache with it, when it does crash  
I'm lost because I don't know what to do.

I've build the offending lilbrary with "-ggdb" and enabled debug in  
PHP as directed in the debug erraat at php.net.

My OS is Darwin/Mac OSX 10.4.2.

I've spoken to the person who wrote the library that is causing the  
problem but he claims that it's not his software that is at fault and  
frankly that is moot.

It could be the extension code but the person who wrote it said he  
couldn't help because he no longer supports it.

I know a little about programming and fixed a couple of minor issues  
with initialization of the library (what was noticeable that I could  
figure out).

Can someone help me resolve this issue please.

I can follow your specific instructions or allow you full access to  
the server in question.

-- Dale

---

## #19100 — Andrew Yochum — 2005-09-20T02:26:02+00:00

URL: https://externals.io/message/19099#19100 · In reply to: #19099

Hi Dale,


> I've been building for some time without incident however, when I  
> include a module apache crashes.
> 
> I have gdb and while I can start apache with it, when it does crash  
> I'm lost because I don't know what to do.

Here's a start... Fire up apache with the -X option using gdb and then
when it crashes run "backtrace" or "bt" at the gdb prompt.  That'll show
you where it is crashing in the source code.  From there, you can make
an somewhat educated guess at what code is at fault.

See:
    http://bugs.php.net/bugs-generating-backtrace.php

Tracking down the actual source of your problem will be a bit more
inovled.  There are a few decent gdb tutorials online that'll get you
started.

HTH,
Andrew
-- 
Andrew Yochum
Plexpod
andrew@plexpod.com
718-360-0879
