Re: [sqlite] sqlite3_open() problem for ARM
Leandro Ribeiro <[EMAIL PROTECTED]> writes: > > Hello Guys. > > I have a problem with running SQLite. > I am running linux 2.6.17 on *ARM* and basically problem is that my > application > is crushing on *sqlite3_open*() function while the sqlite3 command > shell is > running without problems. > Please help > > NOTE: the same appplication compiled for linux PC is working fine. > > Best regards > Leandro > Could be a compiler issue - try turning OFF optimisation: "-O0" MikeW ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open() problem
I run sqlite3.exe under Windows 95 like this: C:\sqlite3 test sqlite>create table t(id); Then sqlite3 crashes. Leandro dos Santos Ribeiro wrote: > Leandro dos Santos Ribeiro wrote: > >> D. Richard Hipp wrote: >> >> >>> On Oct 10, 2008, at 4:59 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] >>> > wrote: >>> >>> >>> >>> Hello Team. I have a problem with running SQLite. I am running linux 2.6.17 on *ARM* and basically problem is that my application is crushing on *sqlite3_open*() function while the sqlite3 command shell is running without problems. >>> The command-line shell uses sqlite3_open() too. So if it works there, >>> I do not understand why it is not working in your program. Have you >>> run your program in a debugger to see exactly where it is crashing? >>> >>> >>> >>> D. Richard Hipp >>> [EMAIL PROTECTED] >>> >>> >>> >>> ___ >>> sqlite-users mailing list >>> sqlite-users@sqlite.org >>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users >>> >>> >>> >>> >> Hello D. Richard Hipp, >> >> Yes, I did run the program in a debugger and it is crashing when the >> program tries to execute the sqlite3_open() function. >> It seems that I'm not the only one with that problem, but I didn't find >> the answer yet. >> Thanks . >> >> >> Best regards. >> >> Leandro S. Ribeiro >> ___ >> sqlite-users mailing list >> sqlite-users@sqlite.org >> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users >> >> >> > Hello everybody, > > I found the problem with the sqlite3_open() crashing. > To solve it I just added the libs libpthread and libdl to my project. > Thanks to all. > > Best regards > Leandro S. Ribeiro > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open() problem
Leandro dos Santos Ribeiro wrote: > D. Richard Hipp wrote: > >> On Oct 10, 2008, at 4:59 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] >> > wrote: >> >> >> >>> Hello Team. >>> >>> I have a problem with running SQLite. >>> I am running linux 2.6.17 on *ARM* and basically problem is that my >>> application >>> is crushing on *sqlite3_open*() function while the sqlite3 command >>> shell is >>> running without problems. >>> >>> >> The command-line shell uses sqlite3_open() too. So if it works there, >> I do not understand why it is not working in your program. Have you >> run your program in a debugger to see exactly where it is crashing? >> >> >> >> D. Richard Hipp >> [EMAIL PROTECTED] >> >> >> >> ___ >> sqlite-users mailing list >> sqlite-users@sqlite.org >> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users >> >> >> > Hello D. Richard Hipp, > > Yes, I did run the program in a debugger and it is crashing when the > program tries to execute the sqlite3_open() function. > It seems that I'm not the only one with that problem, but I didn't find > the answer yet. > Thanks . > > > Best regards. > > Leandro S. Ribeiro > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > Hello everybody, I found the problem with the sqlite3_open() crashing. To solve it I just added the libs libpthread and libdl to my project. Thanks to all. Best regards Leandro S. Ribeiro ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open() problem
D. Richard Hipp wrote: > On Oct 10, 2008, at 4:59 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > > wrote: > > >> Hello Team. >> >> I have a problem with running SQLite. >> I am running linux 2.6.17 on *ARM* and basically problem is that my >> application >> is crushing on *sqlite3_open*() function while the sqlite3 command >> shell is >> running without problems. >> > > The command-line shell uses sqlite3_open() too. So if it works there, > I do not understand why it is not working in your program. Have you > run your program in a debugger to see exactly where it is crashing? > > > > D. Richard Hipp > [EMAIL PROTECTED] > > > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > Hello D. Richard Hipp, Yes, I did run the program in a debugger and it is crashing when the program tries to execute the sqlite3_open() function. It seems that I'm not the only one with that problem, but I didn't find the answer yet. Thanks . Best regards. Leandro S. Ribeiro ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open() problem
On Oct 10, 2008, at 4:59 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > wrote: > Hello Team. > > I have a problem with running SQLite. > I am running linux 2.6.17 on *ARM* and basically problem is that my > application > is crushing on *sqlite3_open*() function while the sqlite3 command > shell is > running without problems. The command-line shell uses sqlite3_open() too. So if it works there, I do not understand why it is not working in your program. Have you run your program in a debugger to see exactly where it is crashing? D. Richard Hipp [EMAIL PROTECTED] ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open() problem
I also had crashing problem on Windows 95 (yes, old Windows 95). I posted a mail to this list, but was doing it on another email account so it did not appear in list. I was wondering there might be some subtle problems in sqlite3_open. [EMAIL PROTECTED] wrote: > Hello Team. > > I have a problem with running SQLite. > I am running linux 2.6.17 on *ARM* and basically problem is that my > application > is crushing on *sqlite3_open*() function while the sqlite3 command > shell is > running without problems. > I added the sqlite3.h file to my project. > /**/ > #include > #include "sqlite3.h" > > static int callback(void *NotUsed, int argc, char **argv, char > **azColName){ > int i; > for(i=0; iprintf("%s = %s\n", azColName[i], argv[i] ? argv[i] : "NULL"); > } > printf("\n"); > return 0; > } > > int main(int argc, char **argv){ > sqlite3 *db; > char *zErrMsg = 0; > int rc; > > printf("Before Opened"); > rc = sqlite3_open("mydatabase.db", ); > printf("Opened"); > > if( rc ){ > fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db)); > sqlite3_close(db); > exit(1); > } > > rc = sqlite3_exec(db, "select *from Artists;", callback, 0, ); > if( rc!=SQLITE_OK ){ > fprintf(stderr, "SQL error: %s\n", zErrMsg); > sqlite3_free(zErrMsg); > } > sqlite3_close(db); > return 0; > } > /**/ > NOTE: the same appplication compiled for linux PC is working fine. > > Best regards > Leandro > > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
[sqlite] sqlite3_open() problem
Hello Team. I have a problem with running SQLite. I am running linux 2.6.17 on *ARM* and basically problem is that my application is crushing on *sqlite3_open*() function while the sqlite3 command shell is running without problems. I added the sqlite3.h file to my project. /**/ #include #include "sqlite3.h" static int callback(void *NotUsed, int argc, char **argv, char **azColName){ int i; for(i=0; i
[sqlite] sqlite3_open() problem for ARM
Hello Guys. I have a problem with running SQLite. I am running linux 2.6.17 on *ARM* and basically problem is that my application is crushing on *sqlite3_open*() function while the sqlite3 command shell is running without problems. I added the sqlite3.h file to my project. /**/ #include #include "sqlite3.h" static int callback(void *NotUsed, int argc, char **argv, char **azColName){ int i; for(i=0; i
[sqlite] sqlite3_open() problem
Hello Guys. I have a problem with running SQLite. I am running linux 2.6.5 on ARM and basicaly problem si that my application is crushing on sqlite3_open() function while the sqlite3 command shell is running without problems.. I have tried to copy all defines but probably that is not enough to succesfully run my application. So far I have found tha application crashed at return from this function ( test done is originaly printed out) but I cant figure out why. since I dont have gdb working on that system. /**/ SQLITE_PRIVATE int sqlite3OsOpen( sqlite3_vfs *pVfs, const char *zPath, sqlite3_file *pFile, int flags, int *pFlagsOut ){ DO_OS_MALLOC_TEST; // printf("SUM test done: %p, %p, %s, %p , %d , %p \n", pVfs->xOpen, pVfs, zPath, pFile, flags, pFlagsOut); return pVfs->xOpen(pVfs, zPath, pFile, flags, pFlagsOut); } /**/ Please help NOTE: the same appplication compiled for linux PC is working fine. If you need more informations. Feel free to ask. Regards Maros ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users