Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak

2023-06-07 Thread Beauregard,Christophe (ECCC)
Reported to the GCC maintainers: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110156

Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak

2023-06-06 Thread Beauregard,Christophe (ECCC)
doesn't appear to matter. The leak obviously grows much more slowly than on my 2-socket-20-core server, but it's clearly visible. From: Beauregard,Christophe (ECCC) Sent: Monday, June 5, 2023 12:44 To: Bob Friesenhahn ; 1037...@bugs.debian.org <1

Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak

2023-06-05 Thread Beauregard,Christophe (ECCC)
I've managed to find a workaround. Not a great workaround, but it seems to let me take advantage of all cores for OMP without penalty. I'll be running some more tests on that. The thread needs to call: #include omp_pause_resource_all(omp_pause_soft); at thread termination (a hard

Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak

2023-06-05 Thread Beauregard,Christophe (ECCC)
hread pool in the main process and still have it used from the subthread. ____ From: Beauregard,Christophe (ECCC) Sent: Monday, June 5, 2023 09:20 To: László Böszörményi (GCS) ; Bob Friesenhahn ; 1037...@bugs.debian.org <1037...@bugs.debian.org> Subject:

Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak

2023-06-05 Thread Beauregard,Christophe (ECCC)
  "pmap -x %lld | grep 65404 | wc -l", (long long)myp); system(s);   }   return 0; } ____________ From: Beauregard,Christophe (ECCC) Sent: Monday, June 5, 2023 08:58 To: László Böszörményi (GCS) ; Bob Friesenhahn

Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak

2023-06-05 Thread Beauregard,Christophe (ECCC)
ers, etc. c. From: László Böszörményi (GCS) Sent: Sunday, June 4, 2023 06:25 To: Bob Friesenhahn ; 1037...@bugs.debian.org <1037...@bugs.debian.org> Cc: Beauregard,Christophe (ECCC) Subject: Re: Bug#1037042: graphicsmagick: GetImageDepth has a thr

Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak

2023-06-02 Thread Beauregard,Christophe (ECCC)
oom140.png 25 1685735494 VSZ RSS USER COMMAND 2443096 19652 root./threadarena Zoom140.png 28 1685735495 VSZ RSS USER COMMAND 2705240 21052 root./threadarena Zoom140.png 31 ____ From: Beauregard,Christophe (ECCC) Sent: Friday, June 2, 2023 15:

Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak

2023-06-02 Thread Beauregard,Christophe (ECCC)
my sanity. From: Bob Friesenhahn Sent: Friday, June 2, 2023 14:38 To: Beauregard,Christophe (ECCC) ; 1037...@bugs.debian.org <1037...@bugs.debian.org> Subject: Re: Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak [You don't often get

Bug#1037042: graphicsmagick: GetImageDepth has a thread arena and memory leak

2023-06-02 Thread Beauregard,Christophe (ECCC)
Package: graphicsmagick Version: 1.4+really1.3.36+hg16481-2+deb11u1 Severity: normal Tags: upstream The GraphicsMagick API has a thread arena and more general memory leak somewhere in the GetImageDepth() API call, presumably a side-effect of the OpenMP usage. First, you need a server class