Skip to content

Instantly share code, notes, and snippets.

@T-X
Created February 12, 2018 05:32
Show Gist options
  • Save T-X/df35ddf44a19a356d017cce9fffd969e to your computer and use it in GitHub Desktop.
Save T-X/df35ddf44a19a356d017cce9fffd969e to your computer and use it in GitHub Desktop.
#!/bin/sh
exec /usr/bin/gdb -ex "set follow-fork-mode child" -ex run -ex bt -ex quit --args ~/install/bin/seaf-server "$@" 2>&1 | tee /tmp/seaf-server-$$-`date +%s`.log
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
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 "aarch64-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"...
Reading symbols from /home/seafile/install/bin/seaf-server...done.
Starting program: /home/seafile/install/bin/seaf-server -F /home/seafile/build/conf -c /home/seafile/build/ccnet -d /home/seafile/seafile-data -l /home/seafile/build/logs/seafile.log -P /home/pids/seaf-server.pid
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
** (process:21090): WARNING **: seaf-server.c(937): ~~~ Starting.
** (process:21090): WARNING **: seaf-server.c(992): ~~~ Got arguments.
[New process 21094]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fbbaef080 (LWP 21095)]
Thread 2.2 "seaf-server" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fbbaef080 (LWP 21095)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x0000007fbe8a4df4 in __GI_abort () at abort.c:89
#2 0x0000007fbe8dc628 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7fbe98ee18 "*** Error in `%s': %s: 0x%s ***\n")
at ../sysdeps/posix/libc_fatal.c:175
#3 0x0000007fbe8e2b3c in malloc_printerr (action=3, str=0x7fbe98f320 "malloc(): memory corruption (fast)", ptr=<optimized out>,
ar_ptr=<optimized out>) at malloc.c:5049
#4 0x0000007fbe8e4ff4 in _int_malloc (av=av@entry=0x7fb4000020, bytes=bytes@entry=81) at malloc.c:3424
#5 0x0000007fbe8e5c60 in _int_realloc (av=av@entry=0x7fb4000020, oldp=oldp@entry=0x7fb401fda0, oldsize=20, oldsize@entry=48,
nb=nb@entry=96) at malloc.c:4342
#6 0x0000007fbe8e7334 in __GI___libc_realloc (oldmem=0x7fb401fdb0, bytes=80) at malloc.c:3083
#7 0x0000007fbe917b70 in re_dfa_add_node (dfa=dfa@entry=0x7fb400d280, token=...) at regex_internal.c:1430
#8 0x0000007fbe917c08 in duplicate_node (dfa=dfa@entry=0x7fb400d280, org_idx=org_idx@entry=1, constraint=constraint@entry=16)
at regcomp.c:1590
#9 0x0000007fbe917f94 in duplicate_node_closure (dfa=dfa@entry=0x7fb400d280, top_org_node=top_org_node@entry=0,
top_clone_node=top_clone_node@entry=0, root_node=root_node@entry=0, init_constraint=<optimized out>) at regcomp.c:1513
#10 0x0000007fbe919d54 in calc_eclosure_iter (new_set=new_set@entry=0x7fbbaee6e0, dfa=dfa@entry=0x7fb400d280, node=node@entry=0,
root=127, root@entry=1) at regcomp.c:1692
#11 0x0000007fbe9242e4 in calc_eclosure (dfa=<optimized out>) at regcomp.c:1655
#12 analyze (preg=0x7fb40203e0) at regcomp.c:1181
#13 re_compile_internal (preg=preg@entry=0x7fb40203e0, pattern=pattern@entry=0x55555d6128 "^/blks/.*", length=<optimized out>,
syntax=syntax@entry=16843462) at regcomp.c:791
#14 0x0000007fbe924ea0 in __regcomp (preg=0x7fb40203e0, pattern=0x55555d6128 "^/blks/.*", cflags=<optimized out>) at regcomp.c:498
#15 0x0000007fbf691708 in evhtp_callback_new () from /usr/lib/aarch64-linux-gnu/libevhtp.so.0
#16 0x0000007fbf691e58 in evhtp_set_regex_cb () from /usr/lib/aarch64-linux-gnu/libevhtp.so.0
#17 0x000000555558ae94 in access_file_init (htp=0x7fb4000dd0) at access-file.c:1459
#18 0x00000055555822e4 in http_request_init (server=0x0, server=0x0) at http-server.c:2017
#19 http_server_run (arg=0x0) at http-server.c:2127
#20 0x0000007fbeae70a0 in start_thread (arg=0x5555582158 <http_server_run>) at pthread_create.c:335
#21 0x0000007fbe93aedc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:77
A debugging session is active.
Inferior 2 [process 21094] will be killed.
Quit anyway? (y or n) [answered Y; input not from terminal]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment