Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 454500

Summary: dev-lang/tcc-0.9.25 segfault with gnu getline for unknown reason
Product: Gentoo Linux Reporter: Andrew Aladjev <aladjev.andrew>
Component: [OLD] DevelopmentAssignee: Maintainers for Miscelleneous Language Packages [OBSOLETE] <lang-misc+disabled>
Status: VERIFIED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://lists.nongnu.org/archive/html/tinycc-devel/2013-01/msg00087.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: test.c

Description Andrew Aladjev 2013-01-29 08:37:45 UTC
Created attachment 337196 [details]
test.c

test.c is a bit modified code from official documentation http://www.kernel.org/doc/man-pages/online/pages/man3/getline.3.html

tcc -run test.c
>> # /etc/fstab: static file system information.
>> Segmentation fault

Then swap lines
size_t  len  = 0;
char *  line = NULL;

tcc -run test.c
>> # /etc/fstab: static file system information.
>> #
>> # noatime turns ...

And all works as expected. this bug does not depend on system (tested at debian 6.0.6 too). this was fixed in upstream (http://repo.or.cz/w/tinycc.git).

Can you mask this package's version and add 9999 ebuild (for example from http://data.gpo.zugaina.org/slyfox/dev-lang/tcc/)?
Comment 1 Patrick Lauer gentoo-dev 2013-01-29 09:35:32 UTC
+  29 Jan 2013; Patrick Lauer <patrick@gentoo.org> +tcc-0.9.26_pre1.ebuild:
+  Bump to snapshot for #454500

Hope that helps :)
Comment 2 Andrew Aladjev 2013-01-29 12:32:02 UTC
Yeah. Issue is fixed 

PS Super minor issue while installing tcc-0.9.26_pre1.ebuild
ACCESS DENIED open_wr: /usr/share/info/tcc-doc.info
I've used FEATURES="-sandbox" to emerge tcc