Skip to content

[WIP] [core] Avoid linux direct syscall - #49512

Closed
dentiny wants to merge 1 commit into
ray-project:masterfrom
dentiny:hjiang/avoid-linux-syscall
Closed

dentiny wants to merge 1 commit into
ray-project:masterfrom
dentiny:hjiang/avoid-linux-syscall

Conversation

@dentiny

@dentiny dentiny commented Dec 31, 2024

Copy link
Copy Markdown
Contributor

I feel really confused why do we use syscall, when there's already library support.
Checking the manpage: https://man7.org/linux/man-pages/man2/gettid.2.html, it's been supported from 2.4.11, which is pretty old days.

I suspect it could be related to our segfault issue in #49222 (comment)
It's just a suspicion, no real concrete clue due to missing symbol in released version. Let me know if you have better ideas.

@dentiny dentiny added the go add ONLY when ready to merge, run all tests label Dec 31, 2024
@jjyao

jjyao commented Dec 31, 2024

Copy link
Copy Markdown
Contributor

Build failure:


In file included from bazel-out/k8-opt/bin/src/ray/common/_virtual_includes/id/ray/common/id.h:29,
--
  | [2024-12-31T11:53:22Z]                  from src/ray/core_worker/lib/java/jni_utils.h:23,
  | [2024-12-31T11:53:22Z]                  from src/ray/core_worker/lib/java/io_ray_runtime_context_NativeWorkerContext.cc:19:
  | [2024-12-31T11:53:22Z] bazel-out/k8-opt/bin/src/ray/util/_virtual_includes/util/ray/util/util.h: In function 'pid_t GetTid()':
  | [2024-12-31T11:53:22Z] bazel-out/k8-opt/bin/src/ray/util/_virtual_includes/util/ray/util/util.h:112:32: error: 'gettid' was not declared in this scope; did you mean 'getgid'?
  | [2024-12-31T11:53:22Z]   112 \| inline pid_t GetTid() { return gettid(); }
  | [2024-12-31T11:53:22Z]       \|                                ^~~~~~
  | [2024-12-31T11:53:22Z]       \|                                getgid
  | [2024-12-31T11:53:23Z] Target //java:ray_java_pkg failed to build


@dentiny

dentiny commented Dec 31, 2024

Copy link
Copy Markdown
Contributor Author

I need to check the symbol

@dentiny
dentiny marked this pull request as draft December 31, 2024 17:54
@dentiny dentiny changed the title [core] Avoid linux direct syscall [WIP] [core] Avoid linux direct syscall Dec 31, 2024
@dentiny

dentiny commented Dec 31, 2024

Copy link
Copy Markdown
Contributor Author

Doesn't seem to be the correct move

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-backlog go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants