Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

1.4.0.1 to 1.4.1.0 Mysql database issues with Mage_Sales_Model_Mysql4_Order
 
logarithm
Jr. Member
 
Total Posts:  9
Joined:  2010-04-27
 

Sorry for the dup post but I have a soap script that uses Mage::getModel(’sales/mysql4_order_collection’); However when I called $allIds = $ordersMag->getAllIds(); my system Segfaults, and dumps a core.  I have found the program by using some ghetto debugging in php wink However it worked before the upgrade.  Here is a code snippet

[root@VO12044 magento]# php soap.php
THIS WILL ECHO TO THE SCREEN
Segmentation fault

#!/usr/bin/php
<?php

//$orderNum = $_GET[’order’];
//echo $orderNum;
$orderNum = 1;

require_once("app/Mage.php");
Mage::app();

$orderId = Mage::getSingleton(’checkout/type_onepage’)->getCheckout()->getLastOrderId();
$ordersMag = Mage::getModel(’sales/mysql4_order_collection’); //<---Problem function
echo ‘THIS WILL ECHO TO THE SCREEN’;
$allIds = $ordersMag->getAllIds();
echo ‘THIS WILL NOT ECHO TO THE SCREEN BECAUSE ABOVE CALL SEGFAULTS’;
array_splice($allIds,0,count($allIds)-$orderNum);

-----------cut-----------------------
The rest of code not shown because execution stops at the $allIds = $ordersMag->getAllIds(); call

Here is dmesg output

soap.php[3351]: segfault at 00007fff22779f58 rip 00000000005b9aa5 rsp 00007fff22779f60 error 6
php[4094]: segfault at 00007fff3c193f98 rip 00000000005b9aa5 rsp 00007fff3c193fa0 error 6
php[4123]: segfault at 00007fffd5238e98 rip 00000000005b9aa5 rsp 00007fffd5238ea0 error 6
php[4131]: segfault at 00007fffa6e1aff8 rip 00000000005a6da5 rsp 00007fffa6e1b000 error 6
php[4195]: segfault at 00007fff5ca87fd8 rip 000000000057f710 rsp 00007fff5ca88008 error 6

Once again, everything was running fine before the upgrade.  I can provide coredumps if needed. 

Please help.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top