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

stderr of server threads swallowed during integration tests #488

Open
cole-miller opened this issue Mar 24, 2023 · 2 comments
Open

stderr of server threads swallowed during integration tests #488

cole-miller opened this issue Mar 24, 2023 · 2 comments
Labels
Bug Confirmed to be a bug

Comments

@cole-miller
Copy link
Contributor

cole-miller commented Mar 24, 2023

Recently I haven't been able to get any tracing or other stderr output from the dqlite server thread(s) when running our integration tests, even when --show-stderr is passed. (stderr of the "client" thread that runs the test harness shows up as expected.) Apparently @MathieuBordere has run into this too. We should fix it!

@cole-miller
Copy link
Contributor Author

cole-miller commented Mar 24, 2023

This might have something to do with integration tests inadvertently linking to an installed libdqlite instead of the just-built one, since I was able to "fix" it by blowing away the lib directory where those artifacts were installed. A good sanity check is to replace the definition of tracef by

#define tracef(...) do { \
		if (UNLIKELY(_dqliteTracingEnabled)) { \
			__builtin_trap(); \
		} \
	} while (0)

@cole-miller
Copy link
Contributor Author

I wonder if the _dqliteTracingEnabled static is getting duplicated somehow.

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

No branches or pull requests

2 participants