<div dir="auto"><div dir="auto">oh, this one looks tricky!<div dir="auto"><br></div><div dir="auto">May be adding " -fstack-protector-strong" or -fstack-protector-all" to normal build CFLAGS will uncover it on other distros?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">But debugging even in simple case looks .... time consuming:</div><div dir="auto"><br></div><div dir="auto"><a href="https://wiki.gentoo.org/wiki/Stack_smashing_debugging_guide">https://wiki.gentoo.org/wiki/Stack_smashing_debugging_guide</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 1 мая 2023 г., 00:35 Stefan de Konink <<a href="mailto:stefan@konink.de" target="_blank" rel="noreferrer">stefan@konink.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[Thread 0x7ffb70db66c0 (LWP 715673) exited]<br>
*** stack smashing detected ***: terminated<br>
<br>
Thread 653 "cin" received signal SIGABRT, Aborted.<br>
[Switching to Thread 0x7ffb6bfff6c0 (LWP 715674)]<br>
__pthread_kill_implementation (threadid=<optimized out>, <br>
signo=signo@entry=6, <br>
no_tid=no_tid@entry=0) at pthread_kill.c:44<br>
Downloading source file /usr/src/debug/glibc/glibc/nptl/pthread_kill.c<br>
44 return INTERNAL_SYSCALL_ERROR_P (ret) ? <br>
INTERNAL_SYSCALL_ERRNO (ret) : 0;<br>
(gdb) bt<br>
#0 __pthread_kill_implementation (threadid=<optimized out>, <br>
signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44<br>
#1 0x00007ffff5fa7953 in __pthread_kill_internal (signo=6, <br>
threadid=<optimized out>) at pthread_kill.c:78<br>
#2 0x00007ffff5f58ea8 in __GI_raise (sig=sig@entry=6)<br>
at ../sysdeps/posix/raise.c:26<br>
#3 0x00007ffff5f4253d in __GI_abort () at abort.c:79<br>
#4 0x00007ffff5f4329e in __libc_message (<br>
fmt=fmt@entry=0x7ffff60ba535 "*** %s ***: terminated\n")<br>
at ../sysdeps/posix/libc_fatal.c:150<br>
#5 0x00007ffff6037c5b in __GI___fortify_fail (<br>
msg=msg@entry=0x7ffff60ba51d "stack smashing detected")<br>
at fortify_fail.c:24<br>
#6 0x00007ffff6037c36 in __stack_chk_fail () at stack_chk_fail.c:24<br>
#7 0x00005555560a42bd in BC_WindowEvents::run (this=<optimized out>)<br>
at bcwindowevents.C:138<br>
#8 0x00005555560aca95 in Thread::entrypoint (parameters=0x7fff38554740)<br>
at thread.C:70<br>
#9 0x00007ffff5fa5bb5 in start_thread (arg=<optimized out>)<br>
at pthread_create.c:444<br>
#10 0x00007ffff6027d90 in clone3 ()<br>
at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81<br>
(gdb) <br>
<br>
-- <br>
Stefan<br>
</blockquote></div></div>