r-lib / processx

Execute and Control Subprocesses from R
https://processx.r-lib.org/
Other
232 stars 43 forks source link

Test failure on 10.6.8: Error ('test-ps-methods.R:18'): ps methods #352

Closed barracuda156 closed 1 year ago

barracuda156 commented 1 year ago
* checking tests ... ERROR
  Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:

  ══ Failed ══════════════════════════════════════════════════════════════════════
  ── 1. Error ('test-ps-methods.R:18'): ps methods ───────────────────────────────
  <os_error/ps_error/error/condition>
  Error: Operation not supported
  Backtrace:
   1. testthat::expect_equal(p$get_wd(), ps::ps_cwd(ps))
        at test-ps-methods.R:18:2
   4. p$get_wd()
   5. processx:::ps_method(ps::ps_cwd, self)
   6. ps (local) fun(ps::ps_handle(self$get_pid(), self$get_start_time()))

  ══ DONE ════════════════════════════════════════════════════════════════════════
  Error: Test failures
  Execution halted
* checking PDF version of manual ... OK
* DONE
Status: 1 ERROR
barracuda156 commented 1 year ago

R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.8.0 (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(testthat)
R(17687,0xa0dfb620) malloc: *** error for object 0xa0d51754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0xa0d517c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e52c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e4928: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e4890: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e48dc: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e47c8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e46a0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e45c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e4630: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e44f8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e5200: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e5380: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e538c: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
R(17687,0xa0dfb620) malloc: *** error for object 0x34e53a8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
> library(processx)
> 
> test_check("processx", reporter = "summary")
assertions: ........................................................................................................................................................................
chr-io: ...........
cleanup: ..
client-lib: ............................................................
connections: ..................
env: ...
err-output: SSSSSSS
err: .............................................................................S...S...SSSSSS..
errors: ..........S
extra-connections: SSS
fifo: SSSS
io: ..................S..........
kill-tree: SSSSSSS
poll-connections: .........
poll-curl: SSS
poll-stress: S
poll: ................
poll2: ......................................................................................................
poll3: .........
print: ..
process: ..........
ps-methods: .......1
pty: SSSS
run: ......................................................................S...........
set-std: ............................
sigchld: SSSSSSSS
stdin: SSSSSS
stress: SSS
unix-sockets: SSSSSSSSSS
utf8: SSSSSSS
utils: SS..........................................
wait: S.......S

══ Skipped ═════════════════════════════════════════════════════════════════════
1. simple error ('test-err-output.R:8') - Reason: On CRAN

2. simple error with cli ('test-err-output.R:25') - Reason: On CRAN

3. simple error with cli and colors ('test-err-output.R:44') - Reason: On CRAN

4. chain_error ('test-err-output.R:78') - Reason: On CRAN

5. chain_error with stop() ('test-err-output.R:124') - Reason: On CRAN

6. chain_error with rlang::abort() ('test-err-output.R:157') - Reason: On CRAN

7. full parent error is printed in non-interactive mode ('test-err-output.R:178') - Reason: On CRAN

8. un-caught condition has trace ('test-err.R:81') - Reason: On CRAN

9. errors from subprocess ('test-err.R:128') - Reason: only with callr 3.7.0

10. error trace from subprocess ('test-err.R:148') - Reason: On CRAN

11. error trace from subprocess ('test-err.R:185') - Reason: On CRAN

12. error trace from throw() in subprocess ('test-err.R:216') - Reason: On CRAN

13. error trace from throw() in subprocess ('test-err.R:253') - Reason: On CRAN

14. trace is not overwritten ('test-err.R:284') - Reason: On CRAN

15. error is printed on error ('test-err.R:294') - Reason: On CRAN

16. output from error ('test-errors.R:71') - Reason: On CRAN

17. writing to extra connection ('test-extra-connections.R:4') - Reason: On CRAN

18. reading from extra connection ('test-extra-connections.R:28') - Reason: On CRAN

19. reading and writing to extra connection ('test-extra-connections.R:57') - Reason: On CRAN

20. read end first ('test-fifo.R:3') - Reason: On CRAN

21. write end first ('test-fifo.R:49') - Reason: On CRAN

22. write end first 2 ('test-fifo.R:96') - Reason: On CRAN

23. errors ('test-fifo.R:130') - Reason: On CRAN

24. readChar on IO, windows ('test-io.R:133') - Reason: only run it on windows

25. tree ids are inherited ('test-kill-tree.R:3') - Reason: On CRAN

26. tree ids are inherited if env is specified ('test-kill-tree.R:33') - Reason: On CRAN

27. kill_tree ('test-kill-tree.R:65') - Reason: On CRAN

28. kill_tree with children ('test-kill-tree.R:83') - Reason: On CRAN

29. kill_tree and orphaned children ('test-kill-tree.R:112') - Reason: On CRAN

30. cleanup_tree option ('test-kill-tree.R:148') - Reason: On CRAN

31. cleanup_tree stress test ('test-kill-tree.R:168') - Reason: On CRAN

32. curl fds ('test-poll-curl.R:7') - Reason: On CRAN

33. curl fds before others ('test-poll-curl.R:57') - Reason: On CRAN

34. process fd before curl fd ('test-poll-curl.R:89') - Reason: On CRAN

35. many processes ('test-poll-stress.R:3') - Reason: On CRAN

36. fails in windows ('test-pty.R:3') - Reason: only run it on windows

37. pty works ('test-pty.R:11') - Reason: On CRAN

38. pty echo ('test-pty.R:31') - Reason: On CRAN

39. read_output_lines() fails for pty ('test-pty.R:57') - Reason: On CRAN

40. condition on interrupt ('test-run.R:99') - Reason: On CRAN

41. is_alive() ('test-sigchld.R:4') - Reason: On CRAN

42. finalizer ('test-sigchld.R:32') - Reason: On CRAN

43. get_exit_status ('test-sigchld.R:58') - Reason: On CRAN

44. signal ('test-sigchld.R:84') - Reason: On CRAN

45. kill ('test-sigchld.R:117') - Reason: On CRAN

46. SIGCHLD handler ('test-sigchld.R:147') - Reason: On CRAN

47. Notify old signal handler ('test-sigchld.R:180') - Reason: On CRAN

48. it is ok if parallel has no active cluster ('test-sigchld.R:218') - Reason: On CRAN

49. stdin ('test-stdin.R:4') - Reason: On CRAN

50. stdin & stdout ('test-stdin.R:26') - Reason: On CRAN

51. stdin buffer full ('test-stdin.R:48') - Reason: On CRAN

52. file as stdin ('test-stdin.R:64') - Reason: On CRAN

53. large file as stdin ('test-stdin.R:83') - Reason: On CRAN

54. writing raw ('test-stdin.R:101') - Reason: On CRAN

55. can start 100 processes quickly ('test-stress.R:3') - Reason: On CRAN

56. run() a lot of times, with small timeouts ('test-stress.R:10') - Reason: On CRAN

57. run() and kill while polling ('test-stress.R:25') - Reason: On CRAN

58. CRUD ('test-unix-sockets.R:3') - Reason: On CRAN

59. client can read / write before accept ('test-unix-sockets.R:63') - Reason: On CRAN

60. poll returns connect ('test-unix-sockets.R:84') - Reason: On CRAN

61. poll returns connect even if pipes are connected ('test-unix-sockets.R:100') - Reason: On CRAN

62. reading unaccepted server socket is error ('test-unix-sockets.R:116') - Reason: On CRAN

63. writing unaccepted server socket is error ('test-unix-sockets.R:137') - Reason: On CRAN

64. here is no extra ready for poll(), without data ('test-unix-sockets.R:158') - Reason: On CRAN

65. closing the other end finishes `poll()`, on macOS ('test-unix-sockets.R:182') - Reason: On CRAN

66. errors ('test-unix-sockets.R:224') - Reason: On CRAN

67. unix-sockets.h ('test-unix-sockets.R:240') - Reason: On CRAN

68. UTF-8 executable name ('test-utf8.R:3') - Reason: On CRAN

69. UTF-8 directory name ('test-utf8.R:18') - Reason: On CRAN

70. UTF-8 argument ('test-utf8.R:44') - Reason: only run it on windows

71. native program name is converted to UTF-8 ('test-utf8.R:54') - Reason: only run it on windows

72. native args are converted to UTF-8 ('test-utf8.R:64') - Reason: only run it on windows

73. UTF-8 in stdout ('test-utf8.R:85') - Reason: On CRAN

74. UTF-8 in stderr ('test-utf8.R:93') - Reason: On CRAN

75. full_path gives correct values ('test-utils.R:4') - Reason: On CRAN

76. full_path gives correct values, windows ('test-utils.R:40') - Reason: only run it on windows

77. no deadlock when no stdout + wait ('test-wait.R:4') - Reason: failure would freeze

78. no fd leak on unix ('test-wait.R:48') - Reason: On CRAN

══ Failed ══════════════════════════════════════════════════════════════════════
── 1. Error ('test-ps-methods.R:18'): ps methods ───────────────────────────────
<os_error/ps_error/error/condition>
Error: Operation not supported
Backtrace:
 1. testthat::expect_equal(p$get_wd(), ps::ps_cwd(ps))
      at test-ps-methods.R:18:2
 4. p$get_wd()
 5. processx:::ps_method(ps::ps_cwd, self)
 6. ps (local) fun(ps::ps_handle(self$get_pid(), self$get_start_time()))

══ DONE ════════════════════════════════════════════════════════════════════════
Error: Test failures
Execution halted
gaborcsardi commented 1 year ago

Unfortunately it is unlikely that I'll be able to fix this. The powerpc-apple-darwin10.8.0 platform is not one that I can support.