Re: Thread memory allocation issue

2024-11-21 Thread Corinna Vinschen
On Nov 21 00:08, Dan Shelton wrote: > On Wed, 20 Nov 2024 at 12:03, Corinna Vinschen > wrote: > > > > Hi Teemu, > > > > On Nov 18 23:28, Teemu Nätkinniemi wrote: > > > Hello! > > > > > > I raised this issue couple of years ago on cygwin-developers. > > > > The cause of the problem is well known fo

Re: Thread memory allocation issue

2024-11-20 Thread Dan Shelton
On Wed, 20 Nov 2024 at 12:03, Corinna Vinschen wrote: > > Hi Teemu, > > On Nov 18 23:28, Teemu Nätkinniemi wrote: > > Hello! > > > > I raised this issue couple of years ago on cygwin-developers. > > The cause of the problem is well known for a long time. The underlying > dlmalloc implementation w

Re: Thread memory allocation issue

2024-11-20 Thread Corinna Vinschen
Hi Teemu, On Nov 18 23:28, Teemu Nätkinniemi wrote: > Hello! > > I raised this issue couple of years ago on cygwin-developers. The cause of the problem is well known for a long time. The underlying dlmalloc implementation was never developed for threaded processes, and Cygwin was originally not

Thread memory allocation issue

2024-11-18 Thread Teemu Nätkinniemi
Hello! I raised this issue couple of years ago on cygwin-developers. Steps to Reproduce 1. Compile BWA normally https://github.com/lh3/bwa/ 2. Compile BWA with rpmalloc and the following patch: // In thread worker function: #ifdef __CYGWIN__ rpmalloc_thread_initialize(); #endif // ... thre