Bug #79646 [Com]: Segmentation fault in garbage collector

From: Date: Tue, 23 Jun 2020 13:01:18 +0000
Subject: Bug #79646 [Com]: Segmentation fault in garbage collector
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227606@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79646&edit=1

 ID:                 79646
 Comment by:         enumag at gmail dot com
 Reported by:        enumag at gmail dot com
 Summary:            Segmentation fault in garbage collector
 Status:             Open
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Alpine
 PHP Version:        7.4.7
 Block user comment: N
 Private report:     N

 New Comment:

Any news on this one @nikic?


Previous Comments:
------------------------------------------------------------------------
[2020-06-15 12:57:15] enumag at gmail dot com

@nikic Alright, here is another log with no error limit:
https://gist.github.com/enumag/a5bbfbb0cfe606b77148e8b83dfd4d41

------------------------------------------------------------------------
[2020-06-15 12:43:32] nikic@php.net

@enumag: Thanks! From the new trace it seems clear that those "Invalid read of size 16"
are false positives. They are probably caused by a vectorized implementation of some string function
intentionally reading past the end of strings in a way that it knows is safe.

Unfortunately that also means that the trace ends before it gets to anything useful. Valgrind
suggests using --error-limit=no to avoid that.

------------------------------------------------------------------------
[2020-06-15 12:31:31] enumag at gmail dot com

The command I used this time:
USE_ZEND_ALLOC=0 valgrind --tool=memcheck --num-callers=30 --log-file=valgrind.txt
--suppressions=php.supp php vendor/bin/phpunit

------------------------------------------------------------------------
[2020-06-15 12:30:45] enumag at gmail dot com

@nikic Check this one please.
https://gist.github.com/enumag/329cbe88c5e77c5cc5be74aafa330ba8

------------------------------------------------------------------------
[2020-06-15 09:15:18] enumag at gmail dot com

I can use https://github.com/wodby/base-php docker
image for that. Did it before to get the gdb stacktrace. Let me try...

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=79646


--
Edit this bug report at https://bugs.php.net/bug.php?id=79646&edit=1


Thread (21 messages)

« previous php.bugs (#227606) next »