Unit test failures on fresh checkout (ASSERT_EXIT segfault)

Hey there,

I’m new to TVM, just checked out v0.8 branch and followed the instructions to build the source and run the unit tests with “./tests/scripts/task_cpp_unittest.sh”

96% tests passed, 7 tests failed out of 178

Total Test time (real) =  33.02 sec

The following tests FAILED:
	  9 - InplaceArrayBase.BadExceptionSafety (SEGFAULT)
	 10 - InplaceArrayBase.ExceptionSafety (SEGFAULT)
	116 - Relay.OutOfStack_add (SEGFAULT)
	117 - Relay.OutOfStack_cast (SEGFAULT)
	118 - Relay.OutOfStack_packed_func (SEGFAULT)
	122 - Relay.OutOfStackLet (SEGFAULT)
	124 - Relay.LargeGraphPrint (SEGFAULT)

I noticed all these tests have ASSERT_EXIT blob in it, likely it is something wrong with my environment setup, any idea how to fix this?

Thanks!

Thanks for reporting, this is very valuable information! Given it’s not reproducible in our CI system right now, would you like to dig a bit with gdb/lldb, and let us know what happens on those segfault?

Thanks for replying @junrushao ! Yes… just figured it out. It is because of some shared library conflicts. I have installed some version of googletest locally and the instructions in the wiki had me install another version from the project HEAD… and they don’t work well with each other. After removing the new googletest installation, it works.

By the way, is there any active Slack channel for discussions besides this forum?

1 Like

We do have a discord server to quick chats :slight_smile: For questions, I believe it’s better to use the forum because it’s archivable and publicly available, which could help save others’ time if they encounter the same issue

1 Like

Makes sense, thanks!

I’m wondering if there is any good starter issue to take up for someone w/ reasonable deep learning dev experience but no compiler stack experience? I saw 3 issues marked #beginner-friendly https://github.com/apache/tvm/issues?q=is%3Aopen+is%3Aissue+label%3Abeginner-friendly, any recommendation which to start with (better with some initial beginner guidance as well)?