Skip to content

Conversation

@alisaklak
Copy link

Summary

grep -P triggers PCRE JIT which depends on AVX CPU instructions. On systems without AVX
(for example many VMware ESXi hosts and older Xeon CPUs), this results in a crash during
Talk relay startup:

Illegal instruction (core dumped)

This prevents the Talk High Performance Backend from running on those environments.


What this PR changes

Replaces:

grep -oP

with:

grep -oE

in Containers/talk/start.sh.


Why this works

grep -E uses the POSIX Extended Regular Expression engine, which:

  • does not use PCRE JIT
  • does not require AVX CPU instructions
  • produces identical matching behavior for this pattern

This makes the script compatible with a wider range of hardware.


Result

Talk relay startup now works correctly on:

  • VMware ESXi hosts
  • Older Xeon CPUs without AVX

There is:

  • No functional behavior change
  • No performance impact
  • No configuration change required

Testing

Verified on:

  • ESXi 7.0.0 host
  • Intel Xeon CPU (no AVX support)
  • Nextcloud AIO Talk container starts and runs normally.

@szaimen szaimen added the 2. developing Work in progress label Dec 3, 2025
@szaimen szaimen marked this pull request as draft December 3, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants