tags 234625 +upstream +patch
forwarded 234625 [EMAIL PROTECTED]
thanks

I got this bug report. It's reproducible on my system - see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=234625 for the full
bug log.

FWICT, this is already fixed in CVS. Richard, can you confirm?

,----
| $ ltrace sqlite ~/.imms/imms.db 'select rating from Rating;'
| [cut by MP]
| sqlite_exec(0, 0xbffffcb5, 0x08049520, 0xbfffe610, 0xbfffe60c <unfinished ...>
| --- SIGSEGV (Segmentation fault) ---
| 
| Notice that the first parameter is a null pointer.
| This is the static global variable db in shell.c that seems to be never
| set to anything useful.
| Just setting it in open_db, like in this patch, helps.
| But I don't know if it's the right place to do it.
| 
| --- sqlite-2.8.12.orig/src/shell.c
| +++ sqlite-2.8.12/src/shell.c
| @@ -528,6 +528,7 @@
|        exit(1);
|      }
|    }
| +  db = p->db;
|  }
`----

Regards, Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to