Bug#839101: cowdancer: Keep open() async-signal-safe

2016-09-29 Thread Jack Bates
On 28/09/16 03:25 PM, Thorsten Glaser wrote: Jack Bates dixit: A) Call dlsym() early, before anything calls open(). Not possible because even if you managed to call dlsym() before anything else, dlsym() itself might call open() before it was done initializing :-( B) Avoid dlsym()

Bug#839101: cowdancer: Keep open() async-signal-safe

2016-09-29 Thread Jack Bates
On 28/09/16 03:25 PM, Thorsten Glaser wrote: Jack Bates dixit: A) Call dlsym() early, before anything calls open(). Not possible because even if you managed to call dlsym() before anything else, dlsym() itself might call open() before it was done initializing :-( B) Avoid dlsym()

Bug#839101: cowdancer: Keep open() async-signal-safe

2016-09-28 Thread Thorsten Glaser
Jack Bates dixit: >A) Call dlsym() early, before anything calls open(). Not possible > because even if you managed to call dlsym() before anything else, > dlsym() itself might call open() before it was done initializing :-( > >B) Avoid dlsym() altogether. What are the options in this case? >

Bug#839101: cowdancer: Keep open() async-signal-safe

2016-09-28 Thread Jack Bates
Package: cowdancer Version: 0.81 Severity: normal Dear Maintainer, open() is supposed to be async-signal-safe [1], however cowdancer's open() calls dlsym() [2] which calls calloc() [3] which isn't AS-safe. This caused me some grief [4], in combination with TCMalloc and Chromium. As I see it, to