php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80979 SIGSEGV - core dumped on simple form submit
Submitted: 2021-04-25 19:25 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: williamdes at wdes dot fr Assigned:
Status: Open Package: uploadprogress (PECL)
PHP Version: 7.4.16 OS: Alpine/Debian/Ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: williamdes at wdes dot fr
New email:
PHP Version: OS:

 

 [2021-04-25 19:25 UTC] williamdes at wdes dot fr
Description:
------------
When trying to upload on phpMyAdmin I could see the upload progress is killing PHP each time.

I extracted the issue into a very simple example.
enctype="multipart/form-data" Seems to be the problem, remove it and it does not crash.

Tested with Nginx<>PHP-FPM or HaProxy<>PHP-FPM

I tested multiple versions of PHP: 5.5, 7.0, 7.1, 7.2, 7.3, 7.4

Not affected versions: 8.0, 8.1

Is this config specific: no. You can see this Alpine docker config that will make the error using my example file: https://github.com/sudo-bot/gh-deployer-container

Any Docker container by devilbox will also do the trick.


Test script:
---------------
<html>
    <h1>Using PHP: <?php echo phpversion(); ?></h1>
    <form id="import_file_form" method="post" enctype="multipart/form-data" name="import" class="ajax" >
        <input type="file" name="uf">
        <input type="hidden" name="UPLOAD_IDENTIFIER" value="<?php echo bin2hex(openssl_random_pseudo_bytes(16)); ?>">
        <input type="submit" name="Submit">
    </form>
</html>


Expected result:
----------------
Let me upload

Actual result:
--------------
child 16 exited on signal 11 (SIGSEGV - core dumped) after 3.091277 seconds from start

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jul 31 16:01:27 2021 UTC