Skip to content

Instantly share code, notes, and snippets.

View agentzh's full-sized avatar

Yichun Zhang agentzh

View GitHub Profile
Core was generated by `stap -vvv -p4 -DSTP_OVERLOAD_THRESHOLD=5000000000 -DMAXACTION=5000000 --no-w ne'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000045edcc in operator<< (o=..., t=...) at parse.cxx:338
338 o << tt2str(t.type);
(gdb) bt
#0 0x000000000045edcc in operator<< (o=..., t=...) at parse.cxx:338
#1 0x00000000004ea915 in const_folder::visit_binary_expression (this=0x7fff7c74daf0, e=0x5677600) at elaborate.cxx:4621
#2 0x00000000004ac299 in binary_expression::visit (this=0x5677600, u=0x7fff7c74daf0) at staptree.cxx:1688
#3 0x00000000004c0c3a in update_visitor::require<expression> (this=0x7fff7c74daf0, src=0x5677600, clearok=false) at staptree.h:1279
#4 0x00000000004bb954 in update_visitor::replace<expression> (this=0x7fff7c74daf0, src=@0x56776d0: 0x5677600, clearok=false) at staptree.h:1310
This file has been truncated, but you can view the full file.
-> <module>@<frozen importlib._bootstrap>:8 ()
File "<frozen importlib._bootstrap>", line 8 in <module>
-> _DeadlockError@<frozen importlib._bootstrap>:48 ()
File "<frozen importlib._bootstrap>", line 48 in _DeadlockError
File "<frozen importlib._bootstrap>", line 48 in <module>
<- _DeadlockError@<frozen importlib._bootstrap>:49
-> _ModuleLock@<frozen importlib._bootstrap>:52 ()
File "<frozen importlib._bootstrap>", line 52 in _ModuleLock
File "<frozen importlib._bootstrap>", line 52 in <module>
<- _ModuleLock@<frozen importlib._bootstrap>:116
@agentzh
agentzh / ls-ctrace.txt
Last active October 4, 2018 00:25
ctrace.stp -d /usr/lib64/libc-2.26.so -c 'ls *.c' -d /usr/lib64/ld-2.26.so > ls-ctrace.txt
a.c
b.c
plftrace.y.c
[1538611694762] _start
0x564083003520 : _start+0x0/0x30 [/usr/bin/ls]
[1538611694762] __libc_csu_init
0x5640830137d0 : __libc_csu_init+0x0/0x70 [/usr/bin/ls]
0x7f6eda097f7b : __libc_start_main+0x7b/0x1c0 [/usr/lib64/libc-2.26.so]
rr: Saving execution to trace directory `/home/agentzh/.local/share/rr/qemu-system-x86_64-2'.
[FATAL /home/agentzh/git/rr/rr/src/record_syscall.cc:4925:rec_process_syscall_arch()]
(task 21689 (rec:21689) at time 543)
-> Assertion `t->regs().syscall_result_signed() == -syscall_state.expect_errno' failed to hold. Expected EINVAL for 'ioctl' but got result -7 (errno E2BIG); Unknown ioctl(0xc004ae02): type:0xae nr:0x2 dir:0x3 size:4 addr:0x7ffde31fa5c0
Tail of trace dump:
{
real_time:183502.088383 global_time:523, event:`SYSCALL: ioctl' (state:EXITING_SYSCALL) tid:21689, ticks:1228408
rax:0x1 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x51 rsi:0xae03 rdi:0xd rbp:0x7ffde31fa840 rsp:0x681ffe60 r8:0x1 r9:0x0 r10:0x7fb0d647fb78 r11:0x246 r12:0x5587b31b61e0 r13:0xa0 r14:0x10 r15:0x1 rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x10 fs_base:0x7fb0d8049ac0 gs_base:0x0
}
{
agentzh@fed26 ~/git/systemtap (master)$ make -j6 installcheck-parallel
if test \! -e /opt/stap/bin/stap; then \
echo /opt/stap/bin/stap doesn\'t exist, run make install; \
exit -1; \
fi; \
if test ./stap -nt /opt/stap/bin/stap; then \
echo "/opt/stap/bin/stap is not recent, run make install"; \
exit -1; \
fi;
make -C testsuite installcheck-parallel RUNTESTFLAGS=""
Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-20-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Last login: Fri May 18 11:53:38 2018 from 192.168.1.10
agentzh@mubuntu18:~$ wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
OK
agentzh@mubuntu18:~$ sudo apt-get -y install software-properties-common
#!/usr/bin/env bash
export PATH=/opt/gdb-git/bin:$PATH
gdb --version
count=200
pidfile=logs/nginx.pid
port=8081
GNU gdb (GDB) 8.1.50.20180512-git
Copyright (C) 2018 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
GNU gdb (GDB) Fedora 8.0.1-36.fc27
Copyright (C) 2017 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-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
worker_processes 1;
daemon on;
master_process on;
error_log /home/agentzh/git/lua-nginx-module/t/servroot/logs/error.log debug;
pid /home/agentzh/git/lua-nginx-module/t/servroot/logs/nginx.pid;
env MOCKEAGAIN_VERBOSE;
env MOCKEAGAIN;
env MOCKEAGAIN_WRITE_TIMEOUT_PATTERN;
env LD_PRELOAD;
env LD_LIBRARY_PATH;