Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix library paths for native library reporterchelper #4078

Closed

Conversation

zakkak
Copy link
Collaborator

@zakkak zakkak commented Dec 2, 2021

A new native shared library reporterchelper was introduced in e04a9cd

However its location doesn't seem to be consistent with the location of other native libraries:

Under windows the location seems to be wrong, as it ends up under /bin/, and I would expect peakRSS to not work under windoes given that GraalVM tries to load the library from lib/svm/builder/lib/:

$ find -name "*chelper*" 
./lib/svm/clibraries/windows-amd64/libchelper.lib
./lib/svm/builder/clibraries/windows-amd64/libchelper.lib
./bin/svm/builder/lib/reporterchelper.dll

Under linux things look OK, but the library location is not platform dependent:

$ find -name "*chelper*"                    
./lib/svm/clibraries/linux-amd64/liblibchelper.a
./lib/svm/builder/clibraries/linux-amd64/liblibchelper.a
./lib/svm/builder/lib/libreporterchelper.so

A new native shared library `reporterchelper` was introduced in
oracle@e04a9cd

However its location doesn't seem to be consistent with the location of
other native libraries:

Under windows the location seems to be completely wrong, as it ends up
under `/bin/` and I would expect peakRSS to not work under windoes given
that GraalVM [tries to load the library from
`lib/svm/builder/lib/`](https://github.com/oracle/graal/blob/6fbf945cdd53fa0370f9c36a59058d912e3f6194/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/reporting/ProgressReporterCHelper.java#L48):

```
$ find -name "*chelper*"
./lib/svm/clibraries/windows-amd64/libchelper.lib
./lib/svm/builder/clibraries/windows-amd64/libchelper.lib
./bin/svm/builder/lib/reporterchelper.dll
```

Under linux things look OK, but the library location is not platform
dependent:

```
$ find -name "*chelper*"
./lib/svm/clibraries/linux-amd64/liblibchelper.a
./lib/svm/builder/clibraries/linux-amd64/liblibchelper.a
./lib/svm/builder/lib/libreporterchelper.so
```
@zakkak zakkak requested a review from fniephaus December 2, 2021 19:41
@fniephaus fniephaus self-assigned this Dec 2, 2021
@fniephaus
Copy link
Member

Thanks for the PR, @zakkak!

I would expect peakRSS to not work under windows

You are right, RSS reporting is currently broken on Windows. I'll have a look at this tomorrow.

@fniephaus
Copy link
Member

I have pushed a different fix for this with 74b547b. Nonetheless, thanks for pointing out the issue and providing a possible fix!

@fniephaus fniephaus closed this Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants