ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader

loader_lin_x86-64_7.0b5 crash (segfault) on Ubuntu 16.04

Author Message
marginalberets



Joined: 08 Jun 2016
Posts: 7

PostPosted: Mon Jun 13, 2016 3:30 pm    Post subject: loader_lin_x86-64_7.0b5 crash (segfault) on Ubuntu 16.04 Reply with quote

Code:

<?php
class MyException extends Exception {
}
$randomvar = NULL;
function throwException(){
   throw new MyException('This will crash the system');
}
error_log("where");
throwException();
try{
   exit;
}catch(MyException $e){
}


results in

Code:

root@testbox:~# tail /var/log/apache2/error.log
[Mon Jun 13 09:22:27.542122 2016] [:error] [pid 5422] [client 10.40.117.138:13738] where
[Mon Jun 13 09:22:27.542250 2016] [:error] [pid 5422] [client 10.40.117.138:13738] PHP Fatal error:  Uncaught MyException: This will crash the system in /var/www/html/mincrasherenc.php:6\nStack trace:\n#0 /var/www/html/mincrasherenc.php(9): throwException()\n#1 {main}\n  thrown in /var/www/html/mincrasherenc.php on line 6
[Mon Jun 13 09:22:27.750840 2016] [:error] [pid 5421] [client 10.40.117.138:13739] where
[Mon Jun 13 09:22:27.750968 2016] [:error] [pid 5421] [client 10.40.117.138:13739] PHP Fatal error:  Uncaught MyException: This will crash the system in /var/www/html/mincrasherenc.php:6\nStack trace:\n#0 /var/www/html/mincrasherenc.php(9): throwException()\n#1 {main}\n  thrown in /var/www/html/mincrasherenc.php on line 6
[Mon Jun 13 09:22:27.954348 2016] [:error] [pid 5420] [client 10.40.117.138:13740] where
[Mon Jun 13 09:22:27.954473 2016] [:error] [pid 5420] [client 10.40.117.138:13740] PHP Fatal error:  Uncaught MyException: This will crash the system in /var/www/html/mincrasherenc.php:6\nStack trace:\n#0 /var/www/html/mincrasherenc.php(9): throwException()\n#1 {main}\n  thrown in /var/www/html/mincrasherenc.php on line 6
[Mon Jun 13 09:22:28.413768 2016] [core:notice] [pid 5398] AH00051: child pid 5420 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Jun 13 09:22:28.413837 2016] [core:notice] [pid 5398] AH00051: child pid 5421 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Jun 13 09:22:28.413854 2016] [core:notice] [pid 5398] AH00051: child pid 5422 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Jun 13 09:22:28.413876 2016] [core:notice] [pid 5398] AH00051: child pid 5423 exit signal Segmentation fault (11), possible coredump in /etc/apache2
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Mon Jun 13, 2016 6:44 pm    Post subject: Reply with quote

Great, thanks for a good test case. If this isn't already fixed for the upcoming beta 6, there'll most likely be a fix in beta7. Could you open a ticket on this so that support and the dev team can track it and converse with you as necessary.
_________________
Community Admin
Back to top
View user's profile Send private message
marginalberets



Joined: 08 Jun 2016
Posts: 7

PostPosted: Mon Jun 13, 2016 7:03 pm    Post subject: My support contract seems to have run out Reply with quote

I don't see that option. Is there a link for that? Also, I used ioncube_encoder5_basic_9.0/bin/ioncube_ender56_9.0_64 to encode that PHP.
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Tue Jun 14, 2016 5:39 pm    Post subject: Reply with quote

The helpdesk is https://support.ioncube.com

We tested your example with the beta 6 Loaders and it worked ok, The beta 6 links are going out in an announcement in a moment so grab that Loader and see if it resolves the issue in your full application.
_________________
Community Admin
Back to top
View user's profile Send private message
marginalberets



Joined: 08 Jun 2016
Posts: 7

PostPosted: Tue Jun 14, 2016 8:32 pm    Post subject: Beta 6 link broken Reply with quote

I see the beta 6 link but it goes to a 404 right now.
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Wed Jun 15, 2016 10:57 am    Post subject: Reply with quote

Sorry about that, the downloads are available now.
_________________
Community Admin
Back to top
View user's profile Send private message
marginalberets



Joined: 08 Jun 2016
Posts: 7

PostPosted: Thu Jun 16, 2016 4:06 pm    Post subject: Reply with quote

Ok, that fixed this issue. We still have one crasher, which, if we can strip IP out of and reduce down to a minimal test case, we'll post next.
Back to top
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 190

PostPosted: Thu Jun 16, 2016 6:00 pm    Post subject: Reply with quote

Hi,

Many thanks for trying the latest beta loader and it is good to know that it fixed that particular issue.

If you can produce a self-contained test case that demonstrates that other crash then that would be great.
_________________
Alastair

ionCube
Back to top
View user's profile Send private message
marginalberets



Joined: 08 Jun 2016
Posts: 7

PostPosted: Thu Jun 16, 2016 6:10 pm    Post subject: Another testcase Reply with quote

Code:

<?php
/* Required mysql setup:
create database test;
*/
$globdb = new mysqli('127.0.0.1', "root", "password", "test");
$b = $c = $d = 1;
$stmt = $globdb->prepare("INSERT INTO doesntexist (p1, p2, p3, p4, p5, p6, p7) VALUES(?, ?, ?, $b, $c, $d, ?)");


This is crashing, again, Ubuntu 16.04 x86_64, encode with ioncube_encoder5_basic_9.0/bin/ioncube_encoder56_9.0_64 and libapache2-mod-php installed. I get "Segmentation fault (11), possible coredump in /etc/apache2"
Back to top
View user's profile Send private message
marginalberets



Joined: 08 Jun 2016
Posts: 7

PostPosted: Fri Jun 17, 2016 3:27 pm    Post subject: Reply with quote

Just to be clear, that new test case is still crashing on the beta6 loader, and I'm using the default "apt-get install php-mysql" from the default Ubuntu repositories.
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Fri Jun 17, 2016 5:21 pm    Post subject: Reply with quote

Beta7 is now released with a fix for PHP 7.0.4 and a few other improvements and fixes.
_________________
Community Admin
Back to top
View user's profile Send private message
marginalberets



Joined: 08 Jun 2016
Posts: 7

PostPosted: Mon Jun 20, 2016 2:25 pm    Post subject: Reply with quote

Thank you, everything appears to be working now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum