From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 7 18:38:52 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A03531065674 for ; Fri, 7 Oct 2011 18:38:52 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5DB488FC16 for ; Fri, 7 Oct 2011 18:38:52 +0000 (UTC) Received: by qadz30 with SMTP id z30so3998886qad.13 for ; Fri, 07 Oct 2011 11:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2qlUFq34NirPDoHuNeVNed+WdMVegfYOkFKWiL6dL70=; b=QNUtQoZpoo0MMRV52IkBTMcc65G/hlIeWsmSJr6nBBah8hYgs7dUAqrWbJnXINcTpS mqSFmLrSKF5gjsJhuRyyURUetYCro4NRvy+bit4I06RcsihMhawwOs57ODiAHxUwUOPV pHKDvTv4lvliE4g1yhRUtqAEie8i1tMNqvUUQ= MIME-Version: 1.0 Received: by 10.229.65.165 with SMTP id j37mr1799624qci.205.1318012731801; Fri, 07 Oct 2011 11:38:51 -0700 (PDT) Sender: mdf356@gmail.com Received: by 10.229.83.196 with HTTP; Fri, 7 Oct 2011 11:38:51 -0700 (PDT) In-Reply-To: <4E8F400D.80305@gmail.com> References: <4E8F400D.80305@gmail.com> Date: Fri, 7 Oct 2011 11:38:51 -0700 X-Google-Sender-Auth: _lq8x_ps_MQHogTho_mpd9jTXS8 Message-ID: From: mdf@FreeBSD.org To: =?ISO-8859-9?Q?Mustafa_Re=FEit_=DEahin?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Using Valgrind on FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2011 18:38:52 -0000 2011/10/7 Mustafa Re=C5=9Fit =C5=9Eahin : > I am trying to run Valgrind on FreeBSD. I am getting the error about > ksem_open which i stated below. I have searched for =C2=A0a solution to b= e able > to solve this problem and found the calgrind patch. I could not found the > instructions to apply this patch. How can i use valgrind on FreeBSD with > ksem_open enabled? It looks like that syscall is only available when the P1003_1B_SEMAPHORES option is in your kernel config. You will need to edit a kernel configuration file and rebuild / reinstall the kernel. Thanks, matthew > I use valgrind version: =C2=A0valgrind-3.6.0 > FreeBSD Version :FreeBSD 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #6: =C2=A0= amd64 > > The error i get : (The valgrind output) > > > --84521-- WARNING: unhandled syscall: 404 > =3D=3D84521=3D=3D =C2=A0 =C2=A0at 0x144E2BC: __sys_ksem_init (in /lib/lib= c.so.7) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0x14422FE: sem_init (in /lib/libc.so.7) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0x1639BBB: snf__sem_ring_open (in > /usr/local/opt/snf/lib/libsnf.so.0.3) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0x163A1AC: snf__open_endpoint_ring (in > /usr/local/opt/snf/lib/libsnf.so.0.3) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0x163A5A3: snf__board_open (in > /usr/local/opt/snf/lib/libsnf.so.0.3) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0x1637A7A: snf_open (in > /usr/local/opt/snf/lib/libsnf.so.0.3) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0xF04DBA: snf_activate (in > /usr/local/opt/snf/lib/libpcap.so.1.1.1) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0xF05C26: pcap_activate (in > /usr/local/opt/snf/lib/libpcap.so.1.1.1) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0xF0624A: pcap_open_live (in > /usr/local/opt/snf/lib/libpcap.so.1.1.1) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0x452B4D: ??? (in /usr/sbin/tcpdump) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0x402E4D: ??? (in /usr/sbin/tcpdump) > =3D=3D84521=3D=3D =C2=A0 =C2=A0by 0x41FFF: ??? > --84521-- You may be able to write your own handler. > --84521-- Read the file README_MISSING_SYSCALL_OR_IOCTL. > --84521-- Nevertheless we consider this a bug. =C2=A0Please report > --84521-- it at http://valgrind.org/support/bug_reports.html. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " >