Bug #80418 [Opn->Nab]: pecl install mongodb dumps core at end

[email protected]
Newsgroups php.pecl.dev
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=80418&edit=1

 ID:                 80418
 Updated by:         [email protected]
 Reported by:        jwoehr at softwoehr dot com
 Summary:            pecl install mongodb dumps core at end
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            mongodb
 Operating System:   Linux
 PHP Version:        7.4.12
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

This is not a PHP issue (see my comment above).


Previous Comments:
------------------------------------------------------------------------
[2020-11-26 10:52:54] [email protected]

FWIW, I see the same with Xdebug.

------------------------------------------------------------------------
[2020-11-25 23:26:12] [email protected]

To my knowledge, replacing a .so which is in use is supposed to
cause issues.  It may work to `rm` the .so first.  Anyway, this
likely should be reported against the PEAR bug tracker[1],
although I don't know whether this could be successful.  Probably
better to provide a PR to the PEAR repo[2].

[1] <https://pear.php.net/bugs/>
[2] <https://github.com/pear/pear-core>

------------------------------------------------------------------------
[2020-11-25 22:42:35] [email protected]

Also seen with OCI8 on Oracle Linux, presumably for the same reason.  The testcase was building PHP with OCI8 as a shared extension, then immediately doing 'pecl install oci8-3.0.0.tgz'.  This seg faulted.  Any later 'pecl uninstall oci8' followed with 'pecl install oci8-3.0.0.tgz' did not dump.

------------------------------------------------------------------------
[2020-11-25 15:42:07] [email protected]

Use the distribution package
https://bodhi.fedoraproject.org/updates/FEDORA-2020-50162549b6

------------------------------------------------------------------------
[2020-11-25 15:11:26] jwoehr at softwoehr dot com

Description:
------------
At the end of pecl install mongodb the install dumps core.
E.g., on Fedora 33 Server:
```
Build process completed successfully
Installing '/usr/lib64/php/modules/mongodb.so'
upgrade ok: channel://pecl.php.net/mongodb-1.9.0
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongodb.so" to php.ini
Segmentation fault (core dumped)
```
The package is, however, correctly installed thereafter.
One of Mongodb architects says it comes from changing the .so when it has already been loaded by PHP.




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



--
Edit this bug report at https://bugs.php.net/bug.php?id=80418&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.