From:             isaac dot hopley at morton-fraser dot com
Operating system: SuSE Linux 8.2
PHP version:      4.3.2
PHP Bug Type:     MySQL related
Bug description:  Segmenation Fault after Batch Insert

Description:
------------
I am trying to do a batch insert to a MySQL database.
There are rouhyly 78,000 inserts to complete however my script will only
insert 65,534 at any one time.

I am running the script using the CLI method - it does not time out but
prodces the message 'Segmentation Fault' after doing the 65,534 entries. 
I am not sure of the significance it being the highest 16- bit no.


If you need full source code + database structure please let me know and I
will put in public where you can download.

Apologies if this is a know MySQL problem - I couldn't see any
explanations from this point of view.




Reproduce code:
---------------
Basically

While ( eof )
// Read File
// If certain conditions
$insertSQL = "INSERT INTO entry VALUES ('', '$ip', '$user_name',
'$new_date_time', '$new_url', '', '$code') ";
                                                
//echo $insertSQL . "<br>";
$run = mysql_query($insertSQL);

Expected result:
----------------
Zero Output

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


-- 
Edit bug report at http://bugs.php.net/?id=24587&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24587&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24587&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24587&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24587&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24587&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24587&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24587&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24587&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24587&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24587&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24587&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24587&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24587&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24587&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24587&r=gnused

Reply via email to