Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203878 - net-news/newsbeuter-0.7 incompatible with >=dev-db/sqlite-3.5
Summary: net-news/newsbeuter-0.7 incompatible with >=dev-db/sqlite-3.5
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: http://synflood.at/newsbeuter.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-31 13:17 UTC by Tim Weber
Modified: 2009-04-18 09:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild with required sqlite patch (newsbeuter-0.7-r1.ebuild,1003 bytes, text/plain)
2008-01-23 16:25 UTC, Stefan Wimmer
Details
The required patch itself (newsbeuter-0.7-sqlite3.5.diff,310 bytes, patch)
2008-01-23 16:26 UTC, Stefan Wimmer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Weber 2007-12-31 13:17:11 UTC
When starting newsbeuter 0.7 (and most likely older versions as well) with SQLite 3.5 or higher, while loading the cache files, a message like these appears:

Loading articles from cache...*** glibc detected *** newsbeuter: free(): invalid pointer: 0x081e2fa8 ***

or

Loading articles from cache...*** glibc detected *** free(): invalid next size (normal): 0x0017cea0 ***

A backtrace is printed, the program crashes.

This problem is known upstream, and the fix is to either not use the broken SQLite versions, or to apply the one-line patch that can be found at:
http://bereshit.synflood.at/~ak/newsbeuter-0.7-sqlite3.5.diff

My suggestion would be to release net-news/newsbeuter-0.7-r1 with either the patch applied (preferred) or a limited SQLite DEPEND.

Note that I didn't test the patch (I downgraded SQLite), but at least one other user confirmed that it's working, and it looks pretty simple and correct to me.
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2008-01-10 18:08:46 UTC
Hm, any link to mailinglist archive where this is discussed? I would like to know at least exact versions of sqlite which work without the patch and which don't - we need to apply the patch conditionally, depending on which version is installed. Is it sqlite-3.5 and newer?
Comment 2 Łukasz Michalik 2008-01-15 23:24:07 UTC
http://code.google.com/p/newsbeuter/issues/detail?id=53 is the mainstream link
Comment 3 Tim Weber 2008-01-15 23:47:08 UTC
10 Jan 2008, official IRC channel (freenode #newsbeuter):
19:11 < Scytale> _ak: Would you mind to comment on http://bugs.gentoo.org/show_bug.cgi?id=203878 ?
19:30 < _ak> Scytale: the patch says it all. ;-)
19:32 < Scytale> I think that too. But I can tell the maintainer that its sqlite >= 3.5?
21:45 < _ak> yes.
21:46 < _ak> there was even a changelog somewhere on sqlite.org that they changed something reg. memory allocation.
Comment 4 Stefan Wimmer 2008-01-23 16:25:31 UTC
Created attachment 141658 [details]
ebuild with required sqlite patch

The same happened to me on a freshly installed x86-system.

The attached ebuild with the required patch fixes the problem for me ...

Best regards
Stefan
Comment 5 Stefan Wimmer 2008-01-23 16:26:48 UTC
Created attachment 141660 [details, diff]
The required patch itself

And the patch itself of course :)
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2008-01-23 23:01:53 UTC
I'll update the ebuild during the weekend. Sorry, but I can't find time for this stuff sooner - too much reallife happening at once this week.
Comment 7 Andrej Kacian (RETIRED) gentoo-dev 2008-01-27 14:13:54 UTC
0.7-r1 with the patch committed to CVS. Thanks, Tim!
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2008-02-03 10:05:54 UTC
Reopen; get this stabilized because the stable dependencies are broken, you cannot use things like 

=dev-db/sqlite-3*
<dev-db/sqlite-3.5

with slotted ebuilds...

Calculating dependencies  
!!! Multiple versions within a single package slot have been 
!!! pulled into the dependency graph:
 
('ebuild', '/', 'dev-db/sqlite-3.4.1', 'merge') pulled in by
  ('ebuild', '/', 'net-news/newsbeuter-0.7', 'merge')
 
('ebuild', '/', 'dev-db/sqlite-3.5.3', 'merge') pulled in by
  ('ebuild', '/', 'net-news/newsbeuter-0.7', 'merge')
Comment 9 Łukasz Damentko (RETIRED) gentoo-dev 2008-05-27 13:17:05 UTC
Ticho was retired (#59986), reassigning to maintainer-needed.
Comment 10 Raphaël Droz 2009-04-17 11:41:10 UTC
I think this bugreport is oudated as newsbeuter 1.3 uses >=sqlite-3.5:3 and is in the main tree #251570
Comment 11 Tim Weber 2009-04-18 09:09:59 UTC
Yes, time has already solved this problem. Thanks for asking.