Re: Segfault if /proc/PID/maps is opened in parallel threads [CAUSE: RtlQueryProcessDebugInformation]

2025-05-27 Thread Christian Franke via Cygwin
On Sun, 25 May 2025 16:46:49 +0200, Christian Franke wrote: On Sat, 24 May 2025 15:19:10 +0200, Christian Franke wrote: If /proc/PID/maps is opened in parallel threads, the process PID may segfault. Testcase: ... Problem is not reproducible with any of the other /proc/PID/* files. A close

Re: Segfault if /proc/PID/maps is opened in parallel threads

2025-05-25 Thread Christian Franke via Cygwin
On Sat, 24 May 2025 15:19:10 +0200, Christian Franke wrote: If /proc/PID/maps is opened in parallel threads, the process PID may segfault. Testcase: $ uname -r 3.7.0-0.98.gb39b510c1ce6.x86_64 $ cat thrdopen.c #include #include #include #include static const char * name; static void *wor

Segfault if /proc/PID/maps is opened in parallel threads

2025-05-24 Thread Christian Franke via Cygwin
If /proc/PID/maps is opened in parallel threads, the process PID may segfault. Testcase: $ uname -r 3.7.0-0.98.gb39b510c1ce6.x86_64 $ cat thrdopen.c #include #include #include #include static const char * name; static void *worker(void *arg) {   for (int i = 0; i < 1; i++) {     putc