mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6.3-mm1][PROBLEM] Apache cannot start
@ 2004-02-19 13:12 Jan Marek
  2004-02-19 16:10 ` Randy.Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Marek @ 2004-02-19 13:12 UTC (permalink / raw)
  To: linux-kernel

Hallo lkml,

I have problem with kernel 2.6.3-mm1: apache cannot start. Some last
lines from strace output:

3299  shmget(IPC_PRIVATE, 737284, IPC_CREAT|0600) = 393216
3299  shmat(393216, 0, 0)               = -1 EINVAL (Invalid argument)
3299  time(NULL)                        = 1077193406
3299  write(15, "[Thu Feb 19 13:23:26 2004] [emer"..., 69) = 69
3299  shmctl(393216, IPC_64|IPC_RMID, 0) = 0
3299  munmap(0x40018000, 4096)          = 0
3299  exit_group(2)                     = ?

I think, that problem is in the calling shmat function?

My last kernel was 2.6.2-mm1 and here apache went without problems...

Sincerely
Jan Marek
-- 
Ing. Jan Marek
University of South Bohemia
Academic Computer Centre
Phone: +420-38-7772080

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6.3-mm1][PROBLEM] Apache cannot start
  2004-02-19 13:12 [2.6.3-mm1][PROBLEM] Apache cannot start Jan Marek
@ 2004-02-19 16:10 ` Randy.Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2004-02-19 16:10 UTC (permalink / raw)
  To: Jan Marek; +Cc: linux-kernel

On Thu, 19 Feb 2004 14:12:21 +0100 Jan Marek <linux@hazard.jcu.cz> wrote:

| Hallo lkml,
| 
| I have problem with kernel 2.6.3-mm1: apache cannot start. Some last
| lines from strace output:
| 
| 3299  shmget(IPC_PRIVATE, 737284, IPC_CREAT|0600) = 393216
| 3299  shmat(393216, 0, 0)               = -1 EINVAL (Invalid argument)
| 3299  time(NULL)                        = 1077193406
| 3299  write(15, "[Thu Feb 19 13:23:26 2004] [emer"..., 69) = 69
| 3299  shmctl(393216, IPC_64|IPC_RMID, 0) = 0
| 3299  munmap(0x40018000, 4096)          = 0
| 3299  exit_group(2)                     = ?
| 
| I think, that problem is in the calling shmat function?
| 
| My last kernel was 2.6.2-mm1 and here apache went without problems...


Patch from Andrew is below.

--
~Randy



diff -puN ipc/shm.c~add-syscalls_h-shmat-fix ipc/shm.c
--- 25/ipc/shm.c~add-syscalls_h-shmat-fix	2004-02-18 01:22:41.000000000 -0800
+++ 25-akpm/ipc/shm.c	2004-02-18 01:22:41.000000000 -0800
@@ -635,7 +635,7 @@ out:
  * "raddr" thing points to kernel space, and there has to be a wrapper around
  * this.
  */
-long sys_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
+asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
 {
 	struct shmid_kernel *shp;
 	unsigned long addr;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-19 16:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-19 13:12 [2.6.3-mm1][PROBLEM] Apache cannot start Jan Marek
2004-02-19 16:10 ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®