Skip to content

[Log] Ignore callstacktrace test for windows - #11413

Merged
kfstorm merged 1 commit into
ray-project:masterfrom
antgroup:ignore-windows-stack-test
Oct 20, 2020
Merged

kfstorm merged 1 commit into
ray-project:masterfrom
antgroup:ignore-windows-stack-test

Conversation

@ashione

@ashione ashione commented Oct 15, 2020

Copy link
Copy Markdown
Member

Why are these changes needed?

Related issue number

Checks

@ashione
ashione requested a review from kfstorm October 15, 2020 12:43
@rkooo567

Copy link
Copy Markdown
Contributor

Why do we do this? Is this not working on Windows?

@rkooo567 rkooo567 self-assigned this Oct 16, 2020
@ashione

ashione commented Oct 16, 2020

Copy link
Copy Markdown
Member Author

Why do we do this? Is this not working on Windows?

Max depth of GetStackStrace is 32, but It will dump more than 32 frames before test case so we can't catch the all stack frames within 32 depth size.

@ashione

ashione commented Oct 16, 2020

Copy link
Copy Markdown
Member Author

Why do we do this? Is this not working on Windows?

Max depth of GetStackStrace is 32, but It will dump more than 32 frames before test case so we can't catch the all stack frames within 32 depth size.

You may find the detail in https://github.com/ray-project/ray/pull/11410/checks?check_run_id=1257791585

@ashione

ashione commented Oct 16, 2020

Copy link
Copy Markdown
Member Author

These are stacktrace on windows. I have no idea about that. It looks like other thread stack not main thread where gtest test case run in.

    @   00007FF669B968C0  public: class std::basic_ostream<char,struct std::char_traits<char> > * __ptr64 __cdecl google::base::CheckOpMessageBuilder::ForVar1(void) __ptr64
    @   00007FF669B956DF  public: virtual void __cdecl google::LogSink::WaitTillSent(void) __ptr64
    @   00007FF669B951BC  public: virtual void __cdecl google::LogSink::WaitTillSent(void) __ptr64
    @   00007FF669BA3D4C  bool __cdecl google::Demangle(char const * __ptr64,char * __ptr64,int)
    @   00007FF669BA3C36  bool __cdecl google::Demangle(char const * __ptr64,char * __ptr64,int)
    @   00007FF669BB54DC  bool __cdecl google::Demangle(char const * __ptr64,char * __ptr64,int)
    @   00007FF669BB527D  bool __cdecl google::Demangle(char const * __ptr64,char * __ptr64,int)
    @   00007FF669BB5D08  bool __cdecl google::Demangle(char const * __ptr64,char * __ptr64,int)
    @   00007FF669BA3DEC  bool __cdecl google::Demangle(char const * __ptr64,char * __ptr64,int)
    @   00007FF669BA3D16  bool __cdecl google::Demangle(char const * __ptr64,char * __ptr64,int)
    @   00007FF669BB571C  bool __cdecl google::Demangle(char const * __ptr64,char * __ptr64,int)
    @   00007FF669B95AAF  public: virtual void __cdecl google::LogSink::WaitTillSent(void) __ptr64
    @   00007FF669BC1760  bool __cdecl google::Demangle(char const * __ptr64,char * __ptr64,int)
    @   00007FF8E8237974  BaseThreadInitThunk
    @   00007FF8E839A271  RtlUserThreadStart

@kfstorm

kfstorm commented Oct 16, 2020

Copy link
Copy Markdown
Member

@ashione Are you suggesting that GetCallTrace doesn't work on Windows?

@rkooo567

Copy link
Copy Markdown
Contributor

+1 for @kfstorm's qusetion.

@ashione

ashione commented Oct 19, 2020

Copy link
Copy Markdown
Member Author

@rkooo567 @kfstorm I'll check code path of glog getcallstack on windows. I suspect this feature was originally unreliable.

@ashione

ashione commented Oct 19, 2020 •

Copy link
Copy Markdown
Member Author

Stacktrace seems unsupported in glog of ray on windows. I find the glog patch google/glog#168 porting a feature to windows about OS stacktrace. @rkooo567 @kfstorm it's workaround by merging this PR and think about how to get glog's patch in later.

@kfstorm
kfstorm merged commit aed739f into ray-project:master Oct 20, 2020
@kfstorm
kfstorm deleted the ignore-windows-stack-test branch October 20, 2020 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants