View Issue Details

IDProjectCategoryView StatusLast Update
0002048XdebugUncategorizedpublic2021-12-02 12:47
Reporterremi Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.1.2 
Summary0002048: Segfault during test suite (i686)
DescriptionEncounter during Fedora 36 build with PHP 8.1.0

Steps To ReproduceRun 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 InformationGDB 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

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