binro Posted January 21, 2007 Share Posted January 21, 2007 Whenever I start apache2 I get the following messages:[pre]Jan 21 19:14:09 opal apache2[9470]: [notice] Graceful restart requested, doing restartJan 21 19:14:09 opal apache2[9470]: [notice] Digest: generating secret for digest authentication ...Jan 21 19:14:09 opal apache2[9470]: [notice] Digest: doneJan 21 19:14:09 opal apache2[9470]: [info] Init: Initializing OpenSSL libraryJan 21 19:14:09 opal apache2[9470]: [info] Init: Seeding PRNG with 136 bytes of entropyJan 21 19:14:09 opal apache2[9470]: [info] Init: Generating temporary RSA private keys (512/1024 bits)Jan 21 19:14:09 opal apache2[9470]: [info] Init: Generating temporary DH parameters (512/1024 bits)Jan 21 19:14:09 opal apache2[9470]: [info] Shared memory session cache initialisedJan 21 19:14:09 opal apache2[9470]: [info] Init: Initializing (virtual) servers for SSLJan 21 19:14:09 opal apache2[9470]: [info] Server: Apache/2.0.58, Interface: mod_ssl/2.0.58, Library: OpenSSL/0.9.8dJan 21 19:14:09 opal apache2[9470]: [notice] Apache configured -- resuming normal operationsJan 21 19:14:09 opal apache2[9470]: [info] Server built: Sep 7 2006 18:57:19Jan 21 19:14:09 opal apache2[16896]: [error] (2)No such file or directory: Error attaching to shared memoryJan 21 19:14:09 opal apache2[16897]: [error] (2)No such file or directory: Error attaching to shared memoryJan 21 19:14:09 opal apache2[16898]: [error] (2)No such file or directory: Error attaching to shared memoryJan 21 19:14:09 opal apache2[16899]: [error] (2)No such file or directory: Error attaching to shared memoryJan 21 19:14:09 opal apache2[16900]: [error] (2)No such file or directory: Error attaching to shared memory[/pre]The main effect of this is that any ftp request results in a segfault:[pre]Jan 21 19:51:22 opal apache2[9470]: [notice] child pid 17008 exit signal Segmentation fault (11)[/pre]Shared memory is available on my Gentoo Linux system:[pre] # df -aThFilesystem Type Size Used Avail Use% Mounted on ......none tmpfs 1.1G 0 1.1G 0% /dev/shm[/pre]Apache was compiled with the mpm-prefork option which I think is required by PHP5. Anybody any ideas what this might be? No one on the Gentoo fora could work it out. The weird thing is that sometimes after a graceful restart, the problem goes away.TIA Quote Link to comment Share on other sites More sharing options...
steviewdr Posted January 23, 2007 Share Posted January 23, 2007 Did you run a memtest?Would it be possible to disable mod_ssl for a while to debug and test? or did the problem only occur when you updated to PHP5?-steve Quote Link to comment Share on other sites More sharing options...
binro Posted January 24, 2007 Author Share Posted January 24, 2007 [quote author=steviewdr link=topic=123363.msg511332#msg511332 date=1169563587]Did you run a memtest?[/quote]How do I do that? I am not sure when the problem started but it certainly worked when I first set up apache. [quote author=steviewdr link=topic=123363.msg511332#msg511332 date=1169563587]Would it be possible to disable mod_ssl for a while to debug and test? or did the problem only occur when you updated to PHP5?[/quote]No problem but please give me instructions, I am not an apache guru!TIA Quote Link to comment Share on other sites More sharing options...
binro Posted January 24, 2007 Author Share Posted January 24, 2007 Someone emailed me the solution. Stop Apache and delete all the files in /tmp owned by apache. That did it, no more segfaults. :) Quote Link to comment Share on other sites More sharing options...
steviewdr Posted January 24, 2007 Share Posted January 24, 2007 Nice. Thanks for posting the solution.[me=steviewdr]must remember that.[/me]-steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.