Hi Christian,

Christian Werner wrote:

> Compiling SQLite 3.5.x (CVS version as of 2007-11-13) using CeGCC (SVN rev
> 1064)
> worked OOTB. However running the resulting SQLite 3 shell (sqlite3.exe) on a
> WM 5
> device with PXA 270 CPU gave strange results when selecting the sqlite_master
> schema until I reverted the above patch.
> 
> IMO the problem is related to 64 bit alignment of vararg parameters on stack.
> SQLite heavily uses long long internally for all integral computations and
> sqlite3_snprintf() (similar to C library's snprintf()) with format %lld gives
> wrong results. It seems to me that the argument for %lld was shifted towards
> a higher memory address by 4 bytes, thus I reverted the patch, and then it
> worked.
> 
> The strange thing is: on a PXA 255 Windows Mobile 2003 device I did not
> observe
> any sqlite3_snprintf() problems regardless of the expansion of the
> ARM_DOUBLEWORD_ALIGN
> macro.
 
Thanks for reporting.

Do you think you can reduce the sources into a bare minimal that
still shows the problem?  A preprocessed .c file would be
the best.

If I understood correctly, the same exact binary fails on 5, but
runs OK on 2003, or do you somehow have different compile time
flags?

This looks like a show-stopper for 0.6 ...

Cheers,
Pedro Alves

__________________________________________________________
Email gratuito com 2 000 MB
Espaço para guardar 20 anos de correio
http://www.portugalmail.pt/2000mb

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to