View Issue Details

IDProjectCategoryView StatusLast Update
0002078XdebugUncategorizedpublic2023-08-01 10:38
Reporterpoursadeqi Assigned To 
PriorityhighSeveritycrashReproducibilityrandom
Status resolvedResolutionunable to reproduce 
PlatformLinuxOSAlpine LinuxOS Version3.13.2
Product Version3.0.4 
Summary0002078: PHP with XDebug throw segmentation faults when running tests
Description

Hi, The other day we faced a wired segmentation fault when running the test in pipeline.
The bug is something like https://bugs.xdebug.org/view.php?id=1965 bug. and it crashesh exactly on the same line.
The bug really hard to regenerate and it's totally random. sometimes is working fine and sometimes out of the blue gets the segmentation fault.
I tried to trace with xdebug to see what line exactly causes the seg fault but when trace mode is enabled it works fine.
I tried with diffrent version of xdebug but including github master version but I got seg fault again.
I tried to update mongodb driver same.
I managed to get the full bt using gdb and getting valgrind's output. but i cannot provide an script to reproduce the bug. because our code stack is really bug and I cannot regenerate the same error using an small script. but I hope you can get some ideas using gdb output and valgrind.

Additional Information

/application # uname -a
Linux 4de70ab04c3a 5.13.0-35-generic 0000040~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 Linux

/application # php -v
PHP 8.0.2 (cli) (built: Feb 18 2021 00:18:34) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans

TagsNo tags attached.
Operating Systemdocker: php:8.0.12-cli-alpine3.14
PHP Version8.0.10-8.0.19

Activities

derick

2022-03-25 15:24

administrator   ~0006252

Can you please upgrade to the latest Xdebug version (3.1.3), and see if that addresses the problem? I have fixed several crash bugs since 3.0.4.

poursadeqi

2022-03-25 15:35

reporter   ~0006253

I have already tested it with 3.1.3 also, I even tested with master branch and 3_1 branch but still crashes.

derick

2022-03-28 17:15

administrator   ~0006259

Can you please provide a short reproducible script in that case?

poursadeqi

2022-03-28 19:59

reporter   ~0006261

unfortunately because it's totally random and our code stack is quite complicated I cannot regenerate it. each time it happens in a different test case.

derick

2022-04-13 15:04

administrator   ~0006276

Sorry, but I don't have enough information here to do anything about this. It seems to have to do something with generators, but without a reproducible case I can do little. Are you sure you can't make one?

derick

2022-05-11 13:40

administrator   ~0006298

Hi, can you please provide the requested information?

poursadeqi

2022-05-11 14:41

reporter   ~0006299

Hi derick, I tried to reproduce it but unfortunately because it's totally random, I couldn't reproduce it in with a small code

derick

2023-08-01 10:38

administrator   ~0006627

I still can't reproduce this, and there has not been more information. As I haven't seen any other bug reports that are similar, I am therefore closing this issue.