Bug 353398 - WARNING: unhandled amd64-solaris syscall: 207 whenever I run a C++ binary with Valgrind
Summary: WARNING: unhandled amd64-solaris syscall: 207 whenever I run a C++ binary wit...
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Solaris
: NOR grave
Target Milestone: ---
Assignee: Ivo Raisr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-01 10:16 UTC by anand8906
Modified: 2016-03-31 05:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
pset syscall wrapper (13.79 KB, patch)
2015-10-11 21:04 UTC, Ivo Raisr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anand8906 2015-10-01 10:16:22 UTC
==10363== Memcheck, a memory error detector
==10363== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==10363== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==10363== Command:  ********
==10363==
--10363-- WARNING: unhandled amd64-solaris syscall: 207
--10363-- You may be able to write your own handler.
--10363-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--10363-- Nevertheless we consider this a bug.  Please report
--10363-- it at http://valgrind.org/support/bug_reports.html.

---------------------------------------------------------------
I keep getting this everytime I run my binary with valgrind. This doesn't happen with a simple hello world program. But only with my binary which is quite complex and uses so many user defined libraries 

Reproducible: Always

Steps to Reproduce:
1. Run my binary with Valgrind 
2.
3.

Actual Results:  
==10363== Memcheck, a memory error detector
==10363== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==10363== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==10363== Command:  ********
==10363==
--10363-- WARNING: unhandled amd64-solaris syscall: 207
--10363-- You may be able to write your own handler.
--10363-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--10363-- Nevertheless we consider this a bug.  Please report
--10363-- it at http://valgrind.org/support/bug_reports.html.
Comment 1 Ivo Raisr 2015-10-11 19:09:18 UTC
Solaris syscall 207 is pset_* family.
We will implement their wrappers hopefully soon.
Comment 2 Ivo Raisr 2015-10-11 21:04:45 UTC
Created attachment 94955 [details]
pset syscall wrapper

Syscall wrapper only. No scalar tests, yet.
Comment 3 Ivo Raisr 2015-10-11 21:06:10 UTC
Please could you try the attached patch and see if it helps with your situation?

I would also like to hear the flavour of Solaris (or illumos), such as distribution and kernel version.
Comment 4 Ivo Raisr 2015-10-12 19:11:18 UTC
Fixed in SVN r15700.
Comment 5 anand8906 2015-10-14 11:44:13 UTC
Thanks! It did help me. Unfortunately there is another error and this time it is syscall 120

-------------------------------------------------------
==27338== Memcheck, a memory error detector
==27338== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==27338== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==27338== Command: xxxxxx
==27338==
--27338-- WARNING: unhandled amd64-solaris syscall: 120
--27338-- You may be able to write your own handler.
--27338-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--27338-- Nevertheless we consider this a bug.  Please report
--27338-- it at http://valgrind.org/support/bug_reports.html.
-------------------------------------------------------------------------------------------

Details of my OS are 

uname -X
--------------
 Maximum build arch: amd64
         Primary build arch: amd64
       Secondary build arch: x86
                   Build OS: solaris
       Primary build target: AMD64_SOLARIS
     Secondary build target: X86_SOLARIS
           Platform variant: vanilla
      Primary -DVGPV string: -DVGPV_amd64_solaris_vanilla=1
         Default supp files: solaris11.supp

 uname -a 
---------------------------

SunOS whf00ajr 5.11 11.1 i86pc i386 i86pc

cat /etc/release
-----------------------------------

Oracle Solaris 11.1 X86
  Copyright (c) 1983, 2013, Oracle and/or its affiliates.  All rights reserved.
                           Assembled 06 November 2013
Comment 6 Ivo Raisr 2015-10-14 12:08:25 UTC
Great! So you are running Solaris 11.1 (confirm with 'pkg info entire').

Syscall 120 is fchdir.
Please could you raise another bug entitled: "unhandled amd64-solaris syscall fchdir(120)".
I will have a look at it.
Comment 7 anand8906 2015-10-15 08:29:09 UTC
Thanks. 

output of pkg info entire

Name: entire
       Summary: entire incorporation including Support Repository Update (Oracle Solaris 11.1.14.5.0).
   Description: This package constrains system package versions to the same
                build.  WARNING: Proper system update and correct package
                selection depend on the presence of this incorporation.
                Removing this package will result in an unsupported system.  For
                more information see https://support.oracle.com/CSP/main/article
                ?cmd=show&type=NOT&doctype=REFERENCE&id=1501435.1.
      Category: Meta Packages/Incorporations
         State: Installed
     Publisher: solaris
       Version: 0.5.11 (Oracle Solaris 11.1.14.5.0)
 Build Release: 5.11
        Branch: 0.175.1.14.0.5.0
Packaging Date: December  3, 2013 09:31:37 PM
          Size: 5.46 kB
          FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.1.14.0.5.0:20131203T213137Z


I also raised a new bug entitled "unhandled amd64-solaris syscall fchdir(120)" and the new bug id is 353917.