Skip to content

Instantly share code, notes, and snippets.

@samcv
Created October 5, 2018 09:49
Show Gist options
  • Save samcv/4e549a04971c5dfd3485650504cc35fc to your computer and use it in GitHub Desktop.
Save samcv/4e549a04971c5dfd3485650504cc35fc to your computer and use it in GitHub Desktop.
gdb connmand master
GNU gdb (Gentoo 8.1 p1) 8.1
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:
<https://bugs.gentoo.org/>.
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 connmand...Reading symbols from /usr/lib64/debug//usr/sbin/connmand.debug...done.
done.
(gdb) run -r -n -p iwd
Starting program: /usr/sbin/connmand -r -n -p iwd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
connmand[184681]: Connection Manager version 1.36
connmand[184681]: Unknown option Nameservers in main.conf
connmand[184681]: Ignoring Loopback device plugin
connmand[184681]: Ignoring Ethernet interface plugin
connmand[184681]: Ignoring Gadget interface plugin
connmand[184681]: Ignoring WiFi interface plugin
connmand[184681]: Ignoring Bluetooth technology plugin
connmand[184681]: Ignoring Dundee plugin
connmand[184681]: Ignoring PAC runner proxy plugin
connmand[184681]: Ignoring PolicyKit authorization plugin
connmand[184681]: Ignoring NetworkManager compatibility interfaces
connmand[184681]: Ignoring Neard handover plugin
connmand[184681]: lo {newlink} index 1 address 00:00:00:00:00:00 mtu 65536
connmand[184681]: lo {newlink} index 1 operstate 0 <UNKNOWN>
connmand[184681]: enp0s25 {create} index 2 type 1 <ETHER>
connmand[184681]: enp0s25 {update} flags 36866 <DOWN>
connmand[184681]: enp0s25 {newlink} index 2 address YY:YY:YY:YY:YY:YY mtu 1500
connmand[184681]: enp0s25 {newlink} index 2 operstate 2 <DOWN>
connmand[184681]: Adding interface enp0s25 [ ethernet ]
connmand[184681]: wlan0 {create} index 6 type 1 <ETHER>
connmand[184681]: wlan0 {RX} 10883 packets 15331867 bytes
connmand[184681]: wlan0 {TX} 3939 packets 649078 bytes
connmand[184681]: wlan0 {update} flags 36867 <UP>
connmand[184681]: wlan0 {newlink} index 6 address XX:XX:XX:XX:XX:XX mtu 1500
connmand[184681]: wlan0 {newlink} index 6 operstate 2 <DOWN>
connmand[184681]: Adding interface wlan0 [ wifi ]
connmand[184681]: wlan0 {RX} 10883 packets 15331867 bytes
connmand[184681]: wlan0 {TX} 3939 packets 649078 bytes
connmand[184681]: wlan0 {update} flags 36866 <DOWN>
connmand[184681]: wlan0 {newlink} index 6 address XX:XX:XX:XX:XX:XX mtu 1500
connmand[184681]: wlan0 {newlink} index 6 operstate 2 <DOWN>
connmand[184681]: wlan0 {del} route fe80:: gw :: scope 0 <UNIVERSE>
connmand[184681]: wlan0 {RX} 10883 packets 15331867 bytes
connmand[184681]: wlan0 {TX} 3939 packets 649078 bytes
connmand[184681]: wlan0 {update} flags 36867 <UP>
connmand[184681]: wlan0 {newlink} index 6 address XX:XX:XX:XX:XX:XX mtu 1500
connmand[184681]: wlan0 {newlink} index 6 operstate 2 <DOWN>
connmand[184681]: wlan0 {RX} 10883 packets 15331867 bytes
connmand[184681]: wlan0 {TX} 3939 packets 649078 bytes
connmand[184681]: wlan0 {newlink} index 6 address XX:XX:XX:XX:XX:XX mtu 1500
connmand[184681]: wlan0 {newlink} index 6 operstate 2 <DOWN>
Program received signal SIGSEGV, Segmentation fault.
string2state (str=0x0) at plugins/iwd.c:101
101 if (!strcmp(str, "connected"))
(gdb) bt
#0 string2state (str=0x0) at plugins/iwd.c:101
#1 0x0000555555594c3b in create_device (proxy=0x55555586c340) at plugins/iwd.c:832
#2 object_added (proxy=0x55555586c340, user_data=<optimized out>) at plugins/iwd.c:1039
#3 0x0000555555605cec in parse_properties (iter=0x7fffffffc820, interface=<optimized out>, path=0x555555868c54 "/3/6",
client=0x555555861e00) at gdbus/client.c:955
#4 parse_interfaces (client=client@entry=0x555555861e00, path=path@entry=0x555555868c54 "/3/6", iter=iter@entry=0x7fffffffc8c0)
at gdbus/client.c:982
#5 0x00005555556072ce in parse_interfaces (iter=0x7fffffffc8c0, path=0x555555868c54 "/3/6", client=0x555555861e00) at gdbus/client.c:1010
#6 interfaces_added (conn=<optimized out>, msg=<optimized out>, user_data=0x555555861e00) at gdbus/client.c:1006
#7 0x0000555555600eb3 in signal_filter (connection=0x555555854180, message=0x55555586b690, user_data=0x555555865150) at gdbus/watch.c:407
#8 0x00005555556010da in message_filter (connection=0x555555854180, message=0x55555586b690, user_data=<optimized out>) at gdbus/watch.c:557
#9 0x00007ffff7865d41 in dbus_connection_dispatch () from /usr/lib64/libdbus-1.so.3
#10 0x00005555555ffc88 in message_dispatch (data=0x555555854180) at gdbus/mainloop.c:72
#11 0x00007ffff7afa2da in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#12 0x00007ffff7afa698 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#13 0x00007ffff7afab32 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#14 0x0000555555570139 in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:809
(gdb) quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment