Using Valgrind on FreeBSD

mdf at FreeBSD.org mdf at FreeBSD.org
Fri Oct 7 18:38:52 UTC 2011


2011/10/7 Mustafa Reşit Şahin <resitsahin at gmail.com>:
> 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?

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:  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.
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


More information about the freebsd-hackers mailing list