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

'bad alloc' error #2

Open
timjb opened this issue Aug 3, 2018 · 0 comments
Open

'bad alloc' error #2

timjb opened this issue Aug 3, 2018 · 0 comments

Comments

@timjb
Copy link

timjb commented Aug 3, 2018

In my code, the line

BitmapPoppy* rs = new BitmapPoppy(bits, num_bits);

terminates with SIGABRT and the error message

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

This seems to be caused by the lines

		uint32* loc_[1ULL << 31];
		uint64  locCount_[1ULL << 31];

in bitmap.h: If I replace 31 by 30 the error is replaced by a SIGSEGV at some later point in the constructor of BitmapPoppy. I guess I just don't have that much RAM.

I am using GCC version 7.3.0.

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