php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59504 Compiled code only load on same machine.
Submitted: 2010-11-09 20:37 UTC Modified: 2013-02-18 00:35 UTC
From: ivo dot mendonca at sapo dot pt Assigned:
Status: No Feedback Package: bcompiler (PECL)
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-11-09 20:37 UTC] ivo dot mendonca at sapo dot pt
Description:
------------
Code compiled from other machines gives:

segfault at 185148e0 ip 082f1241 sp bf939ca0 error 4  

The vm?s are on diferent servers (Quad core) and Xeon quad.
Linux debian and the same configuration.(x32)

Can that be the cause?

Reproduce code:
---------------
any code

Expected result:
----------------
file contents

Actual result:
--------------
segfault at 185148e0 ip 082f1241 sp bf939ca0 error 4 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-09 21:52 UTC] alan at akbkhome dot com
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PECL.


Please submit a backtrace.

http://bugs.php.net/bugs-generating-backtrace.php
 [2010-11-10 10:54 UTC] ivo dot mendonca at sapo dot pt
.
 [2010-11-10 10:56 UTC] ivo dot mendonca at sapo dot pt
Does the bcompiler generated code works on diferent computers beside the pc where was generated ?

Is not this a normal question ?
 [2010-11-10 18:30 UTC] alan at akbkhome dot com
yes, bytecodes compiled on one machine should run others,

anything resulting in a segfault needs investigating

Without a backtrace nothing can be done to help you.
http://bugs.php.net/bugs-generating-backtrace.php
 [2010-12-03 08:59 UTC] val@php.net
Do you know if Quad core and Xeon quad systems are both 32-bit or 64-bit, or they have different architectures? In the last case bytecodes generated on one system won't work on the other.
 [2010-12-06 20:06 UTC] ivo dot mendonca at sapo dot pt
Is all the same arquitecture. The problem is in bcompiler.

The code works in the same machine,and even there sometimes i get errors,the working code sometimes fails.

Debuging is a pain.

This code is like any other open-source, doenst work without heavy "tweaking".
 [2010-12-06 21:40 UTC] alan at akbkhome dot com
use uname -a to find out if you are running 64bit or 32bit 
linux. - the cpu architecture is not really relivant. (you 
can run 32bit linux on a 64bit cpu)

without backtraces it's not possible to debug this.
 [2013-02-18 00:35 UTC] pecl-dev 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 "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 22:01:32 2024 UTC