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

kernel: remove environ arguments, remove sysenviron #3111

Merged
merged 1 commit into from
Dec 15, 2018

Conversation

fingolfin
Copy link
Member

This is an alternative to PR #3106 by @embray based on the discussion there.

Closes #3106

@embray
Copy link
Contributor

embray commented Dec 14, 2018

Ah, thanks for taking care of this. It's fine by me; I will shed no tears if we just do away with the environ passing entirely.

@olexandr-konovalov olexandr-konovalov added this to the GAP 4.10.1 milestone Dec 14, 2018
@fingolfin
Copy link
Member Author

I was motivated to do this because we just run into an issue with the GAPJulia bridge due to us being lazy and not passing the right environ value to libgap... fixing that would of course have been possible, but still rather annoying. So I took this as yet another sign that we should not pass environ via the API...

@embray
Copy link
Contributor

embray commented Dec 14, 2018

Indeed: Most of the issues I've raised so far are in no way specific to Sage or even Python. The segfault we found could have happened to anyone using GAP_Initialize(). Whether or not it happens is mostly a matter of luck.

Copy link
Member

@dimpase dimpase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, no problem. I should have written tests to test environ passing, so now I'm glad I didn't (although this might have helped to locate the problem earlier...) Oh well.

@embray
Copy link
Contributor

embray commented Dec 14, 2018

It just as easily might not have. This code path is already technically covered by the scant existing libgap tests. Like I said, whether or not this problem actually occurs depends on some very particular circumstances.

Copy link
Member

@sebasguts sebasguts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

This also solves problems I had using homalg via Julia.

@codecov
Copy link

codecov bot commented Dec 15, 2018

Codecov Report

Merging #3111 into master will increase coverage by 0.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3111      +/-   ##
==========================================
+ Coverage   83.57%   83.62%   +0.05%     
==========================================
  Files         686      684       -2     
  Lines      336777   332055    -4722     
==========================================
- Hits       281462   277685    -3777     
+ Misses      55315    54370     -945
Impacted Files Coverage Δ
src/sysfiles.c 43.54% <ø> (+2.95%) ⬆️
src/gap.c 83.03% <100%> (-0.28%) ⬇️
src/hpc/thread.c 56.91% <100%> (ø) ⬆️
src/libgap-api.c 21.92% <100%> (+1.76%) ⬆️
src/modules.h 33.33% <0%> (-66.67%) ⬇️
src/macfloat.h 20% <0%> (-51.43%) ⬇️
src/records.h 50% <0%> (-50%) ⬇️
src/gapstate.h 28.57% <0%> (-42.86%) ⬇️
src/gvars.h 66.66% <0%> (-33.34%) ⬇️
src/hookintrprtr.h 66.66% <0%> (-33.34%) ⬇️
... and 85 more

@codecov
Copy link

codecov bot commented Dec 15, 2018

Codecov Report

Merging #3111 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3111      +/-   ##
==========================================
- Coverage   83.57%   83.57%   -0.01%     
==========================================
  Files         686      686              
  Lines      336777   336779       +2     
==========================================
- Hits       281462   281461       -1     
- Misses      55315    55318       +3
Impacted Files Coverage Δ
src/sysfiles.c 40.59% <ø> (ø) ⬆️
src/gap.c 83.2% <100%> (-0.11%) ⬇️
src/hpc/thread.c 56.91% <100%> (ø) ⬆️
src/libgap-api.c 20.16% <100%> (ø) ⬆️
src/gapw95.c 100% <100%> (ø) ⬆️
src/sysmem.c 57.64% <0%> (-0.59%) ⬇️
src/objset.c 85.12% <0%> (-0.23%) ⬇️

@fingolfin fingolfin merged commit 5dad0ef into gap-system:master Dec 15, 2018
@fingolfin fingolfin deleted the mh/environ branch December 16, 2018 14:20
@fingolfin
Copy link
Member Author

Backported via 5867012

@olexandr-konovalov olexandr-konovalov added the release notes: added PRs introducing changes that have since been mentioned in the release notes label Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-4.10-DONE release notes: added PRs introducing changes that have since been mentioned in the release notes topic: kernel topic: libgap things related to libgap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants