> The log looks ok, but after SORT there should be FETCH, of course 
> there's no FETCH because the error. It's clear. There was no changes in 
> iil_C_Sort() and I have no idea what's wrong.
> 
> Please add before line 900:
> write_log('imap', 'Mem: '.memory_get_usage());
> 
> And test with devel-thread and svn-trunk, please.

It appears to fail on x86_64 platforms, but not on i686. I am guessing PHP
uses more memory on x86_64 and that pushes it over the limit.

devel-threads (x86_64 php-5.2.9-2.fc11.i586 httpd-2.2.13-1.fc11.i586 32M
memory limit)

[16-Nov-2009 09:53:40 +0000]: Mem usage before SORT: 7536816
[16-Nov-2009 09:53:40 +0000]: C: s SORT (DATE) US-ASCII ALL
[16-Nov-2009 09:53:41 +0000]: S: * SORT 54693 ...
...
[16-Nov-2009 09:53:42 +0000]: Mem usage after SORT: 8572984
[16-Nov-2009 09:53:42 +0000]: Length of $data: 1033513
[16-Nov-2009 09:53:42 +0000]: Calling preg_split

[16-Nov-2009 09:53:42] PHP Fatal error:  Allowed memory size of 33554432
bytes exhausted (tried to allocate 71 bytes) in
/home/cjanuary/public_html/devel-threads/program/lib/imap.inc on line 906

trunk (x86_64 php-5.2.9-2.fc11.i586 httpd-2.2.13-1.fc11.i586 32M memory
limit)

[16-Nov-2009 10:03:20 +0000]: Mem usage before SORT: 755018
[16-Nov-2009 10:03:20 +0000]: C: s SORT (DATE) US-ASCII ALL
[16-Nov-2009 10:03:22 +0000]: S: * SORT 54693 ...
...
[16-Nov-2009 10:03:22 +0000]: S: s OK Sort completed (1.497 secs).4
[16-Nov-2009 10:03:22 +0000]: Mem usage after SORT: 8586864
[16-Nov-2009 10:03:22 +0000]: Length of $data: 1033513
[16-Nov-2009 10:03:22 +0000]: Calling preg_split

[16-Nov-2009 10:03:23] PHP Fatal error:  Allowed memory size of 33554432
bytes exhausted (tried to allocate 71 bytes) in
/home/cjanuary/public_html/trunk/roundcubemail/program/lib/imap.inc on line
911

0.31 (x86_64 php-5.2.9-2.fc11.i586 httpd-2.2.13-1.fc11.i586 32M memory
limit)

[16-Nov-2009 10:08:27 +0000]: Mem usage before SORT: 7476952
[16-Nov-2009 10:08:27 +0000]: C: s SORT (DATE) US-ASCII ALL
[16-Nov-2009 10:08:29 +0000]: S: * SORT 54693 ...
...
[16-Nov-2009 10:08:30 +0000]: S: s OK Sort completed (1.477 secs).
[16-Nov-2009 10:08:30 +0000]: Mem usage after SORT: 8513400
[16-Nov-2009 10:08:30 +0000]: Length of $data: 1033513
[16-Nov-2009 10:08:30 +0000]: Calling preg_split

0.31 (i686 php-5.2.9-2.fc11.i586 httpd-2.2.13-1.fc11.i586 32M memory
limit)

[16-Nov-2009 10:12:35 +0000]: Mem usage before SORT: 4714528
[16-Nov-2009 10:12:35 +0000]: C: s SORT (DATE) US-ASCII ALL
[16-Nov-2009 10:12:36 +0000]: S: * SORT 54693 ...
...
[16-Nov-2009 10:12:36 +0000]: S: s OK Sort completed (1.520 secs).
[16-Nov-2009 10:12:36 +0000]: Mem usage after SORT: 5748980
[16-Nov-2009 10:12:36 +0000]: Length of $data: 1033513
[16-Nov-2009 10:12:36 +0000]: Calling preg_split
[16-Nov-2009 10:12:37 +0000]: Mem after preg_split: 20530140
[16-Nov-2009 10:12:37 +0000]: Items in result: 163517

Chris

_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to