Bug 353917

Summary: unhandled amd64-solaris syscall fchdir(120)
Product: [Developer tools] valgrind Reporter: anand8906
Component: memcheckAssignee: Ivo Raisr <ivosh>
Status: RESOLVED FIXED    
Severity: grave CC: ivosh
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Solaris Packages   
OS: Solaris   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: proposed patch

Description anand8906 2015-10-15 08:27:19 UTC
==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:  ********
==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.

------------------------------------------------------------------------

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  binary with Valgrind 
2.
3.

Actual Results:  
==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:  ********
==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.



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
Comment 1 Ivo Raisr 2015-10-15 08:34:09 UTC
Created attachment 95000 [details]
proposed patch

The attached patch should fix the problem.
It is not ready to be integrated, yet.
Comment 2 Ivo Raisr 2015-10-15 09:37:33 UTC
Fixed in SVN r15707.
Comment 3 anand8906 2015-10-15 11:23:26 UTC
Thanks. That worked. But now I have another unhandled syscall warning for 170 ('SYS_lwp_cond_wait' I guess).

WARNING: unhandled amd64-solaris syscall: 170
--27526-- You may be able to write your own handler.
--27526-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--27526-- Nevertheless we consider this a bug.  Please report
--27526-- it at http://valgrind.org/support/bug_reports.html.

Raised a new bug for that. Bug Id is 353920