Skip to content

Reading named pipes on linux in OpenJDK gives me "OSError, [Errno 5] Illegal seek" #526

@HolgerHees

Description

@HolgerHees

I'm using graalpy 24.2.1 as a maven dependency for my Java Project running in OpenJDK.

If I try to read from a named pipe on linux like below

cd /tmp/
mkfifo myPipe
echo "My pipe content" > myPipe

and my python code looks like

file = open("/tmp/myPipe", "rb")
file.read(1)

running the above example with graalpy binary, it works. But if I run the same in OpenJDK, I get "OSError, [Errno 5] Illegal seek"

The context is created with

.allowHostAccess(HostAccess.ALL)
.allowAllAccess(true)
.hostClassLoader(getClass().getClassLoader())
.allowNativeAccess(true)
.allowExperimentalOptions(true)
.option("python.PosixModuleBackend", "java")

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions