Hi,
I am using log4cpp-1.1.3 with my c++ program which is responsible to create process some data then create json files from this data and quits.
My c++ program works fine in all logger configuration modes(debug/info/error etc) when run through terminal creating json files as well as generating log files.

But When I ran the program through a Java Program using ProcessBuilder it stucks and doesn't generate json files in debug mode.where it worked fine in other modes.
when I attached gdb to my stuck c++ program. It gives following backtrace output. Is it an issue with the library:


ubuntu@ip-172-31-46-93:~n$ gdb attach
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
attach: No such file or directory.
(gdb) bt
No stack.
(gdb) quit
ubuntu@ip-172-31-46-93:~$ gdb attach 26233
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
attach: No such file or directory.
Attaching to process 26233
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
/home/ubuntu/crosscode/ashish/cpp-plugin/26233: No such file or directory.
(gdb) quit
ubuntu@ip-172-31-46-93:~/crosscode/ashish/cpp-plugin$ sudo gdb attach 26233
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
attach: No such file or directory.
Attaching to process 26233
Reading symbols from /csplugin/ProcessFinder...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libelf.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/liblog4cpp.so.5...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug/.build-id/ce/17e023542265fc11d9bc8f534bb4f070493d30.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Reading symbols from /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.23.so...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging symbols found)...done.
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/ld-2.23.so...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libm-2.23.so...done.
done.
0x00007fdc681d92c0 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:84
84 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0 0x00007fdc681d92c0 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007fdc6815abff in _IO_new_file_write (f=0x7fdc684a7620 <_IO_2_1_stdout_>, data=0x257e630, n=4096) at fileops.c:1263
#2 0x00007fdc6815c409 in new_do_write (to_do=4096,
data=0x257e630 "BUG] \n1522414077 DEBUG CrossCode_Logger : ENTERS INTO (src/ProcessInformation.cpprocessdir():38) [DEBUG] \n1522414077 DEBUG CrossCode_Logger : ENTERS INTO (src/ProcessInformation.cpp:findExecutable()"..., fp=0x7fdc684a7620 <_IO_2_1_stdout_>) at fileops.c:518
#3 _IO_new_do_write (fp=0x7fdc684a7620 <_IO_2_1_stdout_>,
data=0x257e630 "BUG] \n1522414077 DEBUG CrossCode_Logger : ENTERS INTO (src/ProcessInformation.cpprocessdir():38) [DEBUG] \n1522414077 DEBUG CrossCode_Logger : ENTERS INTO (src/ProcessInformation.cpp:findExecutable()"..., to_do=4096) at fileops.c:494
#4 0x00007fdc6815b47d in _IO_new_file_xsputn (f=0x7fdc684a7620 <_IO_2_1_stdout_>, data=<optimized out>, n=107) at fileops.c:1331
#5 0x00007fdc681507bb in __GI__IO_fwrite (buf=0x257fca0, size=1, count=107, fp=0x7fdc684a7620 <_IO_2_1_stdout_>) at iofwrite.c:39
#6 0x00007fdc687d0ec6 in std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long) ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007fdc68f0340c in log4cpp::OstreamAppender::_append(log4cpp::LoggingEvent const&) () from /usr/local/lib/liblog4cpp.so.5
#8 0x00007fdc68ef7b9c in log4cpp::AppenderSkeleton:oAppend(log4cpp::LoggingEvent const&) () from /usr/local/lib/liblog4cpp.so.5
#9 0x00007fdc68f0ac5a in log4cpp::Category::callAppenders(log4cpp::LoggingEvent const&) () from /usr/local/lib/liblog4cpp.so.5
#10 0x00007fdc68f0ace7 in log4cpp::Category::callAppenders(log4cpp::LoggingEvent const&) () from /usr/local/lib/liblog4cpp.so.5
#11 0x00007fdc68f0aeda in log4cpp::Category::_logUnconditionally2(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/local/lib/liblog4cpp.so.5
#12 0x00007fdc68f0b264 in log4cpp::Category:ebug(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/local/lib/liblog4cpp.so.5
#13 0x000000000041262d in CrossCode_Logger::LogDebug (this=<optimized out>, message="ENTERS INTO (src/ProcessInformation.cpp:findExecutable():369) [DEBUG] ") at ../Utils/Logger.cpp:52
#14 0x00000000004182dc in ProcessInformations::findExecutable[abi:cxx11](char const*) (this=this@entry=0x2580f70, processID=processID@entry=0x257e623 "31") at src/ProcessInformation.cpp:369
#15 0x00000000004201c4 in ProcessInformations:rocessdir (this=this@entry=0x2580f70, dir=0x257e610) at src/ProcessInformation.cpp:40
#16 0x0000000000422031 in ProcessInformations::Initialize (this=0x2580f70) at src/ProcessInformation.cpp:103