• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] openSUSE 13.2 "pilight-daemon -H" segfault
#1
Using the latest rewrite commits.
When trying to find what GPIO platforms are supported while running pilight on a laptop using "pilight-daemon -H", I get a segfault:
Code:
martin@linux-axkb:~/builds/pilight/rewrite>  ./pilight-daemon -H
Usage: pilight-daemon [options]
         -H --help                      display usage summary
         -V --version                   display version
         -C --config                    config file
         -S --server=x.x.x.x            connect to server address
         -P --port=xxxx                 connect to server port
         -D --nodaemon                  do not daemonize and
                                        show debug information
            --debuglevel                show additional development info
Speicherzugriffsfehler
martin@linux-axkb:~/builds/pilight/rewrite>
GDB backtrace:
Code:
martin@linux-axkb:~/builds/pilight/rewrite>  gdb --args ./pilight-daemon -H
GNU gdb (GDB; openSUSE 13.2) 7.8
Copyright (C) 2014 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-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.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"...

warning: /etc/gdbinit.d/gdb-heap.py: Datei oder Verzeichnis nicht gefunden
Reading symbols from ./pilight-daemon...done.
(gdb) run
Starting program: /home/linoM6400/builds/pilight/rewrite/pilight-daemon -H
Got object file from memory but can't read symbols: File truncated.
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.19-16.22.2.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Usage: pilight-daemon [options]
         -H --help                      display usage summary
         -V --version                   display version
         -C --config                    config file
         -S --server=x.x.x.x            connect to server address
         -P --port=xxxx                 connect to server port
         -D --nodaemon                  do not daemonize and
                                        show debug information
            --debuglevel                show additional development info

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff76bc431 in pthread_join () from /lib64/libpthread.so.0
Missing separate debuginfos, use: zypper install libdbus-1-3-debuginfo-1.8.16-16.1.x86_64 libgcc_s1-debuginfo-4.8.3+r212056-2.2.4.x86_64 libnl3-200-debuginfo-3.2.25-2.1.2.x86_64 libpcap1-debuginfo-1.6.2-1.2.x86_64 libstdc++6-debuginfo-4.8.3+r212056-2.2.4.x86_64 libudev1-debuginfo-210.1456152170.f2b9ea6-25.34.1.x86_64 libunwind-debuginfo-1.1-10.3.1.x86_64 libusb-1_0-0-debuginfo-1.0.19-2.1.2.x86_64
(gdb) bt
#0  0x00007ffff76bc431 in pthread_join () from /lib64/libpthread.so.0
#1  0x00000000004ad5b5 in timer_thread_gc () at /home/linoM6400/builds/pilight/rewrite/libs/pilight/core/timerpool.c:339
#2  0x00000000004981fd in main_gc () at /home/linoM6400/builds/pilight/rewrite/daemon.c:1708
#3  0x000000000049a04f in start_pilight (argc=2, argv=0x7fffffffdca8) at /home/linoM6400/builds/pilight/rewrite/daemon.c:2493
#4  0x000000000049a092 in main (argc=2, argv=0x7fffffffdca8) at /home/linoM6400/builds/pilight/rewrite/daemon.c:2660
(gdb) frame 4
#4  0x000000000049a092 in main (argc=2, argv=0x7fffffffdca8) at /home/linoM6400/builds/pilight/rewrite/daemon.c:2660
2660            int ret = start_pilight(argc, argv);
(gdb) frame 3
#3  0x000000000049a04f in start_pilight (argc=2, argv=0x7fffffffdca8) at /home/linoM6400/builds/pilight/rewrite/daemon.c:2493
2493                    main_gc();
(gdb) frame 2
#2  0x00000000004981fd in main_gc () at /home/linoM6400/builds/pilight/rewrite/daemon.c:1708
1708            timer_thread_gc();
(gdb) frame 1
#1  0x00000000004ad5b5 in timer_thread_gc () at /home/linoM6400/builds/pilight/rewrite/libs/pilight/core/timerpool.c:339
339             pthread_join(pth, NULL);
(gdb) frame 0
#0  0x00007ffff76bc431 in pthread_join () from /lib64/libpthread.so.0
(gdb) q
A debugging session is active.

        Inferior 1 [process 19086] will be killed.

Quit anyway? (y or n) y
martin@linux-axkb:~/builds/pilight/rewrite>
The backtrace looks a bit useless to me, so if there is another way to get more information I would gladly try that too.

On a Raspberry Pi it works though:
Code:
pi@Rapsi2 ~/stuff/pilight $  ./pilight-daemon -H
Usage: pilight-daemon [options]
         -H --help                      display usage summary
         -V --version                   display version
         -C --config                    config file
         -S --server=x.x.x.x            connect to server address
         -P --port=xxxx                 connect to server port
         -D --nodaemon                  do not daemonize and
                                        show debug information
            --debuglevel                show additional development info

        The following GPIO platforms are supported:
        - none
        - odroidxu4
        - odroidc2
        - odroidc1
        - raspberrypi3
        - raspberrypi2
        - raspberrypi1b+
        - raspberrypi1b2
        - raspberrypi1b1
        - hummingboard_edge_dq
        - hummingboard_gate_dq
        - hummingboard_edge_sdl
        - hummingboard_gate_sdl
        - hummingboard_base_dq
        - hummingboard_pro_dq
        - hummingboard_base_sdl
        - hummingboard_pro_sdl
        - bananapi_m2
        - bananapi1
        - pcduino1

pi@Rapsi2 ~/stuff/pilight $
 
Reply
#2
Fixed
 
Reply
#3
Works Smile
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  daemon crashes in rewrite ma-ca 1 784 08-05-2017, 03:40 PM
Last Post: curlymo
  pilight rewrite branch fails to compile ebk 0 919 06-30-2017, 01:07 PM
Last Post: ebk
  Test pilight clients curlymo 0 1,160 01-14-2017, 01:19 PM
Last Post: curlymo
Bug [Solved] no gpio-platform configured koos147 5 7,709 04-20-2016, 08:01 PM
Last Post: ksmedts
  [Solved] First transmission causes full cpu usage andiwand 11 4,359 04-19-2016, 06:16 AM
Last Post: curlymo
  [Solved] Compilation error under openSUSE pilino1234 4 2,094 04-16-2016, 08:23 AM
Last Post: pilino1234
  [Solved] pilight-receive fills log with empty DEBUG messages pilino1234 1 1,561 04-12-2016, 07:29 PM
Last Post: curlymo
  [Solved] wiringX initialisation error ksmedts 6 4,272 04-11-2016, 08:06 PM
Last Post: ksmedts
  [Solved] Crash on invalid config.json syntax pilino1234 10 4,756 04-01-2016, 05:40 PM
Last Post: curlymo
  [Solved] Time Stamp Information wo_rasp 5 2,229 03-05-2016, 11:29 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)