-
Notifications
You must be signed in to change notification settings - Fork 985
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
R-devel change; R-API inside parallel regions #3165
Comments
awesome of Luke to do all the hard work of identifying the cause! 💯 |
I'm in process of confirming with Luke that it's fixed before closing ... |
Confirmed fixed. Thanks to @ltierney for his help. For completeness in case we need to refer back...
even with the script that Luke provided :
As a long shot, I recompiled R-devel more simply as follows, still with
Installing data.table-dev (1.11.9) into this R-devel and rerunning, works fine. Reinstalling data.table 1.11.8 again fails. So it's indeed fixed by 1.11.9. In my original R-devel compile, perhaps something there was making 1.11.8 work (disabling byte compiler, -00, ASAN, etc). Anyway, a simpler R-devel compile was needed and was worth trying. @jangorecki If time allows, it would be great to add |
@mattdowle yes I compile R-devel daily, will add this flag there. Added to not forget in #3147 |
Luke Tierney contacted me about a memory issue in R-devel. Tests are passing both on CRAN and Travis/Appveyor, but memory usage is higher in some cases. As before the garbage collector turns off.
Not sure when exactly the R-devel change was made, but some time in the last month or so. It might be that the R-devel change causes the new memory issue, or that the R-devel change reveals the problem that exists already (possibly even with data.table-release on R-release). In any case, it needs to be fixed.
Luke wrote :
Given Luke's detail, it's easy to see the problem in the code without needing to reproduce. All R API usage needs taking outside all parallel regions as Luke requested before. I delayed doing that last time due to time pressure, and now it needs tackling. Last time I just did the first step which was to ensure that DATAPTR inside parallel regions did not receive ALTREP.
This warrants accelerating release of 1.12.0, not least because it impacts Luke.
$ grep "omp.*parallel" *.c
$ grep ALTREP *.c
The text was updated successfully, but these errors were encountered: