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

AL test failure: AL_MayaUtilsTests (SEGFAULT) #238

Closed
pmolodo opened this issue Jan 31, 2020 · 4 comments
Closed

AL test failure: AL_MayaUtilsTests (SEGFAULT) #238

pmolodo opened this issue Jan 31, 2020 · 4 comments
Labels
al Related to AnimalLogic plugin bug Something isn't working unit test Related to unit tests (both python or c++)

Comments

@pmolodo
Copy link
Contributor

pmolodo commented Jan 31, 2020

Don't have too much more info on this one, but I get a segfault when running this test. This is the only output:

 1/77 Test #69: AL_MayaUtilsTests ...............................***Exception: SegFault  3.68 sec

This crashes in both debug and release builds. It seems to finish successfully - I see the happy green dino - but then it segfaults on python exit (with no stack trace):

[  PASSED  ] 36 tests.
               __
              /"_)
     _.----._/ /
    /         /
 __/ (  | (  |
/__.-'|_|--|_|
Stack trace:


0% tests passed, 1 tests failed out of 1

Does anyone else see this behavior on Linux?

@pmolodo
Copy link
Contributor Author

pmolodo commented Jan 31, 2020

Also, I noticed that the return code from the test isn't used / returned:

ret=maya.mel.eval('AL_maya_test_UnitTestHarness'); \

@HamedSabri-adsk
Copy link
Contributor

sts/mayaplugintest/CMakeLists.txt

we don't need the ret= , I already have it removed locally with some other changes for the next PR. not a big deal for now.

As for Linux, I don't see this problem either in debug or release. The SegFault rings a bell and it was a case on MacOSX when we were linking statically against gtest. After we switched to linking dynamically to gtest, SegFault went away... That's all I know....

@ppt-adsk
Copy link
Collaborator

ppt-adsk commented Feb 1, 2020

I've seen the Python crash on exit problem in our mayaUsd lib tests, and I fixed it here:
6cf32fb
Not sure if that's what you're hitting, but if the renderSetup plugin is loaded, might be worth a try unloading it before exit.

@cfmoore007 cfmoore007 added the bug Something isn't working label Feb 26, 2020
@kxl-adsk kxl-adsk added unit test Related to unit tests (both python or c++) al Related to AnimalLogic plugin labels Mar 2, 2020
@pmolodo
Copy link
Contributor Author

pmolodo commented Mar 10, 2020

closing this since it's a dupe of #316, and that one has a bit more details...

@pmolodo pmolodo closed this as completed Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
al Related to AnimalLogic plugin bug Something isn't working unit test Related to unit tests (both python or c++)
Projects
None yet
Development

No branches or pull requests

5 participants