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

[Bug] Segfault in static_accel_shutdown_gpu #1064

Open
dvicini opened this issue Feb 9, 2024 · 3 comments
Open

[Bug] Segfault in static_accel_shutdown_gpu #1064

dvicini opened this issue Feb 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@dvicini
Copy link
Member

dvicini commented Feb 9, 2024

Hi,

I am getting a segfault in static_accel_shutdown_gpu. More precisely, it appears that the optixProgramGroupDestroy call in line 183 of optix_core.cpp in Dr.Jit segfaults when the JIT & optix are shutdown.

I don't quite understand why this happens and don't see an obvious issue with the code. Maybe something subtle on the OptiX side? Or something related to the ordering of free/shutdown operations?

I am on driver 525.147.05 and am using an RTX A5000.

Minimal reproducer:

import mitsuba as mi
import numpy as np

def main():
  mi.set_variant('cuda_ad_rgb')
  scene = mi.load_dict(mi.cornell_box())
  img = mi.render(scene)
  print(np.array(img))

main()
@dvicini dvicini added the bug Something isn't working label Feb 9, 2024
@merlinND
Copy link
Member

merlinND commented Feb 9, 2024

Hi @dvicini,

I've recently pushed this which I thought was fixing a use-after-free (reported by AddressSanitizer), but maybe it was a mistake?
0bcfc72

@dvicini
Copy link
Member Author

dvicini commented Feb 9, 2024

Hi Merlin!

I've been seeing this segfault for some time already. I checked to be sure, your commit doesn't seem to affect it. Before and after that fix I am getting the same segfault.

@merlinND
Copy link
Member

merlinND commented Feb 9, 2024

Okay, thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants