Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905605 - dev-lang/jimtcl-0.81 always use jimsh0 to bootstrap
Summary: dev-lang/jimtcl-0.81 always use jimsh0 to bootstrap
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: No maintainer - Look at if you want to take care of it
Keywords: PullRequest
Depends on:
Blocks: 847148
  Show dependency tree
Reported: 2023-05-02 19:27 UTC by Esteve Varela Colominas
Modified: 2024-01-18 21:04 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Esteve Varela Colominas 2023-05-02 19:27:43 UTC
Currently, building dev-lang/jimtcl when it's already installed breaks, with a "*** buffer overflow detected ***: terminated" message.

This is fixed in 0.82[1], but in order to prevent this issue and similar potential issues in the future, I'd consider *always* building a bootstrap shell.

The file "autosetup/autosetup-find-tclsh", first looks for "./jimsh0" before trying the installed shell, and regular tclsh. If it finds none of them, it builds jimsh0 using "$CC_FOR_BUILD -o jimsh0 autosetup/jimsh0.c".

I think replicating this build command in the ebuild would be simple enough.

Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-02 20:06:38 UTC
Perhaps a USE=system-bootstrap instead. But really, this was kind of a specific issue which needed resolving, no?
Comment 2 Esteve Varela Colominas 2024-01-18 20:39:48 UTC
I think having different behavior between a clean install and an upgrade leads to hard to detect bugs like this one. Anyway, I'll be sending a PR in a bit.