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

Initialization errors when using cholCsrReal in cheb_cov #20

Open
pbeckman opened this issue Aug 10, 2024 · 0 comments
Open

Initialization errors when using cholCsrReal in cheb_cov #20

pbeckman opened this issue Aug 10, 2024 · 0 comments

Comments

@pbeckman
Copy link
Contributor

cheb_cov.c seems to be working with mass lumping, but when I turn off mass lumping I get some cholCsrReal initialization errors. For a minimal example run

./cheb_cov bunny0.obj 1e-4 0 10 32 0

My backtrace is

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000100528c50 libbutterfly.dylib`bfCholCsrRealInit(cholCsrReal=0x000000012c804200, mat=0x000000012b6065d0) at chol_csr_real.c:143:24
    frame #1: 0x0000000100003338 cheb_cov`main(argc=7, argv=0x000000016fdfed50) at cheb_cov.c:191:5
    frame #2: 0x000000019d0960e0 dyld`start + 2360

From what I can tell, cholCsrReal->impl is uninitialized (i.e. is NULL). So when we try to write to cholCsrReal->impl->A at src/chol_csr_real.c:143 we have issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant