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

Segmentation fault (core dumped) when using progressbar on PHP 8.1+ #26

Closed
hschimpf opened this issue Jul 9, 2024 · 4 comments
Closed
Labels
bug Something isn't working need more info No enought information, need more analysis

Comments

@hschimpf
Copy link
Owner

hschimpf commented Jul 9, 2024

The process fails when the progress bar is enabled on PHP versions 8.1 and following.

// register worker
Scheduler::using($worker, $multipliers)
// init progress bar for worker
->withProgress(steps: $total);

@hschimpf hschimpf added the bug Something isn't working label Jul 9, 2024
@hschimpf
Copy link
Owner Author

hschimpf commented Jul 9, 2024

We have array access everywhere, maybe related to krakjoe/parallel#306 ?

Maybe not 🫤

@hschimpf hschimpf added the need more info No enought information, need more analysis label Jul 9, 2024
@realFlowControl
Copy link

Looks like you have a core dump, can you open an issue with a reproducer at https://github.com/krakjoe/parallel/issues/new ?
In the issue please also post the stacktrace.
I assume you are running on the latest released version? The current develop branch has a known issue.

@hschimpf
Copy link
Owner Author

hschimpf commented Jul 9, 2024

... can you open an issue with a reproducer ... ?

Sure thing, opened here

In the issue please also post the stacktrace.

Done

I assume you are running on the latest released version? ...

Yes, I'm using ext-parallel v1.2.2

@hschimpf
Copy link
Owner Author

hschimpf commented Nov 4, 2024

ext-parallel v1.2.5 solves the issue on PHP v8.2, v8.3, and v8.4.

PHP v8.1 still fails when using the progress bar 😭.

Migrating to PHP v8.2+ when is possible.

@hschimpf hschimpf closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need more info No enought information, need more analysis
Projects
None yet
Development

No branches or pull requests

2 participants