php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80442 Running maxima using exec results in segfault
Submitted: 2020-11-29 03:24 UTC Modified: 2020-12-06 04:22 UTC
From: fadykamel902 at gmail dot com Assigned:
Status: No Feedback Package: Program Execution
PHP Version: 7.4.13 OS: Ubuntu 20.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 - 30 = ?
Subscribe to this entry?

 
 [2020-11-29 03:24 UTC] fadykamel902 at gmail dot com
Description:
------------
This used to work just fine in older versions of PHP/Ubuntu/Maxima

If I try to run maxima from php exec() I'll get a segmentation fault, no matter how simple the input file is.

Test script:
---------------
<?php
   exec("/usr/bin/maxima -b /tmp/testInput.txt > /tmp/testOutput.txt");
   // replace /usr/bin/maxima with your maxima path
   // testInput.txt contains the text "1+1;"
?>

Actual result:
--------------
Segmentation fault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-29 03:36 UTC] requinix@php.net
-Status: Open +Status: Feedback -Package: Unknown/Other Function +Package: Program Execution
 [2020-11-29 03:36 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

It's not clear from the description, but I assume the segfault is with PHP and not maxima?
 [2020-12-06 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC