$ gdb buoyantSimpleFoam (gdb) break ISstream.C:778 No source file named ISstream.C. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (ISstream.C:778) pending. (gdb) ignore 1 8 Will ignore next 8 crossings of breakpoint 1. (gdb) run (gdb) p s._M_dataplus._M_p $1 = (std::__cxx11::basic_string, std::allocator >::pointer) 0x9c7220 " This file is part of OpenFOAM." (gdb) p s.c_str() $2 = 0x9c7220 " This file is part of OpenFOAM." (gdb) c (gdb) p s._M_dataplus._M_p $3 = (std::__cxx11::basic_string, std::allocator >::pointer) 0x9c7220 "" (gdb) si 14 0x00007ffff3231260 in std::__replacement_assert(char const*, int, char const*, char const*) () from /lib64/libstdc++.so.6 (gdb) disassemble Dump of assembler code for function _ZSt20__replacement_assertPKciS0_S0_: => 0x00007ffff3231260 <+0>: endbr64 0x00007ffff3231264 <+4>: push %rax 0x00007ffff3231265 <+5>: pop %rax 0x00007ffff3231266 <+6>: xor %eax,%eax 0x00007ffff3231268 <+8>: mov %rcx,%r8 0x00007ffff323126b <+11>: sub $0x8,%rsp 0x00007ffff323126f <+15>: mov %rdx,%rcx 0x00007ffff3231272 <+18>: mov %esi,%edx 0x00007ffff3231274 <+20>: mov %rdi,%rsi 0x00007ffff3231277 <+23>: lea 0xd3f52(%rip),%rdi # 0x7ffff33051d0 0x00007ffff323127e <+30>: callq 0x7ffff3206250 0x00007ffff3231283 <+35>: callq 0x7ffff32066f0 End of assembler dump. (gdb) ni 11 (gdb) disassemble Dump of assembler code for function _ZSt20__replacement_assertPKciS0_S0_: 0x00007ffff3231260 <+0>: endbr64 0x00007ffff3231264 <+4>: push %rax 0x00007ffff3231265 <+5>: pop %rax 0x00007ffff3231266 <+6>: xor %eax,%eax 0x00007ffff3231268 <+8>: mov %rcx,%r8 0x00007ffff323126b <+11>: sub $0x8,%rsp 0x00007ffff323126f <+15>: mov %rdx,%rcx 0x00007ffff3231272 <+18>: mov %esi,%edx 0x00007ffff3231274 <+20>: mov %rdi,%rsi 0x00007ffff3231277 <+23>: lea 0xd3f52(%rip),%rdi # 0x7ffff33051d0 0x00007ffff323127e <+30>: callq 0x7ffff3206250 => 0x00007ffff3231283 <+35>: callq 0x7ffff32066f0 End of assembler dump. (gdb) bt #0 0x00007ffff3231283 in std::__replacement_assert(char const*, int, char const*, char const*) () from /lib64/libstdc++.so.6 #1 0x00007ffff32b52a6 in std::__cxx11::basic_string, std::allocator >::back() () from /lib64/libstdc++.so.6 #2 0x00007ffff39df778 in Foam::ISstream::getLine (this=0x7fffffff1680, s=...) at db/IOstreams/Sstreams/ISstream.C:778 #3 0x00007ffff3a1b886 in Foam::dynamicCode::copyAndFilter (is=..., os=..., mapping=...) at db/dynamicLibrary/dynamicCode/dynamicCode.C:129 #4 0x00007ffff3a1d439 in Foam::dynamicCode::copyOrCreateFiles (this=0x7fffffff1a40, verbose=true) at db/dynamicLibrary/dynamicCode/dynamicCode.C:454 #5 0x00007ffff3a1f8a6 in Foam::codedBase::createLibrary (this=0x9bc408, dynCode=..., context=...) at db/dynamicLibrary/codedBase/codedBase.C:190 #6 0x00007ffff3a20283 in Foam::codedBase::updateLibrary (this=0x9bc408) at db/dynamicLibrary/codedBase/codedBase.C:331 #7 0x00007ffff5e29fb4 in Foam::fv::CodedSource::read (this=0x9bc220, dict=...) at sources/general/codedSource/CodedSourceIO.C:50 #8 0x00007ffff5e2965f in Foam::fv::CodedSource::CodedSource (this=0x9bc220, name=..., modelType=..., dict=..., mesh=...) at sources/general/codedSource/CodedSource.C:132 #9 0x00007ffff5e28fa6 in Foam::fv::option::adddictionaryConstructorToTable >::New (name=..., modelType=..., dict=..., mesh=...) at /data2/nobackup/oder/src/OpenFOAM-8/src/finiteVolume/lnInclude/fvOption.H:106 #10 0x00007ffff7219f2f in Foam::fv::option::New (name=..., coeffs=..., mesh=...) at cfdTools/general/fvOptions/fvOption.C:97 #11 0x00007ffff721d33b in Foam::fv::optionList::reset (this=0x95e7a0, dict=...) at cfdTools/general/fvOptions/fvOptionList.C:132 #12 0x00007ffff721d11e in Foam::fv::optionList::optionList (this=0x95e7a0, mesh=..., dict=...) at cfdTools/general/fvOptions/fvOptionList.C:94 #13 0x00007ffff721e5f4 in Foam::fv::options::options (this=0x95e630, mesh=...) at cfdTools/general/fvOptions/fvOptions.C:97 #14 0x00007ffff721e795 in Foam::fv::options::New (mesh=...) at cfdTools/general/fvOptions/fvOptions.C:119 #15 0x0000000000478492 in main (argc=1, argv=0x7fffffffb3c8) at /data2/nobackup/oder/src/OpenFOAM-8/src/finiteVolume/lnInclude/createFvOptions.H:1 (gdb) up 4 (gdb) p is.pathname_._M_dataplus._M_p $4 = (std::__cxx11::basic_string, std::allocator >::pointer) 0x9c9f20 "/data2/nobackup/oder/src/OpenFOAM-8/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.C" (gdb) !head -n 10 /data2/nobackup/oder/src/OpenFOAM-8/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.C | nl -b a 1 /*---------------------------------------------------------------------------*\ 2 ========= | 3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 \\ / O peration | Website: https://openfoam.org 5 \\ / A nd | Copyright (C) YEAR OpenFOAM Foundation 6 \\/ M anipulation | 7 ------------------------------------------------------------------------------- 8 License 9 This file is part of OpenFOAM. 10 (gdb) ni Program received signal SIGABRT, Aborted. 0x00007ffff2e7be35 in raise () from /lib64/libc.so.6 (gdb)