1. PHP malloc error

     My latest issue with Drupal and PHP.  Of course there could be an issue with my script but considering that it runs fine until I try to use the db_query function of Drupal I think there is probably a small memory leak in that routine somewhere.

    I’m processing about 700,000 users in the script.  If I process them and write results to files everything works great.  Once I start trying to use Drupal to make the inserts into the database it starts throwing errors:

    php(521) malloc: *** vm_allocate(size=1069056) failed (error code=3)
    php(521) malloc: *** error: can’t allocate region
    php(521) malloc: *** set a breakpoint in szone_error to debug
    Bus error

    I’ve posted it at Drupal.org so maybe someone will figure this out or tell me that I made a huge mistake in my code.

    del.icio.us tags: ,

    Link to PHP malloc error | drupal.org