Re: [DynInst_API:] mutateLibcuda segfaults


Date: Fri, 8 May 2020 22:15:53 +0000
From: NISARG SHAH <nisargs@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] mutateLibcuda segfaults
Hi Ilya,

>From the backtrace, it looks like the error is due to the program not being able to read from a temporary file "MS_outputids.bin" that is creates initially. Can you check if it exists in the directory from where you ran the program? Also, can you check if 5 *.dot files are present in the same directory?

Thanks
Nisarg


From: Dyninst-api <dyninst-api-bounces@xxxxxxxxxxx> on behalf of Ilya Zhukov <i.zhukov@xxxxxxxxxxxxx>
Sent: Wednesday, May 6, 2020 7:16 AM
To: dyninst-api@xxxxxxxxxxx <dyninst-api@xxxxxxxxxxx>
Subject: [DynInst_API:] mutateLibcuda segfaults
 
Dear dyinst developers,

I'm testing your cuda_sync_analyze tool on our cluster for CUDA/10.1.105.

I installed dyinst and cuda_sync_analyze (cmake and make logs in attach)
successfully. But I get segmentation fault when I create fake CUDA library.

Here is a backtrace
> #0  0x00002b0a9658c4bc in fseek () from /usr/lib64/libc.so.6
> #1  0x00002b0a93b7eb29 in LaunchIdentifySync::PostProcessing (this=this@entry=0x7fff1af88af0, allFound=...) at /p/project/cslts/zhukov1/work/tools/dyninst/tools/cuda_sync_analyzer/src/LaunchIdentifySync.cpp:90
> #2  0x00002b0a93b7c00f in CSA_FindSyncAddress(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) () at /p/project/cslts/zhukov1/work/tools/dyninst/tools/cuda_sync_analyzer/src/FindCudaSync.cpp:34
> #3  0x00000000004021fb in main () at /p/project/cslts/zhukov1/work/tools/dyninst/tools/cuda_sync_analyzer/src/main.cpp:15
> #4  0x00002b0a96537505 in __libc_start_main () from /usr/lib64/libc.so.6
> #5  0x000000000040253e in _start () at /p/project/cslts/zhukov1/work/tools/dyninst/tools/cuda_sync_analyzer/src/main.cpp:38

Any help will be appreciated. If you need anything else let me know.

Best wishes,
Ilya
--
Ilya Zhukov
Juelich Supercomputing Centre
Institute for Advanced Simulation
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49-2461-61-2054
Fax: +49-2461-61-2810
E-mail: i.zhukov@xxxxxxxxxxxxx
WWW: http://www.fz-juelich.de/jsc
[← Prev in Thread] Current Thread [Next in Thread→]