06-02-2014, 03:12 PM
This is what happens when i run gdb on pilight-recieve with -S -P
Code:
ferdy@raspberrypi ~ $ gdb pilight-receive
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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 "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/pilight-receive...done.
(gdb) run -S 192.168.10.251 -P 5001
Starting program: /usr/local/bin/pilight-receive -S 192.168.10.251 -P 5001
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) backtrace
#0 0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
#1 0x00009238 in main (argc=<optimized out>, argv=0xbefff804)
at /home/ferdy/pilight/pilight/receive.c:152
(gdb) frame 0
#0 0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) frame 1
#1 0x00009238 in main (argc=<optimized out>, argv=0xbefff804)
at /home/ferdy/pilight/pilight/receive.c:152
152 if(strcmp(message, "accept client") == 0) {
(gdb)