Modify

Ticket #438 (closed defect: invalid)

Opened 7 months ago

Last modified 4 months ago

pdosqlexec triggers segmentation fault

Reported by: extraordinaire Owned by: mrook
Priority: major Milestone: 2.4.2
Component: phing-tasks-ext Version: 2.4.0
Keywords: Cc:

Description (last modified by extraordinaire) (diff)

It seems pdosqlexec triggers a segmentation fault.

While executing the attached target, pdosqlexec deals with roughly 200 files, totalling 40Mb.

The segmentation fault occurs after executing half of the files, on one file that is 4Mb in size and it occurs even after reducing the fileset to only one file (the 4Mb one).

[phingcall] Calling Buildfile '/var/www/vhosts/project/build.xml' with target 'loadData'

[exec] Executing command: pwd 2>&1 [exec] Executing command: basename /var/www/vhosts/project 2>&1

MyProject > loadData: [pdosqlexec] Executing file: /var/www/vhosts/project/sql/data_sys_history.sql Segmentation fault

$ php -v PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan 6 2010 22:56:44) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick Rethans

<target name="loadData" description="Loads MySQL data">
        <pdosqlexec url="mysql:host=${db.host}; dbname=${db.name}"  userid="${db.root.user}" password="${db.root.pass}">
            <fileset dir="${db.paths.data}">
                <include name="data_*.sql"/>
            </fileset>
        </pdosqlexec>
    </target>

Attachments

Change History

comment:1 Changed 7 months ago by extraordinaire

  • Component changed from phing-core to phing-tasks-ext
  • Description modified (diff)

comment:2 Changed 6 months ago by mrook

Do you have some testfiles for me? Or this is issue already resolved :)

comment:3 Changed 6 months ago by mrook

  • Milestone changed from 2.4.1 to 2.4.2

comment:4 Changed 5 months ago by anonymous

Try to use pdo instead of pdosqlexec. I think that there is error in documentation.

<pdo url="mysql:host=${db.host};dbname=${db.name}" userid="${db.user}" password="${db.pass}" encoding="${db.charset}">
  ...
</pdo>

comment:5 Changed 4 months ago by mrook

Is this issue still occurring?

comment:6 Changed 4 months ago by mrook

  • Status changed from new to closed
  • Resolution set to invalid
View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.