Apache coredump on Stop (559 Views)
Reply
Occasional Advisor
Chris J. Solarczyk
Posts: 13
Registered: ‎09-30-1999
Message 1 of 15 (559 Views)
Accepted Solution

Apache coredump on Stop

I just installed the latest version of Apache on an L-Class running HPUX 11. Apache starts up OK but when I stop the web server it produces a core dump. The stop seems to be successful but I'm left with an ugly core file on disk. Any ideas???

hpuxwsAPACHE A.2.0.55.02 HP-UX Apache-based Web Server

# ./apachectl stop
./apachectl[188]: 13683 Memory fault(coredump)
Honored Contributor
Alex Glennie
Posts: 4,068
Registered: ‎05-07-2000
Message 2 of 15 (559 Views)

Re: Apache coredump on Stop

post the output of the command "file core" would give us the name of what process caused the core.

patch levels upto date as per apache recommendations ? 11.00 or 11.11 ?

if reproduceable anything eating resources ? maybe use glance to check ?
Email : alex_glennie@hotmail.com
Occasional Advisor
Chris J. Solarczyk
Posts: 13
Registered: ‎09-30-1999
Message 3 of 15 (559 Views)

Re: Apache coredump on Stop

# file core
core: core file from 'httpd' - received SIGSEGV

# what core
core:
HP-UX libisamstub.sl 19991217 (135120) B3907DB/B3909DB B.11.01.11
fs_amod.s $Revision: 1.9.1.1 $
libcl.sl version B.11.01.04 - Jul 10, 2000
HP-UX libm shared PA1.1 C math library 980423 (163456) UX 11.0
STREAMS: Revision: B.11.00 $Date: 99/07/07 14:00:00 $
Pthread Interfaces
libpthread HP-UX (Release B.11.00): Tue Aug 31 15:35:32 PDT 1999
$ PATCH/11.00:PHCO_22076 Aug 16 2000 16:53:50 $
SMART_BIND
92453-07 dld dld dld.sl B.11.13 990903
Honored Contributor
Alex Glennie
Posts: 4,068
Registered: ‎05-07-2000
Message 4 of 15 (559 Views)

Re: Apache coredump on Stop

Chris best I can offer is check kernel tuneables http://www.hp.com/products1/unix/webservers/apache/techtips/hpapache_20_perf.html

that said it maybe we are seeing a known feature that may well be patcheable ... depends on how recent patch levels are ?

If I remember I'll check when I'm back in the office tomorrow.

Email : alex_glennie@hotmail.com
Honored Contributor
Mark Greene_1
Posts: 1,422
Registered: ‎06-26-2001
Message 5 of 15 (559 Views)

Re: Apache coredump on Stop

Does it do the same thing when you specify the fully qualifed path instead of doing the dot-slash reference?

mark
the future will be a lot like now, only later
Occasional Advisor
Chris J. Solarczyk
Posts: 13
Registered: ‎09-30-1999
Message 6 of 15 (559 Views)

Re: Apache coredump on Stop

Yes, same thing happens without the ./

I installed the following patch but it didn't seem to fix the problem. Didn't see any other patch requirements.

PHSS_33032 1.0 ld(1) and linker tools cumulative patch
Honored Contributor
Alex Glennie
Posts: 4,068
Registered: ‎05-07-2000
Message 7 of 15 (559 Views)

Re: Apache coredump on Stop

Chris,

yes I looked at the known issues that fixed and none matched , the libisam.sl might be worth a look at as may if gdb is installed producing a back trace .... (bt) advise use the gui.

I'll see what I can find tomorrow ... glance show anything wrt memory etc ?
Email : alex_glennie@hotmail.com
Occasional Advisor
Chris J. Solarczyk
Posts: 13
Registered: ‎09-30-1999
Message 8 of 15 (559 Views)

Re: Apache coredump on Stop

glance looks OK. The server has 4GB of RAM with about 2.5GB free so not much memory pressure.
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 9 of 15 (559 Views)

Re: Apache coredump on Stop

It is barely possible that the memory violation is occurring because maxssiz is set too small especially if maxssiz is still at the default of 8MB. If so, increase it to 32MB but no more than 64MB. The stack would only need to be larger than about 32MB on very poorly written code.

Plan B. Download and install Apache 2.2.0 from www.apache.org. It's a very easy build.
If it ain't broke, I can fix that.
Occasional Advisor
Chris J. Solarczyk
Posts: 13
Registered: ‎09-30-1999
Message 10 of 15 (559 Views)

Re: Apache coredump on Stop

maxssiz is set to 100MB. This server also runs Oracle which may explain why it's set so high.

I'm just surprised that HP's Apache would have these problems right out of the box. I installed the latest version on another server and the same thing happens with the 'stop' command. It coud be a patch problem since these servers are behind in patches. I may try to download the source and build it myself.
Occasional Advisor
Chris J. Solarczyk
Posts: 13
Registered: ‎09-30-1999
Message 11 of 15 (559 Views)

Re: Apache coredump on Stop

I downloaded the source from apache.org for version 2.0.55 and compiled using gcc. Everything is working OK. I am able to start/stop the web server without a core dump. Not sure what's wrong with the packaged install from HP...
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 12 of 15 (559 Views)

Re: Apache coredump on Stop

Well, if you are interested in finding the problem, you should be able to run the HP supplied version and allow it to crash and then use gdb to run a stack trace. You will at least know the function that triggered the crash and can look at that function very carefully for bugs in the source code for the "good" 2.0.55 version,
If it ain't broke, I can fix that.
Honored Contributor
Alex Glennie
Posts: 4,068
Registered: ‎05-07-2000
Message 13 of 15 (559 Views)

Re: Apache coredump on Stop

Hi Chris I maybe off the mark here but PHSS_30969

s700_800 11.00 ld(1) and linker tools cumulative patch PHSS_32574


s700_800 11.X HP aC++ -AA runtime libraries (aCC A.03.61)

might have been worth installing along with installing the 2.14 Web server suite I think this may have been seen b4
Email : alex_glennie@hotmail.com
Occasional Advisor
Chris J. Solarczyk
Posts: 13
Registered: ‎09-30-1999
Message 14 of 15 (559 Views)

Re: Apache coredump on Stop

The problem was resolved by installing the following patches:

PHSS_33032 1.0 ld(1) and linker tools cumulative patch
PHSS_33262 1.0 HP aC++ -AA runtime libraries

Thanks to all that replied and offered their advice...
Occasional Advisor
Chris J. Solarczyk
Posts: 13
Registered: ‎09-30-1999
Message 15 of 15 (559 Views)

Re: Apache coredump on Stop

Closing the thread...
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.