-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPLWorkerThreadPool: regression in master #10825
Comments
I also get a segmentation fault without assertion when running under gdb:
```
$ gdb --args /home/even/gdal/gdal/build_cmake/apps/gdal_viewshed -oz 100 -ox 621528 -oy 4817617 /tmp/pytest-of-even/pytest-660/test_gdal_viewshed0/test_gdal_viewshed_in.tif /tmp/pytest-of-even/pytest-660/test_gdal_viewshed0/test_gdal_viewshed_out.tif
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.2) 9.2
[...]
(gdb) r
Starting program: /home/even/gdal/gdal/build_cmake/apps/gdal_viewshed -oz 100 -ox 621528 -oy 4817617 /tmp/pytest-of-even/pytest-660/test_gdal_viewshed0/test_gdal_viewshed_in.tif /tmp/pytest-of-even/pytest-660/test_gdal_viewshed0/test_gdal_viewshed_out.tif
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe1fad700 (LWP 235296)]
[New Thread 0x7fffe17ac700 (LWP 235297)]
[New Thread 0x7fffe0fab700 (LWP 235299)]
[New Thread 0x7fffdbfff700 (LWP 235301)]
0...10...20...30...40...50[Thread 0x7fffe1fad700 (LWP 235296) exited]
Thread 3 "gdal_viewshed" received signal SIGSEGV, Segmentation fault. Thread 5 (Thread 0x7fffdbfff700 (LWP 235301)): Thread 4 (Thread 0x7fffe0fab700 (LWP 235299)): Thread 3 (Thread 0x7fffe17ac700 (LWP 235297)): Thread 1 (Thread 0x7fffe1fb37c0 (LWP 234501)):
|
On a debug build and with -DCMAKE_CXX_FLAGS_DEBUG=-DDEBUG so that CPLAssert() is turned on And this seems to be specific with gcc 9.4 of Ubuntu 20.04. Can't reproduce with gcc 13.2 of Ubuntu 24.04 |
…tool=helgrind autotest/cpp/gdal_unit_test --gtest_filter=test_cpl.CPLWorkerThreadPool' happy Related to OSGeo#10825
…n of NotifyQueue symbols, leading to mutex corruption Fixes OSGeo#10825
…tool=helgrind autotest/cpp/gdal_unit_test --gtest_filter=test_cpl.CPLWorkerThreadPool' happy (master only) Related to OSGeo#10825
…n of NotifyQueue symbols, leading to mutex corruption Fixes OSGeo#10825
@abellgithub I believe this is related to your recent changes
pytest autotest/utilities/test_gdal_viewshed.py --capture=no -ra -vv --capture=no -ra -vv
on a debug build randomly stall or crashes for me, with traces like:The text was updated successfully, but these errors were encountered: