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

StackOverflowError in shutdown hook #776

Closed
Venorcis opened this issue Nov 1, 2016 · 3 comments
Closed

StackOverflowError in shutdown hook #776

Venorcis opened this issue Nov 1, 2016 · 3 comments

Comments

@Venorcis
Copy link

Venorcis commented Nov 1, 2016

With a database created like this:

DBMaker.fileDB(datafile).fileMmapEnable().fileMmapPreclearDisable().cleanerHackEnable().concurrencyDisable().readOnly().closeOnJvmShutdown().make();

I get the following exception when Java (actually my JUnit-test) terminates:

SEVERE: DB.close() thrown exception in shutdown hook.
java.lang.StackOverflowError
	at org.mapdb.volume.ByteBufferVol.unmap(ByteBufferVol.java:347)
	at org.mapdb.volume.ByteBufferVol.unmap(ByteBufferVol.java:347)
        ...
@Venorcis
Copy link
Author

Venorcis commented Nov 1, 2016

of course removing the cleanerHackEnable fixes this, but I don't think the unmapping should cause a stack overflow in any case?

@jankotek
Copy link
Owner

jankotek commented Nov 4, 2016

What version is that?

@Venorcis
Copy link
Author

Venorcis commented Nov 4, 2016

Oops forgot to mention; this is with latest 3.0.2

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

No branches or pull requests

2 participants