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

cannot remove temporal uftrace.data directories for testing when built with ASAN=1 #1845

Open
kangtegong opened this issue Nov 3, 2023 · 0 comments

Comments

@kangtegong
Copy link
Contributor

Here is the environment where the problem occurred:

$ uname -a
Linux minchul 5.15.0-67-generic #74~20.04.1-Ubuntu SMP Wed Feb 22 14:52:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

When I ran runtests.py with ASAN=1 like below,

$ make ASAN=1 && sudo make install
$ cd tests/
$ ./runtests.py

temporal directories for tests are not deleted with following messages.

... skipped...
269 arg_no_args_replay  : OK OK OK OK OK SK SK SK SK SK OK OK OK OK OK  OK OK OK OK OK SK SK SK SK SK OK OK OK OK OK
270 arg_no_args_dump    : OK OK OK OK OK SK SK SK SK SK OK OK OK OK OK  OK OK OK OK OK SK SK SK SK SK OK OK OK OK OK
271 script_event        : NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ  NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ
272 dump_mermaid        : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK  OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
rm: cannot remove '/tmp/test_agent_3b21r3fo/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_2_ibqbl1/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_acq99rz4/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_w1snqq20/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_upgc9zhr/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_k8b79en8/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_gw_rjib5/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_yg987epr/uftrace.data': Directory not empty
273 agent_basic         : OK OK OK OK OK OK OK NZ OK OK NZ NZ NZ NZ NZ  NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ
274 filter_loc1         : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK  OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
275 filter_loc2         : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK  OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
276 filter_loc3         : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK  OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
277 time_range3         : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK  OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
278 size_filter1        : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK  OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
279 size_filter2        : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK  OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
280 size_filter3        : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK  OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
rm: cannot remove '/tmp/test_agent_6kt6dcao/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_az8y3tu6/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_3nxu6ofc/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_nyzqzz28/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_3zunb8y6/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent__8ycthox/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_jqlsngap/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_v8f5bpui/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_avf2h_qn/uftrace.data': Directory not empty
281 agent_trace_toggle  : OK OK OK OK NZ NZ NZ NZ NZ OK NZ NZ NZ NZ NZ  OK NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ OK NZ NZ NZ
282 agent_depth         : OK OK OK OK NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ  NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ
283 agent_time          : OK OK OK NZ OK NZ NZ OK NZ NZ NZ NZ NZ NZ NZ  NZ NZ NZ NZ NZ NZ NZ NZ NZ OK NZ NZ NZ OK NZ
rm: cannot remove '/tmp/test_agent_70i_skk0/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_s8ken8ne/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_ff1n6ibw/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_uls29hzh/uftrace.data': Directory not empty
rm: cannot remove '/tmp/test_agent_78qqrfej/uftrace.data': Directory not empty
284 agent_filter        : OK NZ NZ OK NZ NZ NZ NZ NZ OK OK NZ NZ NZ NZ  NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ
285 agent_caller_filter : OK OK NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ  OK NZ NZ NZ NZ OK NZ NZ NZ NZ NZ NZ NZ NZ NZ
286 agent_trigger       : OK NZ NZ NZ NZ NZ NZ NZ NZ OK NZ NZ NZ NZ NZ  NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ NZ


runtime test stats
====================
total  8580  Tests executed (success: 76.17%)
  OK:  6395  Test succeeded
  OK:   140  Test succeeded (with some fixup)
  NG:    64  Different test result
  NZ:   669  Non-zero return value
  SG:     2  Abnormal exit by signal
  TM:     0  Test ran too long
  BI:    15  Build failed
  LA:     0  Unsupported Language
  SK:  1295  Skipped

And as you can see the command below, uftrace.data for testing remains, and I had to remove them manually.

$ ls /tmp/test_agent_*
/tmp/test_agent_2_ibqbl1:
uftrace.data

/tmp/test_agent_3b21r3fo:
uftrace.data

/tmp/test_agent_3nxu6ofc:
uftrace.data

/tmp/test_agent_3zunb8y6:
uftrace.data

/tmp/test_agent_6kt6dcao:
uftrace.data

/tmp/test_agent_70i_skk0:
uftrace.data

/tmp/test_agent_78qqrfej:
uftrace.data

... skipped ...

Weird thing is, problem above does not occur when not built with ASAN=1 flag like below.

$ make && sudo make install

I'll try to diagnose the cause of this issue,
but if you have any ideas or have encountered a similar problem, I'd love to hear about it.

Thanks :)

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

No branches or pull requests

1 participant