Skip to content

Testing crashes randomly #16

@cpunion

Description

@cpunion

When call runtime.GC() after every case, some case crashes randomly, currently workaround by disable automatic DecRef.

func setupTest(t *testing.T) {
	testMutex.Lock()
	Initialize()
	// TODO: Remove this once we solve random segfaults
	getGlobalData().disableDecRef = true
	t.Cleanup(func() {
		runtime.GC()
		Finalize()
		testMutex.Unlock()
	})
}

Need locate the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions