Re: Bug#446050: Liferea dies with sqlite 3.5
On 10/11/07, Nico Golde <firstname.lastname@example.org> wrote:
> * Luis Rodrigo Gallardo Cruz <email@example.com> [2007-10-11 11:54]:
> > tag 446050 help
> > thanks
> > The current version of liferea in Debian unstable (1.4.3-1), as well
> > as the latest upstream version (1.4.5) fail if used together with
> > libsqlite3-0 from experimental (3.5.1-1). The program works correctly
> > with the versions in testing and unstable (3.4.2-1, 3.4.2-2).
> > The following error mesage is printed to the console:
> > *** glibc detected *** /usr/bin/liferea-bin: free(): invalid pointer: 0x08514040 ***
> The reason might be the change in sqlite3_free. In prior
> versions it did the same like free but now it does some
> additional mutex stuff for example. Maybe some free needs to
> be changed to sqlite3_free (you'll see in a backtrace).
This was the critical hint. Thanks again!
Fixed upstream with Liferea release 1.4.5b.
Patch against 1.4.5 is attached.
--- src/db.c (Revision 3481)
+++ src/db.c (Arbeitskopie)
@@ -1304,7 +1304,7 @@
if (SQLITE_OK != res)
debug2 (DEBUG_DB, "Create view failed (%s) SQL: %s", err, sql);
- g_free (select);
+ sqlite3_free (select);