Jump to content

Error attaching to shared memory


binro

Recommended Posts

Whenever I start apache2 I get the following messages:
[pre]
Jan 21 19:14:09 opal apache2[9470]: [notice] Graceful restart requested, doing restart
Jan 21 19:14:09 opal apache2[9470]: [notice] Digest: generating secret for digest authentication ...
Jan 21 19:14:09 opal apache2[9470]: [notice] Digest: done
Jan 21 19:14:09 opal apache2[9470]: [info] Init: Initializing OpenSSL library
Jan 21 19:14:09 opal apache2[9470]: [info] Init: Seeding PRNG with 136 bytes of entropy
Jan 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 initialised
Jan 21 19:14:09 opal apache2[9470]: [info] Init: Initializing (virtual) servers for SSL
Jan 21 19:14:09 opal apache2[9470]: [info] Server: Apache/2.0.58, Interface: mod_ssl/2.0.58, Library: OpenSSL/0.9.8d
Jan 21 19:14:09 opal apache2[9470]: [notice] Apache configured -- resuming normal operations
Jan 21 19:14:09 opal apache2[9470]: [info] Server built: Sep  7 2006 18:57:19
Jan 21 19:14:09 opal apache2[16896]: [error] (2)No such file or directory: Error attaching to shared memory
Jan 21 19:14:09 opal apache2[16897]: [error] (2)No such file or directory: Error attaching to shared memory
Jan 21 19:14:09 opal apache2[16898]: [error] (2)No such file or directory: Error attaching to shared memory
Jan 21 19:14:09 opal apache2[16899]: [error] (2)No such file or directory: Error attaching to shared memory
Jan 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 -aTh
Filesystem    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
Link to comment
Share on other sites

[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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.