Professional Web Applications Themes

#39189 [NEW]: Segmentation fault in mysql_fetch_field function - PHP Bugs

From: mail_konstantin at bk dot ru Operating system: Linux v2.6.15 PHP version: 5.1.6 PHP Bug Type: MySQL related Bug description: Segmentation fault in mysql_fetch_field function Description: ------------ Segmentation fault. Reproduce code: --------------- <? $conn = mysql_connect("localhost", "root", "password"); if ($conn) { print "It worked..."; } else { print "There was a problem"; } mysql_select_db("teach_db",$conn); $sql = "SELECT * FROM group_tbl"; $result = mysql_query($sql); print "$result\n"; $fild = mysql_fetch_field($result); print "$fild->name\n"; ?> Expected result: ---------------- I want see name of column Actual result: -------------- Segmentation fault. -- Edit bug report at [url]http://bugs.php.net/?id=39189&edit=1[/url] -- Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39189&r=trysnapshot44[/url] Try ...

  1. #1

    Default #39189 [NEW]: Segmentation fault in mysql_fetch_field function

    From: mail_konstantin at bk dot ru
    Operating system: Linux v2.6.15
    PHP version: 5.1.6
    PHP Bug Type: MySQL related
    Bug description: Segmentation fault in mysql_fetch_field function

    Description:
    ------------
    Segmentation fault.

    Reproduce code:
    ---------------
    <?
    $conn = mysql_connect("localhost", "root", "password");
    if ($conn) {
    print "It worked...";
    } else {
    print "There was a problem";
    }
    mysql_select_db("teach_db",$conn);
    $sql = "SELECT * FROM group_tbl";
    $result = mysql_query($sql);
    print "$result\n";
    $fild = mysql_fetch_field($result);
    print "$fild->name\n";
    ?>


    Expected result:
    ----------------
    I want see name of column

    Actual result:
    --------------
    Segmentation fault.



    --
    Edit bug report at [url]http://bugs.php.net/?id=39189&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39189&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39189&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39189&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39189&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=39189&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=39189&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39189&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=39189&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=39189&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=39189&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=39189&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=39189&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=39189&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39189&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=39189&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=39189&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39189&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=39189&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39189&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39189&r=mysqlcfg[/url]
    mail_konstantin at bk dot ru Guest

  2. #2

    Default #39189 [Fbk->Opn]: Segmentation fault in mysql_fetch_field function

    ID: 39189
    User updated by: mail_konstantin at bk dot ru
    Reported By: mail_konstantin at bk dot ru
    -Status: Feedback
    +Status: Open
    Bug Type: MySQL related
    Operating System: Linux v2.6.15
    PHP Version: 5.1.6
    New Comment:

    I have tried CVS snapshot, but the problem has remained. 4 version
    works normally.Please help.


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

    [2006-10-18 19:49:59] [email]tony2001php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



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

    [2006-10-18 19:46:18] mail_konstantin at bk dot ru

    Description:
    ------------
    Segmentation fault.

    Reproduce code:
    ---------------
    <?
    $conn = mysql_connect("localhost", "root", "password");
    if ($conn) {
    print "It worked...";
    } else {
    print "There was a problem";
    }
    mysql_select_db("teach_db",$conn);
    $sql = "SELECT * FROM group_tbl";
    $result = mysql_query($sql);
    print "$result\n";
    $fild = mysql_fetch_field($result);
    print "$fild->name\n";
    ?>


    Expected result:
    ----------------
    I want see name of column

    Actual result:
    --------------
    Segmentation fault.




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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39189&edit=1[/url]
    mail_konstantin at bk dot ru Guest

  3. #3

    Default #39189 [Opn->Fbk]: Segmentation fault in mysql_fetch_field function

    ID: 39189
    Updated by: [email]tony2001php.net[/email]
    Reported By: mail_konstantin at bk dot ru
    -Status: Open
    +Status: Feedback
    Bug Type: MySQL related
    Operating System: Linux v2.6.15
    PHP Version: 5.1.6
    New Comment:

    Thank you for this bug report. To properly diagnose the problem, we
    need a backtrace to see what is happening behind the scenes. To
    find out how to generate a backtrace, please read
    [url]http://bugs.php.net/bugs-generating-backtrace.php[/url] for *NIX and
    [url]http://bugs.php.net/bugs-generating-backtrace-win32.php[/url] for Win32

    Once you have generated a backtrace, please submit it to this bug
    report and change the status back to "Open". Thank you for helping
    us make PHP better.




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

    [2006-10-18 20:14:27] mail_konstantin at bk dot ru

    I have tried CVS snapshot, but the problem has remained. 4 version
    works normally.Please help.

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

    [2006-10-18 19:49:59] [email]tony2001php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



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

    [2006-10-18 19:46:18] mail_konstantin at bk dot ru

    Description:
    ------------
    Segmentation fault.

    Reproduce code:
    ---------------
    <?
    $conn = mysql_connect("localhost", "root", "password");
    if ($conn) {
    print "It worked...";
    } else {
    print "There was a problem";
    }
    mysql_select_db("teach_db",$conn);
    $sql = "SELECT * FROM group_tbl";
    $result = mysql_query($sql);
    print "$result\n";
    $fild = mysql_fetch_field($result);
    print "$fild->name\n";
    ?>


    Expected result:
    ----------------
    I want see name of column

    Actual result:
    --------------
    Segmentation fault.




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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39189&edit=1[/url]
    tony2001@php.net Guest

Similar Threads

  1. Replies: 0
    Last Post: October 18th, 07:49 PM
  2. Segmentation Fault
    By Jackson Miller in forum PHP Development
    Replies: 2
    Last Post: August 7th, 09:29 PM
  3. #24740 [Com]: Segmentation fault
    By nicola dot martin at gsquadro dot com in forum PHP Development
    Replies: 1
    Last Post: September 30th, 05:06 PM
  4. [PHP] Segmentation Fault
    By Jay Blanchard in forum PHP Development
    Replies: 0
    Last Post: August 15th, 06:21 PM
  5. 1.8.0 Segmentation fault
    By Graham Brooks in forum Ruby
    Replies: 0
    Last Post: July 28th, 08:07 AM

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