Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run GDB with geth #14788

Closed
compasses opened this issue Jul 11, 2017 · 4 comments
Closed

Cannot run GDB with geth #14788

compasses opened this issue Jul 11, 2017 · 4 comments

Comments

@compasses
Copy link

System information

Geth
Version: 1.6.7-unstable
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.8.3
Operating System: linux

Expected behaviour

can debug with gdb to inspect some information

Actual behaviour

build with * go build -gcflags "-N -l" *
receive segmentation fault:

Steps to reproduce the behaviour

Backtrace

Reading symbols from ./geth...done.
Loading Go Runtime support.
(gdb) r
Starting program: /home/jet/go/src/github.com/ethereum/go-ethereum/cmd/geth/geth 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff75e7700 (LWP 6707)]
[New Thread 0x7ffff6de6700 (LWP 6708)]
[New Thread 0x7ffff65e5700 (LWP 6709)]
[New Thread 0x7ffff5de4700 (LWP 6710)]

Thread 1 "geth" received signal SIGSEGV, Segmentation fault.
0x000000000060b063 in github.com/ethereum/go-ethereum/vendor/github.com/go-stack/stack.findSigpanic.func1 (p=0x0, &fn=0xc42004dbe8, 
    ~r0=0) at /home/jet/go/src/github.com/ethereum/go-ethereum/vendor/github.com/go-stack/stack/stack.go:228
228			return *p
(gdb) 

[backtrace]
@karalabe
Copy link
Member

Thanks for the report. We've seen a similar crash just yesterday. It originates from an underlying library that did some black magic :P The library was fixed since and I've just opened a PR to pull in the changes into go-ethereum too. Should be fixed today.

@karalabe
Copy link
Member

The fix was merged into master, please rebuild and see if it works now.

@compasses
Copy link
Author

Great, it's Ok now thanks.

@mazi5769
Copy link

[New LWP 2467]
[New LWP 2753]
[New LWP 2468]
[New LWP 2469]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/ibus-engine-chewing --ibus -v 7'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
106 movdqu (%rax), %xmm4
[Current thread is 1 (Thread 0x7fd1db80e6c0 (LWP 2467))]

Thread 4 (Thread 0x7fd1c806a700 (LWP 2469)):
#0 0x00007fd1d828201d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1 0x00007fd1da8f3156 in g_main_context_poll (priority=, n_fds=3, fds=0x7fd1b80010c0, timeout=, context=0x55c195ba38e0) at gmain.c:4228
poll_func = 0x7fd1da903000 <g_poll>
#2 g_main_context_iterate (context=0x55c195ba38e0, block=block@entry=1, dispatch=dispatch@entry=1, self=) at gmain.c:3924
max_priority = 2147483647
timeout = -1
some_ready =
nfds = 3
allocated_nfds = 3
fds = 0x7fd1b80010c0
#3 0x00007fd1da8f34e2 in g_main_loop_run (loop=0x55c195ba3870) at gmain.c:4125
func = "g_main_loop_run"
#4 0x00007fd1daed7946 in gdbus_shared_thread_func (user_data=0x55c195ba38b0) at gdbusprivate.c:247
data = 0x55c195ba38b0
#5 0x00007fd1da91ab03 in g_thread_proxy (data=0x55c195baeca0) at gthread.c:784
thread = 0x55c195baeca0
func = "g_thread_proxy"
#6 0x00007fd1d76196ca in start_thread (arg=0x7fd1c806a700) at pthread_create.c:333
__res =
pd = 0x7fd1c806a700
now =
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140538980771584, -4803211235453653922, 0, 140734176606095, 140538980772288, 140538980771584, 4824482034059488350, 4824549370878012510}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call =
pagesize_m1 =
sp =
freesize =
PRETTY_FUNCTION = "start_thread"
#7 0x00007fd1d828df7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
No locals.

Thread 3 (Thread 0x7fd1c886b700 (LWP 2468)):
#0 0x00007fd1d828201d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1 0x00007fd1da8f3156 in g_main_context_poll (priority=, n_fds=2, fds=0x7fd1c00008e0, timeout=, context=0x55c195bcbf00) at gmain.c:4228
poll_func = 0x7fd1da903000 <g_poll>
#2 g_main_context_iterate (context=context@entry=0x55c195bcbf00, block=block@entry=1, dispatch=dispatch@entry=1, self=) at gmain.c:3924
max_priority = 2147483647
timeout = -1
some_ready =
nfds = 2
allocated_nfds = 2
fds = 0x7fd1c00008e0
#3 0x00007fd1da8f326c in g_main_context_iteration (context=0x55c195bcbf00, may_block=may_block@entry=1) at gmain.c:3990
retval =
#4 0x00007fd1da8f32b1 in glib_worker_main (data=) at gmain.c:5783
No locals.
#5 0x00007fd1da91ab03 in g_thread_proxy (data=0x55c195baecf0) at gthread.c:784
thread = 0x55c195baecf0
func = "g_thread_proxy"
#6 0x00007fd1d76196ca in start_thread (arg=0x7fd1c886b700) at pthread_create.c:333
__res =
pd = 0x7fd1c886b700
now =
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140538989164288, -4803211235453653922, 0, 140734176605743, 140538989164992, 140538989164288, 4824483133034245214, 4824549370878012510}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call =
pagesize_m1 =
sp =
freesize =
PRETTY_FUNCTION = "start_thread"
#7 0x00007fd1d828df7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
No locals.

Thread 2 (Thread 0x7fd1c765c700 (LWP 2753)):
#0 0x00007fd1d828201d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1 0x00007fd1da8f3156 in g_main_context_poll (priority=, n_fds=1, fds=0x7fd1bc0010c0, timeout=, context=0x55c195c02c90) at gmain.c:4228
poll_func = 0x7fd1da903000 <g_poll>
#2 g_main_context_iterate (context=context@entry=0x55c195c02c90, block=block@entry=1, dispatch=dispatch@entry=1, self=) at gmain.c:3924
max_priority = 2147483647
timeout = -1
some_ready =
nfds = 1
allocated_nfds = 1
fds = 0x7fd1bc0010c0
#3 0x00007fd1da8f326c in g_main_context_iteration (context=context@entry=0x55c195c02c90, may_block=may_block@entry=1) at gmain.c:3990
retval =
#4 0x00007fd1c7663fad in dconf_gdbus_worker_thread (user_data=0x55c195c02c90) at dconf-gdbus-thread.c:82
context = 0x55c195c02c90
#5 0x00007fd1da91ab03 in g_thread_proxy (data=0x55c195bcf590) at gthread.c:784
thread = 0x55c195bcf590
func = "g_thread_proxy"
#6 0x00007fd1d76196ca in start_thread (arg=0x7fd1c765c700) at pthread_create.c:333
__res =
pd = 0x7fd1c765c700
now =
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140538970228480, -4803211235453653922, 0, 140734176604671, 140538970229184, 140538970228480, 4824514219470662750, 4824549370878012510}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call =
pagesize_m1 =
sp =
freesize =
PRETTY_FUNCTION = "start_thread"
#7 0x00007fd1d828df7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
No locals.

