View Issue Details

IDProjectCategoryView StatusLast Update
0002048XdebugUncategorizedpublic2023-08-01 10:36
Reporterremi Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version3.1.2 
Summary0002048: Segfault during test suite (i686)
Description

Encounter during Fedora 36 build with PHP 8.1.0

Steps To Reproduce

Run test suite

========DIFF========
003+ Termsig=11
003- Fatal error: Uncaught FiberError: Cannot switch fibers in current execution context in %sbug02036.php on line 11
004-
005- FiberError: Cannot switch fibers in current execution context in %sbug02036.php on line 11
006-
007- Call Stack:
008- %w%f %w%d 1. {fiber:%s}() %sbug02036.php:15
009- %w%f %w%d 2. {closure:%sbug02036.php:7-13}() %sbug02036.php:15
010- %w%f %w%d 3. Fiber->start() %sbug02036.php:11
========DONE========
FAIL Test for bug 0002036: Segfault on fiber switch in finally block in garbage collected fiber (>= PHP 8.1) [tests/base/bug02036.phpt]

Additional Information

GDB backtrace

(gdb)
#0 0x5678182b in format_converter ()
#1 0x56782ac5 in ap_php_vsnprintf ()
0000002 0xf74e82ea in xdebug_str_add_va_fmt (xs=0x56ef1b10, fmt=0xf750c310 "{fiber:%0X}", argv=0xf71ffee0 "\254a(\367\215\030N\367\200\362\337V\230\377\037\367\236\253\243w\020\033\357V")
at /builddir/build/BUILD/php-pecl-xdebug3-3.1.2/NTS/src/lib/str.c:114
0000003 0xf74e8408 in xdebug_str_add_fmt (xs=0x56ef1b10, fmt=0xf750c310 "{fiber:%0X}") at /builddir/build/BUILD/php-pecl-xdebug3-3.1.2/NTS/src/lib/str.c:141
0000004 0xf74e18a4 in create_key_for_fiber (fiber=0xf72861ac) at /builddir/build/BUILD/php-pecl-xdebug3-3.1.2/NTS/src/base/base.c:1036
0000005 remove_stack_for_fiber (fiber=0xf72861ac) at /builddir/build/BUILD/php-pecl-xdebug3-3.1.2/NTS/src/base/base.c:1079
0000006 xdebug_fiber_switch_observer (from=0xf72861ac, to=0xf7256000) at /builddir/build/BUILD/php-pecl-xdebug3-3.1.2/NTS/src/base/base.c:1103
0000007 0x5687d2b8 in zend_observer_fiber_switch_notify ()
0000008 0x5687f31d in zend_fiber_switch_context ()
0000009 0x5687fb1f in zend_fiber_trampoline ()
0000010 0x5677db6f in make_fcontext ()
0000011 0xffff97b4 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

TagsNo tags attached.
Operating System
PHP Version8.1.0-8.1.4

Activities

remi

2021-12-02 08:04

reporter   ~0006168

No issue on Fedora 35 with PHP 8.0
No issue on Fedora 34 with PHP 7.4

remi

2021-12-02 12:47

reporter   ~0006169

Same segfault with 8.1.1RC1

https://kojipkgs.fedoraproject.org//work/tasks/8422/79508422/build.log

derick

2022-01-26 20:13

administrator   ~0006197

Is this still an issue that we need to care about?

remi

2022-01-27 06:26

reporter   ~0006198

The segfault still exists on i686 (using php 8.1.2RC1 and GCC 12)

remi

2022-01-27 06:49

reporter   ~0006199

The segfault still exists on i686 using xdebug_3_1 git snapshot

remi

2022-03-23 14:28

reporter   ~0006249

Notice: ppc64le is also affected.

derick

2022-03-25 16:22

administrator   ~0006255

I still don't have a way on how to reproduce this easily. And until I can do that, I can't fix this.

derick

2023-08-01 10:36

administrator   ~0006626

I still can't reproduce this, and I haven't heard any other bug reports because of this either. I am therefore closing this issue.

Issue History

Date Modified Username Field Change
2021-12-02 08:01 remi New Issue
2021-12-02 08:04 remi Note Added: 0006168
2021-12-02 12:47 remi Note Added: 0006169
2022-01-26 20:13 derick Assigned To => derick
2022-01-26 20:13 derick Status new => feedback
2022-01-26 20:13 derick Note Added: 0006197
2022-01-27 06:26 remi Note Added: 0006198
2022-01-27 06:26 remi Status feedback => assigned
2022-01-27 06:49 remi Note Added: 0006199
2022-03-23 14:28 remi Note Added: 0006249
2022-03-25 16:22 derick Note Added: 0006255
2023-08-01 10:36 derick Status assigned => resolved
2023-08-01 10:36 derick Resolution open => unable to reproduce
2023-08-01 10:36 derick Note Added: 0006626