Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5034 Discussions

Error: Data file is corrupted

nadoo
Beginner
1,780 Views

I am running vtune 2022.1 on a centos7 machine to analyze the hotspot consumption of a business process. When I run the hotspot collection, the resulting data file is corrupted. This error occurs many times

 

Some background info:

$ uname -a
Linux tlinux2-2 3.10.107-1-tlinux2_kvm_guest-0049 #1 SMP Tue Jul 30 23:46:29 CST 2019 x86_64 x86_64 x86_64 GNU/Linux
$ vtune --version
Intel(R) VTune(TM) Profiler 2022.1.0 (build 621966) Command Line Tool
Copyright (C) 2009-2021 Intel Corporation. All rights reserved.

 

Here is the error:

$ date && vtune -run-pass-thru=--no-altstack -collect hotspots -duration 300 -target-pid 4110 && date 
2022-05-09 15:13:20 CST
vtune: Warning: Hardware collection of CPU events is not possible on this system. Microarchitecture performance insights will not be available.
vtune: Collection started. To stop the collection, either press CTRL-C or enter from another console window: vtune -r /data/home/nadoo/data/r001hs -command stop.
vtune: Collection detached.
vtune: Collection stopped.
vtune: Using result path `/data/home/nadoo/data/r001hs'
vtune: Executing actions 12 % Loading '32647-4110.0.trace' file
vtune: Error: Cannot load data file `/data/home/nadoo/data/r001hs/data.0/32647-4110.0.trace' (Data file is corrupted).
vtune: Executing actions 100 % done
vtune: Error: 0x40000025 (Inapplicable report) -- The report 'summary' is not applicable to the result /data/home/nadoo/data/r001hs/r001hs.vtune.

 

I found that every time this kind of data corruption error occurs, the business process disappears abnormally, by adding an audit rule that audits the kill operation in the audit service:

$ auditctl -a exit,always -F arch=b64 -S kill -S tkill -S tgkill -F a1!=0 -k my_audit_event

Part of the audit log:

$ ausearch -k my_audit_event |grep opid=4110 -C 5 |more
time->Mon May 9 15:13:21 2022
type=OBJ_PID msg=audit(1652080401.960:5240822): opid=4110 oauid=1000 ouid=1000 oses=168341 ocomm="arenasvr"
type=SYSCALL msg=audit(1652080401.960:5240822): arch=c000003e syscall=234 success=yes exit=0 a0=100e a1=100e a2=0 a3=0 items=0 ppid=6267 pid=6290 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=168341 tty=pts5 comm="pinbin" exe="/data/home/nadoo/intel/oneapi/vtune/2022.1.0/bin64/pinbin" key="my_audit_event"
----
time->Mon May 9 15:13:21 2022
type=OBJ_PID msg=audit(1652080401.960:5240823): opid=4110 oauid=1000 ouid=1000 oses=168341 ocomm="arenasvr"
type=SYSCALL msg=audit(1652080401.960:5240823): arch=c000003e syscall=234 success=yes exit=0 a0=100e a1=1183 a2=0 a3=0 items=0 ppid=6267 pid=6290 auid=1000 uid=1000 gid=1000 euid=10
00 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=168341 tty=pts5 comm="pinbin" exe="/data/home/nadoo/intel/oneapi/vtune/2022.1.0/bin64/pinbin" key="my_audit_event"
----
time->Mon May 9 15:13:21 2022
type=OBJ_PID msg=audit(1652080401.960:5240824): opid=4110 oauid=1000 ouid=1000 oses=168341 ocomm="arenasvr"
type=SYSCALL msg=audit(1652080401.960:5240824): arch=c000003e syscall=234 success=yes exit=0 a0=100e a1=1184 a2=0 a3=0 items=0 ppid=6267 pid=6290 auid=1000 uid=1000 gid=1000 euid=10
00 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=168341 tty=pts5 comm="pinbin" exe="/data/home/nadoo/intel/oneapi/vtune/2022.1.0/bin64/pinbin" key="my_audit_event"
----

Through the audit log, I found that the business process exited due to receiving a signal. This process '~/intel/oneapi/vtune/2022.1.0/bin64/pinbin' has many system calls, and system call 234 corresponds to #define __NR_tgkill 234 (reference: cat /usr/include/asm/unistd_64.h),

 

What is the process of 'pinbin', and why does it issue the command to kill the business process?

 

0 Kudos
6 Replies
JaideepK_Intel
Moderator
1,747 Views

Hi,

 

Thank you for posting in the Intel Communities.

 

As you mentioned, you are using Vtune 2022.1 on Centos 7, which is deprecated in this release, Intel® OneAPI 2022.1, and will be removed in a future release. So, could you please try it on a supported operating system and let us know?

JaideepK_Intel_0-1652186624193.png

 

System requirements link:

https://www.intel.com/content/www/us/en/developer/articles/system-requirements/vtune-profiler-system-requirements.html

 

Thanks,

Jaideep

 

 

 

0 Kudos
nadoo
Beginner
1,729 Views

Hi, according to the list of supported operating systems, centos7.2 is supported.

$ cat /etc/centos-release 
CentOS Linux release 7.2 (Final)

 

nadoo_0-1652260600874.png

Thanks,

Nadoo

0 Kudos
JaideepK_Intel
Moderator
1,709 Views

Hi,

 

We informed our team to make changes to the documentation to avoid confusion. We tried to run a 5-minute application with the command you provided and it was running fine without any issues on Centos 7, and it took a few seconds to analyze the data. Please go through the attached screen shots.

Details :

OS : Linux (Centos7 distribution)

VTune Version: 2022.1

JaideepK_Intel_0-1652356304500.jpeg

JaideepK_Intel_1-1652356319129.jpeg

 

Could you please answer the following questions:

1. Are you trying to run your application inside of a VM?

2. Please, can you share the exact steps you followed and a sample reproducer (a sample application that is similar to the application you are trying to analyze)?

 

Thanks,

Jaideep

 

0 Kudos
JaideepK_Intel
Moderator
1,677 Views

Hi,


Could you please share the details mentioned above? so we can reproduce your issue from our end.


Thanks,

Jaideep


0 Kudos
JaideepK_Intel
Moderator
1,651 Views

Hi,


Could you please share the details mentioned above? so we can reproduce your issue from our end.


Thanks,

Jaideep


0 Kudos
JaideepK_Intel
Moderator
1,623 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks,

Jaideep


0 Kudos
Reply