Thread 1 (Thread 0x7fd1db80e6c0 (LWP 2467)):
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
No locals.
#1 0x00007fd1d81d5ad1 in _IO_vfprintf_internal (s=s@entry=0x7fff3a9aba90, format=, format@entry=0x55c193cb0b20 "******** process_key_event(-,%x(%s),%x,%x) %s", ap=ap@entry=0x7fff3a9abce0) at vfprintf.c:1637
len =
string_malloced = 0
string = 0x55c193cd153c <error: Cannot access memory at address 0x55c193cd153c>
width =
is_short = 0
spec =
step0_jumps = {0, -2321, -2512, -2420, -886, -794, 936, 664, 1333, 1134, 1241, -1402, 566, 659, -2267, -2220, -1313, -1203, -1191, -1179, -2845, -685, 304, 393, 490, -3579, 63, -3669, -3669, 1042}
base =
pad =
step1_jumps = {0, 0, 0, 0, 0, 0, 0, 0, 0, 1134, 1241, -1402, 566, 659, -2267, -2220, -1313, -1203, -1191, -1179, -2845, -685, 304, 393, 490, -3579, 63, -3669, -3669, 0}
is_negative =
number =
use_outdigits =
step2_jumps = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1241, -1402, 566, 659, -2267, -2220, -1313, -1203, -1191, -1179, -2845, -685, 304, 393, 490, -3579, 63, -3669, -3669, 0}
alt = 0
left = 0
showsign =
group = 0
is_char =
step3a_jumps = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1504, 0, 0, 0, -2267, -2220, -1313, -1203, -1191, 0, 0, 0, 0, 393, 0, 0, 0, 0, 0, 0}
the_arg = {pa_wchar = 0 L'\000', pa_int = 0, pa_long_int = 0, pa_long_long_int = 0, pa_u_int = 0, pa_u_long_int = 0, pa_u_long_long_int = 0, pa_double = 0, pa_long_double = , pa_string = 0x0, pa_wstring = 0x0, pa_pointer = 0x0, pa_user = 0x0}
space =
is_long_double =
is_long =
step3b_jumps = {0 <repeats 11 times>, 566, 0, 0, -2267, -2220, -1313, -1203, -1191, -1179, -2845, -685, 304, 393, 490, -3579, 63, 0, 0, 0}
step4_jumps = {0 <repeats 14 times>, -2267, -2220, -1313, -1203, -1191, -1179, -2845, -685, 304, 393, 490, -3579, 63, 0, 0, 0}
prec = -1
_buffer = {__routine = 0x0, __arg = 0xe8810425322e1700, __canceltype = -1782164128, __prev = 0x55c195bd35a0}
_avail =
thousands_sep = 0x0
grouping = 0xffffffffffffffff <error: Cannot access memory at address 0xffffffffffffffff>
done =
f = 0x55c193cb0b41 "s),%x,%x) %s"
lead_str_end = 0x55c193cb0b3d "%x(%s),%x,%x) %s"
end_of_spec =
work_buffer = "\240\065\275\225\301U\000\000\340\266\232:\377\177", '\000' <repeats 18 times>, "\200U{\226\301U\000\000\327\377\274\332\321\177\000\000\240\065\275\225\301U\000\000\240\065\275\225\301U\000\000\340\266\232:\377\177", '\000' <repeats 18 times>, "\207\347\363\331\321\177\000\000\360\267\232:\377\177", '\000' <repeats 22 times>, "\377\177\000\000\000\000\000\000\000\000\000\000\030\000\000\000\030", '\000' <repeats 11 times>, "\030\000\000\000\030\000\000\000p\270\232:\377\177\000\000\000\027.2%\004\201\350X\271\232:\377\177\000\000@\271\232:\377\177\000\000\002\000\000@\377\177\000\000"...
workstart =
workend =
ap_save = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7fff3a9abdc0, reg_save_area = 0x7fff3a9abd00}}
nspecs_done =
save_errno = 11
readonly_format = 0
PRETTY_FUNCTION = "_IO_vfprintf_internal"
#2 0x00007fd1d829f9c5 in __GI___vasprintf_chk (result_ptr=result_ptr@entry=0x7fff3a9abbd0, flags=flags@entry=1, format=0x55c193cb0b20 "******** process_key_event(-,%x(%s),%x,%x) %s", format@entry=0x7fff3a9abbd0 "", args=0x7fff3a9abce0, args@entry=0x55c193cb0b20) at vasprintf_chk.c:66
string = 0x55c1967a9ab0 "******** process_key_event(-,ff9e(\265\225\301U"
sf = {_sbf = {_f = {_flags = -72515584, _IO_read_ptr = 0x55c1967a9ab0 "******** process_key_event(-,ff9e(\265\225\301U", _IO_read_end = 0x55c1967a9ab0 "******** process_key_event(-,ff9e(\265\225\301U", _IO_read_base = 0x55c1967a9ab0 "******** process_key_event(-,ff9e(\265\225\301U", _IO_write_base = 0x55c1967a9ab0 "******** process_key_event(-,ff9e(\265\225\301U", _IO_write_ptr = 0x55c1967a9ad2 "\265\225\301U", _IO_write_end = 0x55c1967a9b14 "", _IO_buf_base = 0x55c1967a9ab0 "******** process_key_event(-,ff9e(\265\225\301U", _IO_buf_end = 0x55c1967a9b14 "", _IO_save_base = 0x0, _IO_backup_base = 0x0, _IO_save_end = 0x0, _markers = 0x0, _chain = 0x0, _fileno = 983219188, _flags2 = 4, _old_offset = 140539294803007, _cur_column = 0, _vtable_offset = 0 '\000', _shortbuf = "", _lock = 0x0, _offset = 140734176607024, _codecvt = 0xe8810425322e1700, _wide_data = 0xffffffffffffffff, _freeres_list = 0x0, _freeres_buf = 0x55c1967b1a68, __pad5 = 94289941706464, _mode = -1, _unused2 = "\000\000\000\000\000|\305\225\301U\000\000\000\000\000\000\301U\000"}, vtable = 0x7fd1d8543480 <_IO_str_jumps>}, _s = {_allocate_buffer = 0x7fd1d820bec0 <__GI___libc_malloc>, _free_buffer = 0x7fd1d820c270 <__GI___libc_free>}}
ret =
needed =
allocated =
#3 0x00007fd1da9379f9 in vasprintf (__ap=, __fmt=, __ptr=0x7fff3a9abbd0) at /usr/include/bits/stdio2.h:210
No locals.
#4 g_vasprintf (string=string@entry=0x7fff3a9abbd0, format=format@entry=0x55c193cb0b20 "******** process_key_event(-,%x(%s),%x,%x) %s", args=args@entry=0x7fff3a9abce0) at gprintf.c:316
func = "g_vasprintf"
#5 0x00007fd1da9127cd in g_strdup_vprintf (format=format@entry=0x55c193cb0b20 "******** process_key_event(-,%x(%s),%x,%x) %s", args=args@entry=0x7fff3a9abce0) at gstrfuncs.c:514
string = 0x0
#6 0x00007fd1da8f9c02 in g_logv (log_domain=log_domain@entry=0x55c193caeca1 "ibus-chewing", log_level=G_LOG_LEVEL_INFO, format=format@entry=0x55c193cb0b20 "******** process_key_event(-,%x(%s),%x,%x) %s", args=args@entry=0x7fff3a9abce0) at gmessages.c:1203
was_fatal = 0
was_recursion = 0
msg =
msg_alloc = 0x0
i =
#7 0x000055c193ca68ab in mkdg_logv_domain (domain=domain@entry=0x55c193caeca1 "ibus-chewing", level=level@entry=INFO, format=format@entry=0x55c193cb0b20 "******** process_key_event(-,%x(%s),%x,%x) %s", argList=argList@entry=0x7fff3a9abce0) at /usr/src/debug/ibus-chewing-1.5.1-Source/src/MakerDialogUtil.c:54
flagSet =
levelStr = 0x55c193caf963 "INFO"
#8 0x000055c193ca6b66 in mkdg_logv_domain (argList=0x7fff3a9abce0, format=0x55c193cb0b20 "******** process_key_event(-,%x(%s),%x,%x) %s", level=INFO, domain=0x55c193caeca1 "ibus-chewing") at /usr/src/debug/ibus-chewing-1.5.1-Source/src/MakerDialogUtil.c:78
No locals.
#9 mkdg_log_domain (domain=domain@entry=0x55c193caeca1 "ibus-chewing", level=level@entry=INFO, format=format@entry=0x55c193cb0b20 "******** process_key_event(-,%x(%s),%x,%x) %s") at /usr/src/debug/ibus-chewing-1.5.1-Source/src/MakerDialogUtil.c:79
argList = <error reading variable argList (Attempt to dereference a generic pointer.)>
#10 0x000055c193cabfb8 in ibus_chewing_engine_process_key_event (engine=engine@entry=0x55c195beb5d0, keySym=65438, keycode=82, unmaskedMod=0) at /usr/src/debug/ibus-chewing-1.5.1-Source/src/IBusChewingEngine-input-events.c:7
self =
kSym =
result =
#11 0x00007fd1db1b0ab2 in _ibus_marshal_BOOLEAN__UINT_UINT_UINT (closure=0x55c195b9b5f0, return_value=0x7fff3a9abf80, n_param_values=, param_values=0x7fff3a9abfe0, invocation_hint=, marshal_data=) at ibusmarshalers.c:290
callback = 0x55c193cabf70 <ibus_chewing_engine_process_key_event>
cc = 0x55c195b9b5f0
data1 = 0x55c195beb5d0
data2 =
v_return =
func = "_ibus_marshal_BOOLEAN__UINT_UINT_UINT"
#12 0x00007fd1dabcb3e5 in g_closure_invoke (closure=closure@entry=0x55c195b9b5f0, return_value=return_value@entry=0x7fff3a9abf80, n_param_values=4, param_values=param_values@entry=0x7fff3a9abfe0, invocation_hint=invocation_hint@entry=0x7fff3a9abf60) at gclosure.c:804
marshal =
marshal_data =
in_marshal = 0
real_closure = 0x55c195b9b5d0
func = "g_closure_invoke"
#13 0x00007fd1dabdd82d in signal_emit_unlocked_R (node=node@entry=0x55c195b53ea0, detail=detail@entry=0, instance=instance@entry=0x55c195beb5d0, emission_return=emission_return@entry=0x7fff3a9ac130, instance_and_params=instance_and_params@entry=0x7fff3a9abfe0) at gsignal.c:3673
accumulator = 0x55c195b53bf0
emission = {next = 0x0, instance = 0x55c195beb5d0, ihint = {signal_id = 165, detail = 0, run_type = G_SIGNAL_RUN_LAST}, state = EMISSION_RUN, chain_type = 94289929019072}
class_closure = 0x55c195b9b5f0
handler_list =
return_accu = 0x7fff3a9abf80
accu = {g_type = 20, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
signal_id = 165
max_sequential_handler_number = 4724
return_value_altered = 0
#14 0x00007fd1dabe5b8f in g_signal_emit_valist (instance=, signal_id=, detail=, var_args=var_args@entry=0x7fff3a9ac1e0) at gsignal.c:3401
return_value = {g_type = 20, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
error = 0x0
rtype = 20
static_scope = 0
instance_and_params = 0x7fff3a9abfe0
signal_return_type =
param_values = 0x7fff3a9abff8
node =
i =
n_params =
func = "g_signal_emit_valist"
#15 0x00007fd1dabe643f in g_signal_emit (instance=instance@entry=0x55c195beb5d0, signal_id=, detail=detail@entry=0) at gsignal.c:3447
var_args = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7fff3a9ac2c0, reg_save_area = 0x7fff3a9ac200}}
#16 0x00007fd1db1b71d4 in ibus_engine_service_method_call (service=0x55c195beb5d0, connection=0x55c195bc3130, sender=0x7fd1b8008b00 "org.freedesktop.DBus", object_path=0x7fd1b8093200 "/org/freedesktop/IBus/Engine/55", interface_name=0x7fd1b8009fd0 "org.freedesktop.IBus.Engine", method_name=0x7fd1b800c340 "ProcessKeyEvent", parameters=0x55c1967ab8f0, invocation=0x7fd1b809d0e0) at ibusengine.c:883
keyval = 65438
keycode = 82
state = 0
retval = 0
engine = 0x55c195beb5d0
no_arg_methods = {{member = 0x7fd1db1d7fbf "FocusIn", signal_id = 1}, {member = 0x7fd1db1d8276 "FocusOut", signal_id = 2}, {member = 0x7fd1db1d827f "Reset", signal_id = 3}, {member = 0x7fd1db1d8285 "Enable", signal_id = 4}, {member = 0x7fd1db1d828c "Disable", signal_id = 5}, {member = 0x7fd1db1d8294 "PageUp", signal_id = 8}, {member = 0x7fd1db1d829b "PageDown", signal_id = 9}, {member = 0x7fd1db1d82a4 "CursorUp", signal_id = 10}, {member = 0x7fd1db1d82ad "CursorDown", signal_id = 11}}
i =
func = "ibus_engine_service_method_call"
#17 0x00007fd1daec829c in call_in_idle_cb (user_data=user_data@entry=0x7fd1b809d0e0) at gdbusconnection.c:4836
invocation = 0x7fd1b809d0e0
vtable =
registration_id =
subtree_registration_id =
func = "call_in_idle_cb"
#18 0x00007fd1da8ef8e7 in g_idle_dispatch (source=0x7fd1b800a940, callback=0x7fd1daec81b0 <call_in_idle_cb>, user_data=0x7fd1b809d0e0) at gmain.c:5545
again =
#19 0x00007fd1da8f2e42 in g_main_dispatch (context=0x55c195b56960) at gmain.c:3203
dispatch = 0x7fd1da8ef8d0 <g_idle_dispatch>
prev_source = 0x0
was_in_call = 0
user_data = 0x7fd1b809d0e0
callback = 0x7fd1daec81b0 <call_in_idle_cb>
cb_funcs = 0x7fd1dabba280 <g_source_callback_funcs>
cb_data = 0x7fd1b8001130
need_destroy =
source = 0x7fd1b800a940
current = 0x55c195bcbd60
i = 0
#20 g_main_context_dispatch (context=context@entry=0x55c195b56960) at gmain.c:3856
No locals.
#21 0x00007fd1da8f31c0 in g_main_context_iterate (context=0x55c195b56960, block=block@entry=1, dispatch=dispatch@entry=1, self=) at gmain.c:3929
max_priority = 2147483647
timeout = -1
some_ready = 1
nfds = 2
allocated_nfds = 2
fds =
#22 0x00007fd1da8f34e2 in g_main_loop_run (loop=0x55c195b9a0a0) at gmain.c:4125
func = "g_main_loop_run"
#23 0x00007fd1db1b33fc in ibus_main () at ibusshare.c:299
No locals.
#24 0x000055c193ca4c04 in start_component () at /usr/src/debug/ibus-chewing-1.5.1-Source/src/main.c:122
component = 0x55c195bda930
engineDesc =
#25 main (argc=, argv=) at /usr/src/debug/ibus-chewing-1.5.1-Source/src/main.c:195
error = 0x0
context =
From To Syms Read Shared Object Library
0x00007fd1db40d3c0 0x00007fd1db41d51a Yes /lib64/libchewing.so.3
0x00007fd1db1b0520 0x00007fd1db1d5ceb Yes /lib64/libibus-1.0.so.5
0x00007fd1dae43650 0x00007fd1daf1e27e Yes /lib64/libgio-2.0.so.0
0x00007fd1dabc6340 0x00007fd1dabf6dad Yes /lib64/libgobject-2.0.so.0
0x00007fd1da8c3710 0x00007fd1da93b519 Yes /lib64/libglib-2.0.so.0
0x00007fd1da6a6050 0x00007fd1da6a6f55 Yes /lib64/libgmodule-2.0.so.0
0x00007fd1da4a3660 0x00007fd1da4a37da Yes /lib64/libgthread-2.0.so.0
0x00007fd1d9e83060 0x00007fd1da1153ee Yes /lib64/libgtk-x11-2.0.so.0
0x00007fd1d9b792c0 0x00007fd1d9bd9df3 Yes /lib64/libgdk-x11-2.0.so.0
0x00007fd1d99533b0 0x00007fd1d9958166 Yes /lib64/libpangocairo-1.0.so.0
0x00007fd1d9733b20 0x00007fd1d97400a3 Yes /lib64/libatk-1.0.so.0
0x00007fd1d9412d60 0x00007fd1d94e2b38 Yes /lib64/libcairo.so.2
0x00007fd1d91e0ba0 0x00007fd1d91f5be9 Yes /lib64/libgdk_pixbuf-2.0.so.0
0x00007fd1d8fcba40 0x00007fd1d8fd3fad Yes /lib64/libpangoft2-1.0.so.0
0x00007fd1d8d868d0 0x00007fd1d8da5ba6 Yes /lib64/libpango-1.0.so.0
No /lib64/libfontconfig.so.1
0x00007fd1d8896060 0x00007fd1d8907a75 Yes /lib64/libfreetype.so.6
0x00007fd1d8568960 0x00007fd1d85effb4 Yes /lib64/libX11.so.6
0x00007fd1d81a59d0 0x00007fd1d82f5ad3 Yes /lib64/libc.so.6
0x00007fd1d7ebb110 0x00007fd1d7f5d0f0 Yes /lib64/libsqlite3.so.0
0x00007fd1d7ca86f0 0x00007fd1d7caceb4 Yes /lib64/libffi.so.6
0x00007fd1d7aa3da0 0x00007fd1d7aa49ae Yes /lib64/libdl.so.2
0x00007fd1d78315c0 0x00007fd1d7883731 Yes /lib64/libpcre.so.1
0x00007fd1d7617a20 0x00007fd1d7624d21 Yes /lib64/libpthread.so.0
0x00007fd1d73fe060 0x00007fd1d740a547 Yes /lib64/libz.so.1
0x00007fd1d71db320 0x00007fd1d71f139f Yes /lib64/libselinux.so.1
0x00007fd1d6fbd990 0x00007fd1d6fcd080 Yes /lib64/libresolv.so.2
0x00007fd1d6d7ac00 0x00007fd1d6da7e09 Yes /lib64/libmount.so.1
0x00007fd1d6b6b4e0 0x00007fd1d6b6d816 Yes /lib64/libXfixes.so.3
0x00007fd1d6866720 0x00007fd1d68d7c0a Yes /lib64/libm.so.6
0x00007fd1d6658a00 0x00007fd1d665ea55 Yes /lib64/libXrender.so.1
0x00007fd1d6454b10 0x00007fd1d64554a4 Yes /lib64/libXinerama.so.1
No /lib64/libXi.so.6
0x00007fd1d603ac00 0x00007fd1d6040cf5 Yes /lib64/libXrandr.so.2
0x00007fd1d5e30790 0x00007fd1d5e353a7 Yes /lib64/libXcursor.so.1
0x00007fd1d5c2bc40 0x00007fd1d5c2c6d5 Yes /lib64/libXcomposite.so.1
0x00007fd1d5a28ba0 0x00007fd1d5a294f3 Yes /lib64/libXdamage.so.1
0x00007fd1d5819570 0x00007fd1d58235cf Yes /lib64/libXext.so.6
0x00007fd1d560ddf0 0x00007fd1d5611843 Yes /lib64/libthai.so.0
0x00007fd1d53af220 0x00007fd1d53ee309 Yes /lib64/libharfbuzz.so.0
0x00007fd1d5109360 0x00007fd1d518f19d Yes /lib64/libpixman-1.so.0
0x00007fd1d4ed1b10 0x00007fd1d4eecd29 Yes /lib64/libEGL.so.1
0x00007fd1d4c9c020 0x00007fd1d4cbd5eb Yes /lib64/libpng16.so.16
0x00007fd1d4a93d90 0x00007fd1d4a948a3 Yes /lib64/libxcb-shm.so.0
0x00007fd1d4876700 0x00007fd1d4888415 Yes /lib64/libxcb.so.1
0x00007fd1d4661fe0 0x00007fd1d4666908 Yes /lib64/libxcb-render.so.0
0x00007fd1d44047e0 0x00007fd1d4442fd2 Yes /lib64/libGL.so.1
0x00007fd1d41e60e0 0x00007fd1d41e91ff Yes /lib64/librt.so.1
0x00007fd1d3fbdcf0 0x00007fd1d3fd63b9 Yes /lib64/libexpat.so.1
0x00007fd1d3dab5d0 0x00007fd1d3db7322 Yes /lib64/libbz2.so.1
0x00007fd1db62cad0 0x00007fd1db64a4f0 Yes /lib64/ld-linux-x86-64.so.2
0x00007fd1d3b6f660 0x00007fd1d3b96da9 Yes /lib64/libblkid.so.1
0x00007fd1d3963450 0x00007fd1d3964b01 Yes /lib64/libuuid.so.1
0x00007fd1d375b2d0 0x00007fd1d375e560 Yes /lib64/libdatrie.so.1
0x00007fd1d35306d0 0x00007fd1d3551308 Yes /lib64/libgraphite2.so.3
0x00007fd1d332c5a0 0x00007fd1d332c6bb Yes /lib64/libX11-xcb.so.1
0x00007fd1d31288b0 0x00007fd1d31299d5 Yes /lib64/libxcb-dri2.so.0
0x00007fd1d2f21bf0 0x00007fd1d2f24125 Yes /lib64/libxcb-xfixes.so.0
0x00007fd1d2d1ccf0 0x00007fd1d2d1d4a3 Yes /lib64/libxcb-dri3.so.0
0x00007fd1d2b19d80 0x00007fd1d2b1a606 Yes /lib64/libxcb-present.so.0
0x00007fd1d2914210 0x00007fd1d2916262 Yes /lib64/libxcb-sync.so.1
0x00007fd1d270f910 0x00007fd1d270fbfc Yes /lib64/libxshmfence.so.1
0x00007fd1d2504870 0x00007fd1d2509595 Yes /lib64/libgbm.so.1
0x00007fd1d22f83c0 0x00007fd1d22fcc5f Yes /lib64/libwayland-client.so.0
0x00007fd1d20e66e0 0x00007fd1d20ec4ef Yes /lib64/libwayland-server.so.0
0x00007fd1d1ed4870 0x00007fd1d1edbf30 Yes /lib64/libdrm.so.2
0x00007fd1d1ccdda0 0x00007fd1d1cceae9 Yes /lib64/libXau.so.6
0x00007fd1d1aa8340 0x00007fd1d1ab33bb Yes /lib64/libglapi.so.0
0x00007fd1d188df10 0x00007fd1d1895fb5 Yes /lib64/libxcb-glx.so.0
0x00007fd1d167df40 0x00007fd1d16808c0 Yes /lib64/libXxf86vm.so.1
0x00007fd1d1468aa0 0x00007fd1d14788b5 Yes /lib64/libgcc_s.so.1
0x00007fd1ca79f1a0 0x00007fd1ca79f8f9 Yes /usr/lib64/gtk-2.0/2.10.0/engines/libadwaita.so
0x00007fd1ca595310 0x00007fd1ca59a45d Yes /usr/lib64/gtk-2.0/2.10.0/engines/libpixmap.so
0x00007fd1ca391690 0x00007fd1ca3917a3 Yes /usr/lib64/gtk-2.0/modules/libpk-gtk-module.so
0x00007fd1ca18bf90 0x00007fd1ca18e0e0 Yes /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so
0x00007fd1c9f86b80 0x00007fd1c9f8810e Yes /lib64/libcanberra-gtk.so.0
0x00007fd1c9d76020 0x00007fd1c9d7f5fa Yes /lib64/libcanberra.so.0
0x00007fd1c9b6be50 0x00007fd1c9b7022c Yes /lib64/libvorbisfile.so.3
0x00007fd1c9957110 0x00007fd1c9962a88 Yes /lib64/libtdb.so.1
0x00007fd1c974c450 0x00007fd1c9750812 Yes /lib64/libltdl.so.7
0x00007fd1c9521480 0x00007fd1c953730d Yes /usr/lib64/libvorbis.so.0
0x00007fd1c9318920 0x00007fd1c931ae25 Yes /usr/lib64/libogg.so.0
0x00007fd1c90dfb70 0x00007fd1c90e57d5 Yes /lib64/libcrypt.so.1
0x00007fd1c8edeb10 0x00007fd1c8edf259 Yes /lib64/libfreebl3.so
0x00007fd1c8cb6f00 0x00007fd1c8cd1036 Yes /usr/lib64/gio/modules/libgvfsdbus.so
0x00007fd1c8a81a80 0x00007fd1c8a98856 Yes /usr/lib64/gvfs/libgvfscommon.so
0x00007fd1c886ce60 0x00007fd1c886d8b5 Yes /lib64/libutil.so.1
0x00007fd1c76606f0 0x00007fd1c766578e Yes /usr/lib64/gio/modules/libdconfsettings.so
0x00007fd1c69fab70 0x00007fd1c69faf69 Yes /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
0x00007fd1c67cb2b0 0x00007fd1c67eee9d Yes /usr/lib64/librsvg-2.so.2
0x00007fd1c6591b10 0x00007fd1c65afc05 Yes /usr/lib64/libcroco-0.6.so.3
0x00007fd1c6250020 0x00007fd1c6333cae Yes /usr/lib64/libxml2.so.2
0x00007fd1c5ffeda0 0x00007fd1c6015912 Yes /usr/lib64/liblzma.so.5
$1 = 0x0
$2 = 0x0
rax 0x55c193cd153c 94289896740156
rbx 0x7fff3a9aba90 140734176606864
rcx 0x53c 1340
rdx 0x0 0
rsi 0x55c193cb0b3f 94289896606527
rdi 0x55c193cd153c 94289896740156
rbp 0x7fff3a9aba80 0x7fff3a9aba80
rsp 0x7fff3a9ab528 0x7fff3a9ab528
r8 0x55c193cd153c 94289896740156
r9 0x22 34
r10 0x73 115
r11 0x0 0
r12 0x55c193cb0b20 94289896606496
r13 0x7fff3a9abce0 140734176607456
r14 0x0 0
r15 0xffffffffffffffff -1
rip 0x7fd1d8212fe6 0x7fd1d8212fe6 <strlen+38>
eflags 0x10293 [ CF AF SF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
Dump of assembler code for function strlen:
0x00007fd1d8212fc0 <+0>: pxor %xmm0,%xmm0
0x00007fd1d8212fc4 <+4>: pxor %xmm1,%xmm1
0x00007fd1d8212fc8 <+8>: pxor %xmm2,%xmm2
0x00007fd1d8212fcc <+12>: pxor %xmm3,%xmm3
0x00007fd1d8212fd0 <+16>: mov %rdi,%rax
0x00007fd1d8212fd3 <+19>: mov %rdi,%rcx
0x00007fd1d8212fd6 <+22>: and $0xfff,%rcx
0x00007fd1d8212fdd <+29>: cmp $0xfcf,%rcx
0x00007fd1d8212fe4 <+36>: ja 0x7fd1d8213050 <strlen+144>
=> 0x00007fd1d8212fe6 <+38>: movdqu (%rax),%xmm4
0x00007fd1d8212fea <+42>: pcmpeqb %xmm0,%xmm4
0x00007fd1d8212fee <+46>: pmovmskb %xmm4,%edx
0x00007fd1d8212ff2 <+50>: test %edx,%edx
0x00007fd1d8212ff4 <+52>: je 0x7fd1d8212ffa <strlen+58>
0x00007fd1d8212ff6 <+54>: bsf %edx,%eax
0x00007fd1d8212ff9 <+57>: retq
0x00007fd1d8212ffa <+58>: and $0xfffffffffffffff0,%rax
0x00007fd1d8212ffe <+62>: pcmpeqb 0x10(%rax),%xmm1
0x00007fd1d8213003 <+67>: pcmpeqb 0x20(%rax),%xmm2
0x00007fd1d8213008 <+72>: pcmpeqb 0x30(%rax),%xmm3
0x00007fd1d821300d <+77>: pmovmskb %xmm1,%edx
0x00007fd1d8213011 <+81>: pmovmskb %xmm2,%r8d
0x00007fd1d8213016 <+86>: pmovmskb %xmm3,%ecx
0x00007fd1d821301a <+90>: shl $0x10,%rdx
0x00007fd1d821301e <+94>: shl $0x10,%rcx
0x00007fd1d8213022 <+98>: or %r8,%rcx
0x00007fd1d8213025 <+101>: shl $0x20,%rcx
0x00007fd1d8213029 <+105>: or %rcx,%rdx
0x00007fd1d821302c <+108>: mov %rdi,%rcx
0x00007fd1d821302f <+111>: xor %rax,%rcx
0x00007fd1d8213032 <+114>: and $0xffffffffffffffc0,%rax
0x00007fd1d8213036 <+118>: sar %cl,%rdx
0x00007fd1d8213039 <+121>: test %rdx,%rdx
0x00007fd1d821303c <+124>: je 0x7fd1d82130c0 <strlen+256>
0x00007fd1d8213042 <+130>: bsf %rdx,%rax
0x00007fd1d8213046 <+134>: retq
0x00007fd1d8213047 <+135>: nopw 0x0(%rax,%rax,1)
0x00007fd1d8213050 <+144>: and $0xffffffffffffffc0,%rax
0x00007fd1d8213054 <+148>: pcmpeqb (%rax),%xmm0
0x00007fd1d8213058 <+152>: pcmpeqb 0x10(%rax),%xmm1
0x00007fd1d821305d <+157>: pcmpeqb 0x20(%rax),%xmm2
0x00007fd1d8213062 <+162>: pcmpeqb 0x30(%rax),%xmm3
0x00007fd1d8213067 <+167>: pmovmskb %xmm0,%esi
0x00007fd1d821306b <+171>: pmovmskb %xmm1,%edx
0x00007fd1d821306f <+175>: pmovmskb %xmm2,%r8d
0x00007fd1d8213074 <+180>: pmovmskb %xmm3,%ecx
0x00007fd1d8213078 <+184>: shl $0x10,%rdx
0x00007fd1d821307c <+188>: shl $0x10,%rcx
0x00007fd1d8213080 <+192>: or %rsi,%rdx
0x00007fd1d8213083 <+195>: or %r8,%rcx
0x00007fd1d8213086 <+198>: shl $0x20,%rcx
0x00007fd1d821308a <+202>: or %rcx,%rdx
0x00007fd1d821308d <+205>: mov %rdi,%rcx
0x00007fd1d8213090 <+208>: xor %rax,%rcx
0x00007fd1d8213093 <+211>: and $0xffffffffffffffc0,%rax
0x00007fd1d8213097 <+215>: sar %cl,%rdx
0x00007fd1d821309a <+218>: test %rdx,%rdx
0x00007fd1d821309d <+221>: je 0x7fd1d82130b0 <strlen+240>
0x00007fd1d821309f <+223>: bsf %rdx,%rax
0x00007fd1d82130a3 <+227>: retq
0x00007fd1d82130a4 <+228>: xchg %ax,%ax
0x00007fd1d82130a6 <+230>: nopw %cs:0x0(%rax,%rax,1)
0x00007fd1d82130b0 <+240>: pxor %xmm1,%xmm1
0x00007fd1d82130b4 <+244>: pxor %xmm2,%xmm2
0x00007fd1d82130b8 <+248>: pxor %xmm3,%xmm3
0x00007fd1d82130bc <+252>: nopl 0x0(%rax)
0x00007fd1d82130c0 <+256>: movdqa 0x40(%rax),%xmm0
0x00007fd1d82130c5 <+261>: pminub 0x50(%rax),%xmm0
0x00007fd1d82130ca <+266>: pminub 0x60(%rax),%xmm0
0x00007fd1d82130cf <+271>: pminub 0x70(%rax),%xmm0
0x00007fd1d82130d4 <+276>: pcmpeqb %xmm3,%xmm0
0x00007fd1d82130d8 <+280>: pmovmskb %xmm0,%edx
0x00007fd1d82130dc <+284>: test %edx,%edx
0x00007fd1d82130de <+286>: jne 0x7fd1d8213110 <strlen+336>
0x00007fd1d82130e0 <+288>: sub $0xffffffffffffff80,%rax
0x00007fd1d82130e4 <+292>: movdqa (%rax),%xmm0
0x00007fd1d82130e8 <+296>: pminub 0x10(%rax),%xmm0
0x00007fd1d82130ed <+301>: pminub 0x20(%rax),%xmm0
0x00007fd1d82130f2 <+306>: pminub 0x30(%rax),%xmm0
0x00007fd1d82130f7 <+311>: pcmpeqb %xmm3,%xmm0
0x00007fd1d82130fb <+315>: pmovmskb %xmm0,%edx
0x00007fd1d82130ff <+319>: test %edx,%edx
0x00007fd1d8213101 <+321>: jne 0x7fd1d8213114 <strlen+340>
0x00007fd1d8213103 <+323>: jmp 0x7fd1d82130c0 <strlen+256>
0x00007fd1d8213105 <+325>: nop
0x00007fd1d8213106 <+326>: nopw %cs:0x0(%rax,%rax,1)
0x00007fd1d8213110 <+336>: add $0x40,%rax
0x00007fd1d8213114 <+340>: pxor %xmm0,%xmm0
0x00007fd1d8213118 <+344>: pcmpeqb (%rax),%xmm0
0x00007fd1d821311c <+348>: pcmpeqb 0x10(%rax),%xmm1
0x00007fd1d8213121 <+353>: pcmpeqb 0x20(%rax),%xmm2
0x00007fd1d8213126 <+358>: pcmpeqb 0x30(%rax),%xmm3
0x00007fd1d821312b <+363>: pmovmskb %xmm0,%esi
0x00007fd1d821312f <+367>: pmovmskb %xmm1,%edx
0x00007fd1d8213133 <+371>: pmovmskb %xmm2,%r8d
0x00007fd1d8213138 <+376>: pmovmskb %xmm3,%ecx
0x00007fd1d821313c <+380>: shl $0x10,%rdx
0x00007fd1d8213140 <+384>: shl $0x10,%rcx
0x00007fd1d8213144 <+388>: or %rsi,%rdx
0x00007fd1d8213147 <+391>: or %r8,%rcx
0x00007fd1d821314a <+394>: shl $0x20,%rcx
0x00007fd1d821314e <+398>: or %rcx,%rdx
0x00007fd1d8213151 <+401>: bsf %rdx,%rdx
0x00007fd1d8213155 <+405>: add %rdx,%rax
0x00007fd1d8213158 <+408>: sub %rdi,%rax
0x00007fd1d821315b <+411>: retq
End of assembler dump.
== EXPLOITABLE ==

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants