os.write segfaults
![](https://secure.gravatar.com/avatar/e2ba02b62c7b62c6dcc4d1bee492db9e.jpg?s=120&d=mm&r=g)
Sup, folks!) I have yet another question on SO, bump it here. https://stackoverflow.com/questions/44649591/rpython-segfaults-on-os-write -- Kind regards, Aleksandr Koshkin.
![](https://secure.gravatar.com/avatar/e2ba02b62c7b62c6dcc4d1bee492db9e.jpg?s=120&d=mm&r=g)
It seams that the problem lies in default GC (minimark), for some reason it frees memory a bit in advance. By setting --gc=ref it runs correctly. Is it a bug? 2017-06-20 13:35 GMT+03:00 Aleksandr Koshkin <tinysnippets@gmail.com>:
Sup, folks!) I have yet another question on SO, bump it here. https://stackoverflow.com/questions/44649591/rpython-segfaults-on-os-write
-- Kind regards, Aleksandr Koshkin.
-- Kind regards, Aleksandr Koshkin.
![](https://secure.gravatar.com/avatar/779e1633fecdd62c4c386fc953c5d3ec.jpg?s=120&d=mm&r=g)
Hi, On 20 June 2017 at 12:35, Aleksandr Koshkin <tinysnippets@gmail.com> wrote:
I have yet another question on SO, bump it here. https://stackoverflow.com/questions/44649591/rpython-segfaults-on-os-write
The library is supposed to be initialized first. I think you need to call rpython_startup_code() first to do that. A bientôt, Armin.
participants (2)
-
Aleksandr Koshkin
-
Armin Rigo