Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2000 14:29:21 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Valentin Chopov <valentin@valcho.net>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: last changes in sys/kern/sysv_*.c in CURRENT and Squid 2.4
Message-ID:  <20001205142920.G8051@fw.wintelcom.net>
In-Reply-To: <Pine.BSF.4.21.0012051624420.39360-100000@valcho.net>; from valentin@valcho.net on Tue, Dec 05, 2000 at 04:37:30PM -0500
References:  <Pine.BSF.4.21.0012051624420.39360-100000@valcho.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Valentin Chopov <valentin@valcho.net> [001205 13:37] wrote:
> Hi,
> 
> I have a problem with running server aplication which using message queues
> and shared memory - Squid 2.4
> 
> I'm giving short output of gdb.
> 
> Thanks,
> 
> Val
> 
> 
> (gdb) run -N
> Starting
> program: /usr/home/valentin/squid/squid-2.4-200012050000/src/squid -N
> Program received signal SIGSYS, Bad system call.
> 0x48160ba0 in msgsys () from /usr/lib/libc.so.5
> (gdb) where
> #0  0x48160ba0 in msgsys () from /usr/lib/libc.so.5
> #1  0x481568bf in msgget () from /usr/lib/libc.so.5
> #2  0x80a9c4c in storeDiskdDirInit (sd=0x8203000) at store_dir_diskd.c:386
> #3  0x80a073c in storeDirInit () at store_dir.c:55
> #4  0x809d981 in storeInit () at store.c:937
> #5  0x80872e1 in mainInitialize () at main.c:523
> #6  0x80877f4 in main (argc=2, argv=0xbfbffb78) at main.c:696
> #7  0x804a4f1 in _start ()

I missed a SYSCALL_MODULE_HELPER() for msgsys, I have the fix, but
just give me a minute to test it:

Index: sysv_msg.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/sysv_msg.c,v
retrieving revision 1.27
diff -u -u -r1.27 sysv_msg.c
--- sysv_msg.c	2000/12/01 08:57:45	1.27
+++ sysv_msg.c	2000/12/05 16:57:34
@@ -251,6 +251,7 @@
 	NULL
 };
 
+SYSCALL_MODULE_HELPER(msgsys, 6);
 SYSCALL_MODULE_HELPER(msgctl, 3);
 SYSCALL_MODULE_HELPER(msgget, 2);
 SYSCALL_MODULE_HELPER(msgsnd, 4);

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001205142920.G8051>