From owner-freebsd-current Tue Dec 5 14:29:26 2000 From owner-freebsd-current@FreeBSD.ORG Tue Dec 5 14:29:23 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id AC95B37B400 for ; Tue, 5 Dec 2000 14:29:22 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eB5MTLn01413; Tue, 5 Dec 2000 14:29:21 -0800 (PST) Date: Tue, 5 Dec 2000 14:29:21 -0800 From: Alfred Perlstein To: Valentin Chopov 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> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from valentin@valcho.net on Tue, Dec 05, 2000 at 04:37:30PM -0500 Sender: bright@fw.wintelcom.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Valentin Chopov [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