Professional Web Applications Themes

#26043 [Fbk->Opn]: pg_lo_import causes crash under all cirstances - PHP Development

ID: 26043 User updated by: dqj at requesttech dot com Reported By: dqj at requesttech dot com -Status: Feedback +Status: Open Bug Type: PostgreSQL related Operating System: Redhat 9.0 PHP Version: 4.3.3 New Comment: I was wrong about there not being anything in the logs. In the httpd error_log, there was the following: [Thu Oct 30 14:25:10 2003] [notice] child pid 16877 exit signal Segmentation fault (11) This occurs whenever a valid filename is given to pg_lo_import. Previous Comments: ------------------------------------------------------------------------ [2003-10-30 13:49:41] [email]sniperphp.net[/email] Please try using this CVS snapshot: [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url] For Windows: [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url] ------------------------------------------------------------------------ [2003-10-30 13:48:23] dqj at requesttech dot ...

  1. #1

    Default #26043 [Fbk->Opn]: pg_lo_import causes crash under all cirstances

    ID: 26043
    User updated by: dqj at requesttech dot com
    Reported By: dqj at requesttech dot com
    -Status: Feedback
    +Status: Open
    Bug Type: PostgreSQL related
    Operating System: Redhat 9.0
    PHP Version: 4.3.3
    New Comment:

    I was wrong about there not being anything in the logs. In the httpd
    error_log, there was the following:

    [Thu Oct 30 14:25:10 2003] [notice] child pid 16877 exit signal
    Segmentation fault (11)

    This occurs whenever a valid filename is given to pg_lo_import.


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-10-30 13:49:41] [email]sniperphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]



    ------------------------------------------------------------------------

    [2003-10-30 13:48:23] dqj at requesttech dot com

    Description:
    ------------
    No changes to php.ini distribution. No output shown in logs. Just
    doesn't finish the page. (I have put echoes and breaks in to narrow it
    to the pg_lo_import() call). We have checked file permissions, etc.
    This code has worked under PHP 4.2 and other versions. Have tried
    switching the pg_lo_import parameters back and forth, just in case, as
    described in the bug doentation.



    Reproduce code:
    ---------------
    <?php
    $res = pg_connect( "host=myhost dbname=mytest user=myuser password=zzz"
    );
    pg_exec( $res, "BEGIN" );
    $oid = pg_lo_import( $res, "/tmp/dqj.tmp" );
    pg_exec( $res, "COMMIT" );
    echo "RES: $res, OID: $oid<br/>"; flush();
    ?>


    Expected result:
    ----------------
    $oid should have a value. Echoed results should appear.


    Actual result:
    --------------
    Blank page. (Or echoed results prior to subroutine call, if debug is
    included.)



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=26043&edit=1[/url]
    dqj at requesttech dot com Guest

  2. #2

    Default #26043 [Fbk->Opn]: pg_lo_import causes crash under all cirstances

    ID: 26043
    User updated by: dqj at requesttech dot com
    Reported By: dqj at requesttech dot com
    -Status: Feedback
    +Status: Open
    Bug Type: PostgreSQL related
    Operating System: Redhat 9.0
    PHP Version: 4.3.3
    New Comment:

    Using the latest snapshot tarball is not easy for us since our platform
    is based on RPM installs. I spent a couple of hours this morning trying
    to get the right configure commands working so we could rebuild PHP to
    work with Postgres 7.3.4 and Apache 2.0, but could not get it to work.
    (I may not have the right "devel" packages around for Apache and
    Postgres.)

    Is there any other way to look into the bug without having to recompile
    PHP to upgrade our system just to find out if the bug has "gone away"?

    Thank you in advance for your help.


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-10-30 20:30:47] [email]sniperphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

    Try the snapshot first, please.


    ------------------------------------------------------------------------

    [2003-10-30 14:32:24] dqj at requesttech dot com

    Forgot to mention that the Postgres version is 7.3.4.

    ------------------------------------------------------------------------

    [2003-10-30 14:26:13] dqj at requesttech dot com

    I was wrong about there not being anything in the logs. In the httpd
    error_log, there was the following:

    [Thu Oct 30 14:25:10 2003] [notice] child pid 16877 exit signal
    Segmentation fault (11)

    This occurs whenever a valid filename is given to pg_lo_import.

    ------------------------------------------------------------------------

    [2003-10-30 13:48:23] dqj at requesttech dot com

    Description:
    ------------
    No changes to php.ini distribution. No output shown in logs. Just
    doesn't finish the page. (I have put echoes and breaks in to narrow it
    to the pg_lo_import() call). We have checked file permissions, etc.
    This code has worked under PHP 4.2 and other versions. Have tried
    switching the pg_lo_import parameters back and forth, just in case, as
    described in the bug doentation.



    Reproduce code:
    ---------------
    <?php
    $res = pg_connect( "host=myhost dbname=mytest user=myuser password=zzz"
    );
    pg_exec( $res, "BEGIN" );
    $oid = pg_lo_import( $res, "/tmp/dqj.tmp" );
    pg_exec( $res, "COMMIT" );
    echo "RES: $res, OID: $oid<br/>"; flush();
    ?>


    Expected result:
    ----------------
    $oid should have a value. Echoed results should appear.


    Actual result:
    --------------
    Blank page. (Or echoed results prior to subroutine call, if debug is
    included.)



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=26043&edit=1[/url]
    dqj at requesttech dot com Guest

  3. #3

    Default #26043 [Fbk->Opn]: pg_lo_import causes crash under all cirstances

    ID: 26043
    User updated by: dqj at requesttech dot com
    Reported By: dqj at requesttech dot com
    -Status: Feedback
    +Status: Open
    Bug Type: PostgreSQL related
    Operating System: Redhat 9.0
    PHP Version: 4.3.3
    New Comment:

    Thank you! To make it really simple and rule out file contents
    problems, I just did:

    % echo "1" > /tmp/dqj.tmp

    to create the file.

    It also had failed with a .wav file prior to that.


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-10-31 16:45:17] [email]iliaaphp.net[/email]

    if you can provide the file used to te the crash, it may be
    possible for us to test and see if the issue was in fact resolved.

    ------------------------------------------------------------------------

    [2003-10-31 10:25:57] dqj at requesttech dot com

    Using the latest snapshot tarball is not easy for us since our platform
    is based on RPM installs. I spent a couple of hours this morning trying
    to get the right configure commands working so we could rebuild PHP to
    work with Postgres 7.3.4 and Apache 2.0, but could not get it to work.
    (I may not have the right "devel" packages around for Apache and
    Postgres.)

    Is there any other way to look into the bug without having to recompile
    PHP to upgrade our system just to find out if the bug has "gone away"?

    Thank you in advance for your help.

    ------------------------------------------------------------------------

    [2003-10-30 20:30:47] [email]sniperphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

    Try the snapshot first, please.


    ------------------------------------------------------------------------

    [2003-10-30 14:32:24] dqj at requesttech dot com

    Forgot to mention that the Postgres version is 7.3.4.

    ------------------------------------------------------------------------

    [2003-10-30 14:26:13] dqj at requesttech dot com

    I was wrong about there not being anything in the logs. In the httpd
    error_log, there was the following:

    [Thu Oct 30 14:25:10 2003] [notice] child pid 16877 exit signal
    Segmentation fault (11)

    This occurs whenever a valid filename is given to pg_lo_import.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/26043[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=26043&edit=1[/url]
    dqj at requesttech dot com Guest

Similar Threads

  1. InDesign CS CE non-stop CRASH, CRASH, CRASH, CRASH, CRASH, CRASH
    By kajzica@adobeforums.com in forum Adobe Indesign Windows
    Replies: 15
    Last Post: July 2nd, 07:57 PM
  2. #26043 [Opn->Fbk]: pg_lo_import causes crash under all cirstances
    By sniper@php.net in forum PHP Development
    Replies: 2
    Last Post: October 31st, 09:46 PM
  3. #26043 [Opn]: pg_lo_import causes crash under all cirstances
    By dqj at requesttech dot com in forum PHP Development
    Replies: 0
    Last Post: October 30th, 07:33 PM
  4. #26043 [NEW]: pg_lo_import causes crash under all cirstances
    By dqj at requesttech dot com in forum PHP Development
    Replies: 0
    Last Post: October 30th, 06:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139