Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Hunting Down the Ruby 'Inplace' Bug
(
peterzhu.ca
)
33 points
by
petercooper
on Dec 2, 2020
|
hide
|
past
|
favorite
|
5 comments
db48x
on Dec 2, 2020
|
next
[–]
Good explanation of the bug, but sadly no details on how they tracked it down.
andreareina
on Dec 2, 2020
|
prev
[–]
argv getting GC'd is surprising, isn't it implicitly part of the environment?
Vogtinator
on Dec 2, 2020
|
parent
|
next
[–]
The script isn't execve'd, but read by ruby, and the shebang parsed to get the parameters. So it's not actually ruby's argv, but just the argv from the parsed shebang.
CGamesPlay
on Dec 2, 2020
|
parent
|
prev
|
next
[–]
Hmm, is that because ruby is able to analyze the program statically and determine that the variable isn't referenced?
igravious
on Dec 2, 2020
|
parent
|
prev
[–]
It'd surprise me!
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: