From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 7 18:33:13 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 8D232106566B for ; Fri, 7 Oct 2011 18:33:13 +0000 (UTC) (envelope-from resitsahin@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4F0798FC0A for ; Fri, 7 Oct 2011 18:33:13 +0000 (UTC) Received: by ggeq3 with SMTP id q3so3797906gge.13 for ; Fri, 07 Oct 2011 11:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=msUkzW+KY55L7oElZibuC3AiLCiRFltd6Zb9qlsG5ik=; b=eE3vGdaqo6VnZJbxUH8hTGsD9IUKv4eOs71M/HrqpBX3EFMqUHfuSqvkjVih2fg1eh 0NWQyuT/U9Ye+sFl11rtWVPTJWUYI45hBK3SvcktZQ/LAY9FnOzeM2XoAfWvNJIdctd4 ETFHyFL5ZsE09uchqQEa8bbEiGx53pBDlQKEw= Received: by 10.223.92.152 with SMTP id r24mr12216907fam.19.1318010895593; Fri, 07 Oct 2011 11:08:15 -0700 (PDT) Received: from [192.168.1.101] ([78.174.250.20]) by mx.google.com with ESMTPS id f10sm13860350fac.14.2011.10.07.11.08.14 (version=SSLv3 cipher=OTHER); Fri, 07 Oct 2011 11:08:15 -0700 (PDT) Message-ID: <4E8F400D.80305@gmail.com> Date: Fri, 07 Oct 2011 21:08:13 +0300 From: =?UTF-8?B?TXVzdGFmYSBSZcWfaXQgxZ5haGlu?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: 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:33:13 -0000 Hello All, I am trying to run Valgrind on FreeBSD. I am getting the error about ksem_open which i stated below. I have searched for a solution to be 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? Kind Regards Resit Sahin I use valgrind version: valgrind-3.6.0 FreeBSD Version :FreeBSD 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #6: amd64 The error i get : (The valgrind output) --84521-- WARNING: unhandled syscall: 404 ==84521== at 0x144E2BC: __sys_ksem_init (in /lib/libc.so.7) ==84521== by 0x14422FE: sem_init (in /lib/libc.so.7) ==84521== by 0x1639BBB: snf__sem_ring_open (in /usr/local/opt/snf/lib/libsnf.so.0.3) ==84521== by 0x163A1AC: snf__open_endpoint_ring (in /usr/local/opt/snf/lib/libsnf.so.0.3) ==84521== by 0x163A5A3: snf__board_open (in /usr/local/opt/snf/lib/libsnf.so.0.3) ==84521== by 0x1637A7A: snf_open (in /usr/local/opt/snf/lib/libsnf.so.0.3) ==84521== by 0xF04DBA: snf_activate (in /usr/local/opt/snf/lib/libpcap.so.1.1.1) ==84521== by 0xF05C26: pcap_activate (in /usr/local/opt/snf/lib/libpcap.so.1.1.1) ==84521== by 0xF0624A: pcap_open_live (in /usr/local/opt/snf/lib/libpcap.so.1.1.1) ==84521== by 0x452B4D: ??? (in /usr/sbin/tcpdump) ==84521== by 0x402E4D: ??? (in /usr/sbin/tcpdump) ==84521== by 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. Please report --84521-- it at http://valgrind.org/support/bug_reports.html.