Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454500 - dev-lang/tcc-0.9.25 segfault with gnu getline for unknown reason
Summary: dev-lang/tcc-0.9.25 segfault with gnu getline for unknown reason
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL: http://lists.nongnu.org/archive/html/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-29 08:37 UTC by Andrew Aladjev
Modified: 2013-01-29 12:34 UTC (History)
0 users

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


Attachments
test.c (test.c,420 bytes, text/plain)
2013-01-29 08:37 UTC, Andrew Aladjev
Details

Note You need to log in before you can comment on or make changes to this bug.
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