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

r.stats.quantile: sync to r.quantile #2323

Merged
merged 1 commit into from
Apr 26, 2022
Merged

r.stats.quantile: sync to r.quantile #2323

merged 1 commit into from
Apr 26, 2022

Conversation

metzm
Copy link
Contributor

@metzm metzm commented Apr 26, 2022

  • sync correctly to r.quantile
  • fix segfault

Fixes #2259

@metzm metzm added bug Something isn't working backport_needed raster Related to raster data processing C Related code is in C labels Apr 26, 2022
@metzm metzm added this to the 8.2.0 milestone Apr 26, 2022
Copy link
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

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

This fixes the issue. I don't get the Invalid read reported in #2259 with valgrind r.stats.quantile base=zipcodes cover=elevation quantiles=3 -p anymore (I do without this PR).

I get Conditional jump or move depends on uninitialised value(s) from quant_parse_file which I get even with 9317110 which is before #2108.

@neteler
Copy link
Member

neteler commented Apr 26, 2022

BTW: The new minimalistic testsuite added in #2325 should be sufficient to see the segfault being fixed.

@neteler neteler merged commit d76d518 into OSGeo:main Apr 26, 2022
neteler pushed a commit that referenced this pull request Apr 26, 2022
* sync correctly to r.quantile
* fix segfault

Fixes #2259
@metzm metzm deleted the quantiles branch April 26, 2022 15:27
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
* sync correctly to r.quantile
* fix segfault

Fixes OSGeo#2259
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
* sync correctly to r.quantile
* fix segfault

Fixes OSGeo#2259
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
* sync correctly to r.quantile
* fix segfault

Fixes OSGeo#2259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C Related code is in C raster Related to raster data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] r.stats.quantile produces segfault
3 participants