Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault
@ 2024-02-02 21:50 TinfoilSubmarine
  2024-02-02 21:52 ` TinfoilSubmarine
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: TinfoilSubmarine @ 2024-02-02 21:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

New issue by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/48500

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.11_1 x86_64 AuthenticAMD uptodate rrmFFFFFFFFFFFFFFFFFFF

### Package(s) Affected

php8.1-imagick-3.7.0_9, php8.2-imagick-3.7.0_9, php8.3-imagick-3.7.0_2

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

https://github.com/Imagick/imagick/issues/609
https://github.com/Imagick/imagick/issues/636

### Expected behaviour

Using the PHP executable should suceed.

### Actual behaviour

Segfaults immediately no matter what:
```
$ php -a                                                                                             
zsh: segmentation fault  php -a
$ php                                                                                            
zsh: segmentation fault  php
$ php --version                                                                                  
zsh: segmentation fault  php --version                                                                                       
```

### Steps to reproduce

1. Install any php version available in void-packages as well as the relevant imagick (e.g. `xi php8.3-imagick`).
2. Enable imagick in php.ini: `extension=imagick`.
3. Run the `php` executable with any arguments.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
@ 2024-02-02 21:52 ` TinfoilSubmarine
  2024-02-02 21:53 ` TinfoilSubmarine
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: TinfoilSubmarine @ 2024-02-02 21:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1924754633

Comment:
As mentioned in [this thread](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109634#c4), these are some options:

> libgomp can be only dlopened in threaded apps if there is still space in the static TLS surplus, which unfortunately some versions of glibc use even for normal TLS rather than just static TLS.
> So, LD_PRELOAD=libgomp.so.1, or link the program with libgomp.so.1 rather than just its libraries, or dlopen it before spawning threads.
> This is how glibc behaves, and unless we want to slow down libgomp extremely, there is nothing that can be done about it on the GCC side.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
  2024-02-02 21:52 ` TinfoilSubmarine
@ 2024-02-02 21:53 ` TinfoilSubmarine
  2024-02-02 22:07 ` classabbyamp
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: TinfoilSubmarine @ 2024-02-02 21:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1924757303

Comment:
I also should note that this only started occurring with the update to `libgomp-13.2.0_1`.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
  2024-02-02 21:52 ` TinfoilSubmarine
  2024-02-02 21:53 ` TinfoilSubmarine
@ 2024-02-02 22:07 ` classabbyamp
  2024-02-02 22:15 ` TinfoilSubmarine
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-02-02 22:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1924773487

Comment:
maybe it needs a rebuild for the new libgomp?

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (2 preceding siblings ...)
  2024-02-02 22:07 ` classabbyamp
@ 2024-02-02 22:15 ` TinfoilSubmarine
  2024-02-03  2:20 ` sgn
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: TinfoilSubmarine @ 2024-02-02 22:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1924781100

Comment:
Already tried

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (3 preceding siblings ...)
  2024-02-02 22:15 ` TinfoilSubmarine
@ 2024-02-03  2:20 ` sgn
  2024-02-03  4:48 ` oreo639
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: sgn @ 2024-02-03  2:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925024082

Comment:
We may link php to libgomp instead?

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (4 preceding siblings ...)
  2024-02-03  2:20 ` sgn
@ 2024-02-03  4:48 ` oreo639
  2024-02-03  4:49 ` oreo639
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  4:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925092227

Comment:
The crash occurs in `initialize_env()`  on the following line: https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062

Importing 15345980633c502f0486a2e40e96224f49134130 in to libgomp does appear to fix the issue for me (adds an if statement before de-referencing).

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (5 preceding siblings ...)
  2024-02-03  4:48 ` oreo639
@ 2024-02-03  4:49 ` oreo639
  2024-02-03  4:50 ` oreo639
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  4:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925092227

Comment:
The crash occurs in `initialize_env()`  on the following line: https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062

Applying the following patch does appear to fix the issue for me https://github.com/gcc-mirror/gcc/commit/15345980633c502f0486a2e40e96224f49134130 in to libgomp does appear to fix the issue for me (adds an if statement before de-referencing).

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (6 preceding siblings ...)
  2024-02-03  4:49 ` oreo639
@ 2024-02-03  4:50 ` oreo639
  2024-02-03  4:52 ` oreo639
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  4:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925092227

Comment:
The crash occurs in `initialize_env()`  on the following line: https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062

Applying the following patch does appear to fix the issue for me https://github.com/gcc-mirror/gcc/commit/15345980633c502f0486a2e40e96224f49134130 in to libgomp does appear to fix the issue for me (adds an if statement before de-referencing `environ`).

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (7 preceding siblings ...)
  2024-02-03  4:50 ` oreo639
@ 2024-02-03  4:52 ` oreo639
  2024-02-03  4:54 ` oreo639
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  4:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925092227

Comment:
The crash occurs in `initialize_env()`  on the following line: https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062

Applying the following patch does appear to fix the issue for me https://github.com/gcc-mirror/gcc/commit/15345980633c502f0486a2e40e96224f49134130 in to libgomp does appear to fix the issue for me (adds an if statement before de-referencing `environ`).

It seems like fedora backported this patch to their branch (hence why no issues there).

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (8 preceding siblings ...)
  2024-02-03  4:52 ` oreo639
@ 2024-02-03  4:54 ` oreo639
  2024-02-03  4:54 ` oreo639
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  4:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 525 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925092227

Comment:
The crash occurs in `initialize_env()`  on the following line: https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062

Applying the following patch does appear to fix the issue for me https://github.com/gcc-mirror/gcc/commit/15345980633c502f0486a2e40e96224f49134130.
It seems like fedora backported this patch to their branch (hence why no issues there).

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (9 preceding siblings ...)
  2024-02-03  4:54 ` oreo639
