Skip to content

Embarking strcat overflow #33

Description

@cheako

https://gist.github.com/cheako/3df9f4e0bf30ac4bd713a2c965eaa575

I hit enter on Enter: Prepare to embark!, with play now or whatever for this initial gear.

Thread 3 "Dwarf_Fortress" received signal SIGABRT, Aborted.
                                                          [Switching to Thread 0x7fc2408b76c0 (LWP 2924)]
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44	./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1  0x00007fc243aa9f1f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2  0x00007fc243a5afb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007fc243a45472 in __GI_abort () at ./stdlib/abort.c:79
#4  0x00007fc243a9e430 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fc243bb8210 "*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:155
#5  0x00007fc243b37182 in __GI___fortify_fail (msg=msg@entry=0x7fc243bb81b6 "buffer overflow detected") at ./debug/fortify_fail.c:26
#6  0x00007fc243b35c90 in __GI___chk_fail () at ./debug/chk_fail.c:28
#7  0x00007fc243b354fa in __strcat_chk (dest=<optimized out>, src=<optimized out>, destlen=<optimized out>) at ./debug/strcat_chk.c:34
#8  0x0000000000e178a6 in ?? ()
#9  0x0000000000e4c154 in ?? ()
#10 0x0000000000e4d11a in ?? ()
#11 0x0000000000fe3394 in ?? ()
#12 0x0000000000fe5517 in ?? ()
#13 0x0000000000fed377 in ?? ()
#14 0x00007fc244265234 in interfacest::loop() () from /df_linux/libs/libgraphics.so
#15 0x0000000000a486ee in mainloop() ()
#16 0x00007fc2442491c5 in enablerst::async_loop() () from /df_linux/libs/libgraphics.so
#17 0x00007fc2442494e0 in call_loop(void*) () from /df_linux/libs/libgraphics.so
#18 0x00007fc24497b368 in ?? () from /lib/x86_64-linux-gnu/libSDL-1.2.so.0
#19 0x00007fc2449b9ce9 in ?? () from /lib/x86_64-linux-gnu/libSDL-1.2.so.0
#20 0x00007fc243aa81c4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#21 0x00007fc243b2885c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
(gdb) 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions