Segmentation Fault in quick_tests/adolc.release with NetCDF (deal.II)

21 views
Skip to first unread message

Thanh Phương Diệp

unread,
Sep 25, 2025, 8:44:16 AMSep 25
to deal.II User Group
Dear all,

I'm encountering a segmentation fault (return code 139) when running the `quick_tests/adolc.release` test in deal.II. The test builds successfully but fails during execution. Below are the details:

Environment:
- OS: Ubuntu 22.04
- deal.II version: v.9.7.1
- Compiler: g++ 11.4.0
- ADOL-C version: 2.7.2
- NetCDF version: libnetcdf.so.19
- Build type: Release

Error Details:
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:74
#1  0x00007fffea0e8583 in __GI___strdup (s=0x1 <error: Cannot access memory at address 0x1>) at ./string/strdup.c:41
#2  0x00007fffeb4370a8 in function () from /lib/x86_64-linux-gnu/libnetcdf.so.19
#3  0x000055555557350e in main ()

- The crash occurs in __strdup with an invalid pointer (s=0x1), called from libnetcdf.so.19. The executable is at /home/grasvistds/dealii/build/tests/quick_tests/adolc.release/adolc.release. The file /dealii/build/tests/quick_tests/adolc.release/serial/failing_output is empty.

Attachments:
- quick_tests.log
- Testing/Temporary/LastTest.log

Questions:
1. Is this a known issue with NetCDF or ADOL-C in deal.II?
2. Any suggestions for debugging (e.g., enabling debug symbols or checking NetCDF inputs)?
3. Could this be related to my NetCDF/ADOL-C configuration?

Any guidance or pointers to similar issues would be appreciated. I can provide additional logs or test outputs if needed.

Thank you,
Thanh Phuong Diep
LastTest.log
quick_tests.log

Daniel Arndt

unread,
Sep 25, 2025, 9:47:57 AMSep 25
to dea...@googlegroups.com
Thanh Phuong Diep,

for debugging it would be better to try reproducing the failure in Debug mode.
Apart from that, I would just disable the ADOL-C dependency if you don't need it if I were you.

If you happen to get more debug information that would of course be nice to understand if it has anything to do with deal.II.
In general, the quick tests check more for a proper setup of the dependencies rather than really testing deal.II features so it's likely a problem with the ADOL-C installation itself.

Best,
Daniel




--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dealii/410793c2-7194-4a26-84c2-2e0259a471e5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages