Bug #79140 [NEW]: Stack smashing detected error in PHP 7.4.1

From: Date: Mon, 20 Jan 2020 08:36:09 +0000
Subject: Bug #79140 [NEW]: Stack smashing detected error in PHP 7.4.1
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225001@lists.php.net to get a copy of this message
From: enumag at gmail dot com Operating system: Ubuntu PHP version: 7.4.1 Package: Reproducible crash Bug Type: Bug Bug description:Stack smashing detected error in PHP 7.4.1 Description: ------------ You don't need to have postgres installed or running - I don't. This fails regardless. Reproducing code is taken from amphp/postgres readme https://github.com/amphp/postgres). Test script: --------------- <?php declare(strict_types = 1); use Amp\Postgres; use Amp\Postgres\ConnectionConfig; use Amp\Sql\Statement; require __DIR__.'/vendor/autoload.php'; Amp\Loop::run(function () { $config = ConnectionConfig::fromString("host=localhost user=postgres dbname=test"); /** @var Postgres\Pool $pool */ $pool = Postgres\pool($config); /** @var Statement $statement */ $statement = yield $pool->prepare("SELECT * FROM test WHERE id = :id"); /** @var Postgres\ResultSet $result */ $result = yield $statement->execute(['id' => 1337]); while (yield $result->advance()) { $row = $result->getCurrent(); // $row is an array (map) of column values. e.g.: $row['column_name'] } }); Expected result: ---------------- Some normal amphp/postgres error saying that connecting to postgres failed. Actual result: -------------- *** stack smashing detected ***: <unknown> terminated [1] 4059 abort (core dumped) php amp.php -- Edit bug report at https://bugs.php.net/bug.php?id=79140&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79140&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79140&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79140&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79140&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79140&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79140&r=support Expected behavior: https://bugs.php.net/fix.php?id=79140&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79140&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79140&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79140&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79140&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79140&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79140&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79140&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79140&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79140&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79140&r=mysqlcfg

« previous php.bugs (#225001) next »