If I follow this (GitHub - pi-hole/FTL: The Pi-hole FTL engine) debugging process as my current (non root) user.
I see these errors:
2018-02-01 07:17:00.084] save_to_DB() - SQL error (8): attempt to write a readonly database
[2018-02-01 07:17:00.084] save_to_DB() - SQL error (8): attempt to write a readonly database
[2018-02-01 07:17:00.085] save_to_DB() - SQL error (8): attempt to write a readonly database
[2018-02-01 07:17:00.085] save_to_DB() - exiting due to too many errors
[2018-02-01 07:17:00.085] Notice: Queries stored in DB: 0
[2018-02-01 07:17:00.085] There are queries that have not been saved
But the process keeps running
It crashed with these last lines:
[New Thread 0x7ffff4ac1700 (LWP 8364)]
[Thread 0x7ffff4ac1700 (LWP 8364) exited]
[New Thread 0x7ffff4ac1700 (LWP 8367)]
[Thread 0x7ffff4ac1700 (LWP 8367) exited]
[New Thread 0x7ffff4ac1700 (LWP 8370)]
[Thread 0x7ffff4ac1700 (LWP 8370) exited]
[New Thread 0x7ffff4ac1700 (LWP 8385)]
[New Thread 0x7fffe7fff700 (LWP 8386)]
[Thread 0x7ffff4ac1700 (LWP 8385) exited]
[Thread 0x7fffe7fff700 (LWP 8386) exited]
[New Thread 0x7fffe7fff700 (LWP 8389)]
[Thread 0x7fffe7fff700 (LWP 8389) exited]
[New Thread 0x7fffe7fff700 (LWP 8392)]
*** stack smashing detected ***: /usr/bin/pihole-FTL terminated
Thread 146 "client-4" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe7fff700 (LWP 8392)]
0x00007ffff7825428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb)
Backtrace:
#0 0x00007ffff7825428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff782702a in __GI_abort () at abort.c:89
#2 0x00007ffff78677ea in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff797f49f "*** %s ***: %s terminated\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff790915c in __GI___fortify_fail (msg=, msg@entry=0x7ffff797f481 "stack smashing detected") at fortify_fail.c:37
#4 0x00007ffff7909100 in __stack_chk_fail () at stack_chk_fail.c:28
#5 0x000055555556c512 in getClientsOverTime (sock=0x7fffe7ffeaf0) at request.c:1155
#6 0x3020302030203020 in ?? ()
#7 0x3020302030203020 in ?? ()
#8 0x3020302030203020 in ?? ()
#9 0x3020302030203020 in ?? ()
#10 0x3020302032203020 in ?? ()
#11 0x3020302030203020 in ?? ()
#12 0x3020302030203020 in ?? ()
#13 0x3020302030203020 in ?? ()
#14 0x3020302030203020 in ?? ()
#15 0x3020302030203020 in ?? ()
#16 0x3020302030203020 in ?? ()
#17 0x3020302030203020 in ?? ()
#18 0x3020302030203020 in ?? ()
#19 0x3020302030203020 in ?? ()
#20 0x3020302031203020 in ?? ()
#21 0x3020302030203020 in ?? ()
#22 0x3020312030203720 in ?? ()
#23 0x3020302030203020 in ?? ()
#24 0x3020302030203020 in ?? ()
#25 0x3020302030203020 in ?? ()
#26 0x3020312030203020 in ?? ()
#27 0x3020392030203020 in ?? ()
#28 0x3020302030203020 in ?? ()
#29 0x3020302033203020 in ?? ()
#30 0x3220302031203020 in ?? ()
#31 0x3020302030203020 in ?? ()
#32 0x3020302030203020 in ?? ()
#33 0x3020342030203020 in ?? ()
#34 0x3320302036203020 in ?? ()
#35 0x2033203020302035 in ?? ()
#36 0x2030203820312038 in ?? ()
#37 0x2037312038332036 in ?? ()
#38 0x3020343120000a31 in ?? ()
#39 0x3020302030203020 in ?? ()
#40 0x2036203031203020 in ?? ()
#41 0x3020363720312030 in ?? ()
#42 0x2030203020313720 in ?? ()
#43 0x2030203020302030 in ?? ()
#44 0x2031203020302030 in ?? ()
#45 0x3631203020302036 in ?? ()
#46 0x2030203031203320 in ?? ()
#47 0x2036332037312030 in ?? ()
#48 0x3134203535203431 in ?? ()
#49 0x3120383120303220 in ?? ()
#50 0x203020000a302031 in ?? ()
#51 0x0a000a3020302030 in ?? ()
#52 0x3020302030200000 in ?? ()
#53 0x3020302030203020 in ?? ()
#54 0x000a302030203020 in ?? ()
#55 0x0a30203020302030 in ?? ()
#56 0x2030000a30203000 in ?? ()
#57 0x2030203020302030 in ?? ()
#58 0x2030203020302030 in ?? ()
#59 0x0a30203020302030 in ?? ()
#60 0x000a30000a302000 in ?? ()
#61 0x0000000000000000 in ?? ()
(gdb)
I installed the patch. Loading clients over time takes a while, but the process keeps on running.
Thanks for the great work!