@ 2024-02-03  4:54 ` oreo639
  2024-02-03  4:55 ` oreo639
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  4:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925092227

Comment:
The crash occurs in `initialize_env()`  on the following line: https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062

Applying the following patch does appear to fix the issue for me https://github.com/gcc-mirror/gcc/commit/15345980633c502f0486a2e40e96224f49134130.

It seems like fedora backported this patch to their branch (hence why no issues there).

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (10 preceding siblings ...)
  2024-02-03  4:54 ` oreo639
@ 2024-02-03  4:55 ` oreo639
  2024-02-03  4:57 ` oreo639
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  4:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925092227

Comment:
The crash occurs in `initialize_env()`  on the following line: https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062

Applying the following patch does appear to fix the issue for me https://github.com/gcc-mirror/gcc/commit/15345980633c502f0486a2e40e96224f49134130.

It seems like fedora backported this patch to their gcc branch (hence why no issues there).

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (11 preceding siblings ...)
  2024-02-03  4:55 ` oreo639
@ 2024-02-03  4:57 ` oreo639
  2024-02-03  5:06 ` oreo639
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  4:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 564 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925092227

Comment:
The crash occurs in `initialize_env()`  on the following line: https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062

Applying the following patch does appear to fix the issue for me https://github.com/gcc-mirror/gcc/commit/15345980633c502f0486a2e40e96224f49134130.

This patch was also backported to the gcc-13 branch: https://github.com/gcc-mirror/gcc/commits/releases/gcc-13/libgomp/env.c

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (12 preceding siblings ...)
  2024-02-03  4:57 ` oreo639
@ 2024-02-03  5:06 ` oreo639
  2024-02-03  8:29 ` oreo639
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  5:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925092227

Comment:
The crash occurs in `initialize_env()`  on the following line: https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062

Applying the following patch does appear to fix the issue for me https://github.com/gcc-mirror/gcc/commit/15345980633c502f0486a2e40e96224f49134130.

This patch was also backported to the gcc-13 branch: https://github.com/gcc-mirror/gcc/commits/releases/gcc-13/libgomp/env.c (and is also in Fedora's gcc 13.2 branch)

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (13 preceding siblings ...)
  2024-02-03  5:06 ` oreo639
@ 2024-02-03  8:29 ` oreo639
  2024-02-04 19:34 ` [ISSUE] [CLOSED] " TinfoilSubmarine
  2024-02-04 19:34 ` TinfoilSubmarine
  16 siblings, 0 replies; 18+ messages in thread
From: oreo639 @ 2024-02-03  8:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925216346

Comment:
@TinfoilSubmarine When you are avaliable, can you update and verify that libgomp-13.2.0_2 works for you?

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ISSUE] [CLOSED] All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (14 preceding siblings ...)
  2024-02-03  8:29 ` oreo639
@ 2024-02-04 19:34 ` TinfoilSubmarine
  2024-02-04 19:34 ` TinfoilSubmarine
  16 siblings, 0 replies; 18+ messages in thread
From: TinfoilSubmarine @ 2024-02-04 19:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

Closed issue by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/48500

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.11_1 x86_64 AuthenticAMD uptodate rrmFFFFFFFFFFFFFFFFFFF

### Package(s) Affected

php8.1-imagick-3.7.0_9, php8.2-imagick-3.7.0_9, php8.3-imagick-3.7.0_2

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

https://github.com/Imagick/imagick/issues/609
https://github.com/Imagick/imagick/issues/636

### Expected behaviour

Using the PHP executable should suceed.

### Actual behaviour

Segfaults immediately no matter what:
```
$ php -a                                                                                             
zsh: segmentation fault  php -a
$ php                                                                                            
zsh: segmentation fault  php
$ php --version                                                                                  
zsh: segmentation fault  php --version                                                                                       
```

### Steps to reproduce

1. Install any php version available in void-packages as well as the relevant imagick (e.g. `xi php8.3-imagick`).
2. Enable imagick in php.ini: `extension=imagick`.
3. Run the `php` executable with any arguments.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: All PHP versions with imagick enabled (`extension=imagick`) segfault
  2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
                   ` (15 preceding siblings ...)
  2024-02-04 19:34 ` [ISSUE] [CLOSED] " TinfoilSubmarine
@ 2024-02-04 19:34 ` TinfoilSubmarine
  16 siblings, 0 replies; 18+ messages in thread
From: TinfoilSubmarine @ 2024-02-04 19:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/48500#issuecomment-1925891536

Comment:
Yep, fixed for me

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-02-04 19:34 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 21:50 [ISSUE] All PHP versions with imagick enabled (`extension=imagick`) segfault TinfoilSubmarine
2024-02-02 21:52 ` TinfoilSubmarine
2024-02-02 21:53 ` TinfoilSubmarine
2024-02-02 22:07 ` classabbyamp
2024-02-02 22:15 ` TinfoilSubmarine
2024-02-03  2:20 ` sgn
2024-02-03  4:48 ` oreo639
2024-02-03  4:49 ` oreo639
2024-02-03  4:50 ` oreo639
2024-02-03  4:52 ` oreo639
2024-02-03  4:54 ` oreo639
2024-02-03  4:54 ` oreo639
2024-02-03  4:55 ` oreo639
2024-02-03  4:57 ` oreo639
2024-02-03  5:06 ` oreo639
2024-02-03  8:29 ` oreo639
2024-02-04 19:34 ` [ISSUE] [CLOSED] " TinfoilSubmarine
2024-02-04 19:34 ` TinfoilSubmarine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).