go-sqlite3 icon indicating copy to clipboard operation
go-sqlite3 copied to clipboard

TestError_SystemErrno fails with "The segment is already unlocked"

Open elagergren-spideroak opened this issue 5 years ago • 5 comments

Our CI is showing this error when we run the unit tests:

build	12-Feb-2020 19:50:14	--- FAIL: TestError_SystemErrno (0.00s)
build	12-Feb-2020 19:50:14	    error_test.go:273: expected SystemErrno to be a not exists error, but got The segment is already unlocked.

OS: Windows 10.0.17763.1 Go: 1.13.4

elagergren-spideroak avatar Feb 12 '20 21:02 elagergren-spideroak

That error code is returned by the operating system. It sounds like there may be some issue with your Windows installation? Unfortunately, I cannot turn up much information. https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-#error_not_locked

If it continues to happen, I would suggest posting to the SQLite mailing list to see if anyone there can shed some light on the matter. https://www.sqlite.org/support.html

rittneje avatar Feb 14 '20 03:02 rittneje

I think, for some reason, we also did not update the amalgamation. Apologies for the noise.

elagergren-spideroak avatar Feb 27 '20 00:02 elagergren-spideroak

Reopening as this still occurs after updating the amalgamation.

elagergren-spideroak avatar Feb 28 '20 21:02 elagergren-spideroak

@elagergren-spideroak That error code is retrieved by calling the sqlite3_system_errno function, documented here. Like I said, you need to post on the SQLite mailing list to see if they can explain why this is happening. That error is being reported by the operating system itself for some reason, so perhaps there is some issue with the Windows VFS.

rittneje avatar Feb 29 '20 21:02 rittneje

@rittneje yup, I am going to do that. I’m just making sure it’s well-documented in case anybody else runs into it. 👍

ericlagergren avatar Feb 29 '20 21:02 ericlagergren