php5-ps segmentation fault on ps_setfont (64bit)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-ps (Debian) |
Fix Released
|
Unknown
|
|||
php-ps (Ubuntu) |
Fix Released
|
Critical
|
sahana |
Bug Description
php5-ps doesn't work on amd64 based systems. It will throw a segmentation fault at the ps_setfont() function. I was able to reproduce on two separate amd64 machines, including directly from a live CD. From a live CD, here are the steps to reproduce:
1. Add universe to apt-get sources.list
2. apt-get update
3. apt-get install php5 php5-ps
4. Run command: php ps.php (where ps.php is the attached sample program)
- When I compiled and ran the example libps C programs, there were no problems with the same set of functions.
- When I booted with a 32bit live CD (12.04), the above steps worked fine. No segmentation fault.
- I recompiled the module using "pecl install ps", and it still seg faulted on 64bit.
Extra Info:
php5-ps: Installed: 1.3.6-6
Ubuntu 12.04 LTS 64bit
description: | updated |
Changed in php-ps (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in php-ps (Debian): | |
status: | Unknown → Confirmed |
Changed in php-ps (Debian): | |
status: | Confirmed → Fix Released |
Changed in php-ps (Ubuntu): | |
status: | Triaged → Confirmed |
Changed in php-ps (Ubuntu): | |
assignee: | nobody → nathan (nathan95-b) |
status: | Confirmed → In Progress |
Changed in php-ps (Ubuntu): | |
status: | In Progress → New |
assignee: | nathan (nathan95-b) → nobody |
Changed in php-ps (Ubuntu): | |
assignee: | nobody → sahana (smriti1234) |
Changed in php-ps (Ubuntu): | |
status: | New → Confirmed |
Found this: https:/ /bugs.php. net/bug. php?id= 58211
Which gave me enough information on what needed to be changed in the rest of the code to make it all work. Attached is a complete patch to make the php ps module 64 bit compatible.
Briefly tested. At least it doesn't seg fault anymore.