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

Segfault when basis is not found #6

Closed
gustavojra opened this issue Jul 21, 2020 · 0 comments
Closed

Segfault when basis is not found #6

gustavojra opened this issue Jul 21, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@gustavojra
Copy link
Member

   Basis set: TEST
Assertion failed: (max_nprim > 0), function Engine, file /Users/aroeira/.julia/packages/Lints/6cTxL/deps/include/libint2/engine.h, line 507.

signal (6): Abort trap: 6
in expression starting at REPL[7]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 353960332 (Pool: 353850877; Big: 109455); GC: 215
Abort trap: 6

It is desirable some error handling to prevent a crash. For example:

list_of_all_basis = ...

if !(lowercase(basis) in list_of_all_basis)
     throw(Fermi.InvalidFermiOptions("Invalid basis set: $basis"))
end
@mdav2 mdav2 added the bug Something isn't working label Aug 15, 2020
@mdav2 mdav2 added this to the v0.2.0 milestone Aug 15, 2020
@mdav2 mdav2 closed this as completed Aug 15, 2020
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