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 parquet_field_list read_func lambda capture of invalid this pointer - moved to 24.08 in PR 16440 #16437

Closed

Conversation

davidwendt
Copy link
Contributor

@davidwendt davidwendt commented Jul 30, 2024

Description

Moved to #16440

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt added bug Something isn't working 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change labels Jul 30, 2024
@davidwendt davidwendt self-assigned this Jul 30, 2024
@davidwendt
Copy link
Contributor Author

This illustrates the std::make_tuple pattern mentioned in the description.
https://godbolt.org/z/38onx783o
Note the reader_fn line prints a this pointer value that has already been destroyed 4 lines above this line.

@robertmaynard
Copy link
Contributor

I think we should target 24.08 for this fix

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Jul 30, 2024
@GregoryKimball
Copy link
Contributor

@etseidl would you please take a look?

@cryos
Copy link
Contributor

cryos commented Jul 30, 2024

It would be great to target 24.08 for this, just testing now. Thanks @davidwendt!

@cryos
Copy link
Contributor

cryos commented Jul 30, 2024

This fixes all unit tests when applied in my local GCC 12 build. The test case I was using also passes when rebuilt against this patched GCC 12 build. Just rebuilding the more complete test case but at first glance this completely resolves the issue I reported. The changes look reasonable to me too. Thanks once again.

@etseidl
Copy link
Contributor

etseidl commented Jul 30, 2024

Looks good to me. Nice save @davidwendt!

@davidwendt davidwendt changed the title Fix parquet_field_list read_func lambda capture of invalid this pointer Fix parquet_field_list read_func lambda capture of invalid this pointer - moved to 24.08 in PR 16440 Jul 30, 2024
@davidwendt
Copy link
Contributor Author

Moved to #16440

@davidwendt davidwendt closed this Jul 31, 2024
@davidwendt davidwendt deleted the parquet-read-segfault branch July 31, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants