Author Topic: EIB segmentation fault  (Read 14509 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
EIB segmentation fault
« on: December 14, 2015, 01:11:00 pm »
Hey,

Just did some apt-get upgrades, rebooted my server, and my EIB won't start anymore.  :-[
I'm getting a segmentation fault.

Code: [Select]
dcerouter_1044981:/# /usr/bin/eibd -D -T -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
   Segmentation fault (core dumped)

Any idea what i'm doing wrong, or what can be done to troubleshoot this?



ps the IP is correct, my core is 192.168.111.1.
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #1 on: December 14, 2015, 01:14:43 pm »
Forget to mention that some packages were skipped during upgrade. No idea if it's linked with it.

Code: [Select]
dcerouter_1044981:/# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic-lts-utopic linux-headers-generic-lts-utopic
  linux-image-generic-lts-utopic lmce-asterisk lmce-cec-adaptor lmce-core
  lmce-md-meta mythtv-common mythtv-frontend mythweb openjdk-7-jre
  openjdk-7-jre-headless pluto-avwizard pluto-boot-scripts
  pluto-confirm-dependencies pluto-xine-player
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up lmce-datalogger-plugin (2.0.0.47.15121131752) ...
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
WARNING: "pear/Image_Color" is deprecated in favor of "pear/Image_Color2"
Did not download optional dependencies: pear/Numbers_Roman, pear/Numbers_Words, use --alldeps to download automatically
pear/Image_Graph can optionally use package "pear/Numbers_Roman"
pear/Image_Graph can optionally use package "pear/Numbers_Words"
downloading Image_Canvas-0.3.3.tgz ...
Starting to download Image_Canvas-0.3.3.tgz (55,245 bytes)
.....done: 55,245 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Canvas-0.3.3.tgz"
Download of "pear/Image_Canvas" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Canvas"
downloading Image_Graph-0.8.0.tgz ...
Starting to download Image_Graph-0.8.0.tgz (370,682 bytes)
...done: 370,682 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Graph-0.8.0.tgz"
Download of "pear/Image_Graph" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Graph"
downloading Image_Color-1.0.4.tgz ...
Starting to download Image_Color-1.0.4.tgz (9,656 bytes)
...done: 9,656 bytes
could not extract the package.xml file from "/build/php5-0LI9sl/php5-5.5.9+dfsg/pear-build-download/Image_Color-1.0.4.tgz"
Download of "pear/Image_Color" succeeded, but it is not a valid package archive
Error: cannot download "pear/Image_Color"
Download failed
install failed
dpkg: error processing package lmce-datalogger-plugin (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up lmce-diskless-tools (2.0.0.47.15121131752) ...
/var/lib/dpkg/info/lmce-diskless-tools.postinst: line 48: /usr/pluto/bin/UpdateDebCache.sh: No such file or directory
dpkg: error processing package lmce-diskless-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pluto-newmdinteractor:
 pluto-newmdinteractor depends on lmce-diskless-tools (>= 2.0.0.47); however:
  Package lmce-diskless-tools is not configured yet.
 pluto-newmdinteractor depends on lmce-diskless-tools (<< 2.0.0.48); however:
  Package lmce-diskless-tools is not configured yet.

dpkg: error processing package pluto-newmdinteractor (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 lmce-datalogger-plugin
 lmce-diskless-tools
 lmce-eib-eibd
 pluto-newmdinteractor
E: Sub-process /usr/bin/dpkg returned an error code (1)
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #2 on: December 14, 2015, 02:00:07 pm »
Poewee, no idea what I'm doing, but with gdb, I'm getting an issue with /usr/lib/libpthsem.so.20?

Code: [Select]
dcerouter_1044981:/# gdb eibd
    GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
    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 "i686-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    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 eibd...(no debugging symbols found)...done.

(gdb) run -D -T -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
    Starting program: /usr/bin/eibd -D -T -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
    Program received signal SIGSEGV, Segmentation fault.
    0xb7fa9ab8 in ?? () from /usr/lib/libpthsem.so.20
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: EIB segmentation fault
« Reply #3 on: December 14, 2015, 02:22:04 pm »
Holy crap, someone besides posde is using eibd?

The upgrade problems are one issue, the eibd is another.  You didn't mention (and this is *very* important) but I'm going to assume you're on 1404.  We identified an issue with eibd server this weekend, we have no idea what is causing it at the moment.  eibd is working perfectly in 1204 but not in any of the current 1404 builds.  You can install the .deb from the 1204 repo or one from the mkoegler ppa for now.

J.

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: EIB segmentation fault
« Reply #4 on: December 14, 2015, 02:24:23 pm »
The upgrade failures are rather strange, they hint at two things.  1. it looks like you had internet errors during the upgrade, I'm really not sure 2. it looks like you're missing files from the installation, specifically from boot-scripts.

J.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #5 on: December 14, 2015, 02:28:54 pm »
Are there alternatives for eibd?
I don't know any other way how to contact the IP-router of my knx installation.  :$

I'm trying to find out how I can install it directly from kroegler, but I'm always getting the info that i'm already on the latest version. :$

They're already at home complaining that some functions aren't working regarding the ligths and so (you only miss what you've got when it's not there)...


ps see my signature for the version... ;)





Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: EIB segmentation fault
« Reply #6 on: December 14, 2015, 02:30:30 pm »
I know of no other way to connect to knx.

apt-get install <pkgname>=<pkgversion>

will install an old version of a pkg.

J.

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: EIB segmentation fault
« Reply #7 on: December 14, 2015, 02:31:12 pm »
Was this working on 1404 for you previously?  If so, do you know the version number of the eibd-server pkg that was working?  0.0.4 or 0.0.5?

J.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #8 on: December 14, 2015, 02:32:48 pm »
Sorry, no clue... :$
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #9 on: December 14, 2015, 02:48:34 pm »
Installing the deb package worked to downgrade:
Code: [Select]
      wget https://www.auto.tuwien.ac.at/~mkoegler/debian/pool/main/b/bcusdk/bcusdk_0.0.4_all.deb
      dpkg -i bcusdk_0.0.4_all.deb

But gives me the same error:
Code: [Select]
      dcerouter_1044981:/tmp# /usr/bin/eibd -D -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
      Segmentation fault (core dumped)
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: EIB segmentation fault
« Reply #10 on: December 14, 2015, 02:50:33 pm »
Try 0.0.5 from mkoegler, that is working for posde on 1404 i386.

J.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #11 on: December 14, 2015, 02:59:59 pm »
It was alread the 0.0.5 (what I did before):
Code: [Select]
https://www.auto.tuwien.ac.at/~mkoegler/debian/pool/main/b/bcusdk/bcusdk_0.0.5_all.deb
dpkg -i bcusdk_0.0.5_all.deb

but after installing the libpthsem20 2.0.8, it started to start without error?
Code: [Select]
wget https://www.auto.tuwien.ac.at/~mkoegler/debian/pool/main/p/pthsem/libpthsem20_2.0.8_i386.deb
dpkg -i libpthsem20_2.0.8_i386.deb


Code: [Select]
/usr/bin/eibd -D -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
ps -ef | grep eibd
      root     19594     1  0 14:50 ?        00:00:00 /usr/bin/eibd -D -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.111.21
      root     26480     1  0 14:22 ?        00:00:00 /usr/bin/SCREEN -d -m -S KNX_via_eibd99 /usr/pluto/bin/Spawn_Device.sh 99

So I guess it working now fine for me.
Thanks!!!

If I can test/do something to help, let me know!
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB segmentation fault
« Reply #12 on: December 14, 2015, 03:01:44 pm »
My relevant sources.list entry
Code: [Select]
deb http://www.auto.tuwien.ac.at/~mkoegler/debian/ eib main
The relevant /etc/apt/preferences contents:

Code: [Select]
Package: *
Pin: origin "www.auto.tuwien.ac.at"
Pin-Priority: 1000

The relevant package install

Code: [Select]
apt-get install --reinstall eibd-client-sources eibd-clients eibd-server libeibclient-dev libeibclient0 lmce-eib-eibd

results in
Code: [Select]
dcerouter_112602:~# dpkg -l | grep eib
ii  eibd-client-sources                         0.0.5                                                      all          Sources of the eibd client programs
ii  eibd-clients                                0.0.5                                                      i386         eibd clients
ii  eibd-server                                 0.0.5                                                      i386         eibd server
ii  libeibclient-dev                            0.0.5                                                      i386         eibd client library
ii  libeibclient0                               0.0.5                                                      i386         eibd client library
ii  lmce-eib-eibd                               2.0.0.47.15121131752                                       i386         <insert up to 60 chars description>

on *my* system I was able to keep the libpthsem from the LinuxMCE deb repo.

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: EIB segmentation fault
« Reply #13 on: December 14, 2015, 03:32:03 pm »
Glad things are working!  I hope we can figure out what the issue is.

J.

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: EIB segmentation fault
« Reply #14 on: January 19, 2016, 07:55:54 am »
Each time I perform an apt upgrade, i'm having the same issue.  :-[

I can "solve" it with:
Code: [Select]
wget https://www.auto.tuwien.ac.at/~mkoegler/debian/pool/main/p/pthsem/libpthsem20_2.0.8_i386.deb
dpkg -i libpthsem20_2.0.8_i386.deb

I've tried to follow the things that posde did, but I haven't got /etc/apt/preferences.
And when i run the apt reinstall, I'm getting the error
Quote
WARNING: The following packages cannot be authenticated!
  eibd-client-sources eibd-clients eibd-server libeibclient-dev libeibclient0
Authentication warning overridden.
E: Internal Error, No file name for lmce-eib-eibd:i386

When i do the apt-get update command, i'm getting
Quote
W: Failed to fetch http://ppa.launchpad.net/mkoegler/bcusdk/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.


ps I'm also getting other issues with the global apt-get upgrade. Not sure if it's related, but I mention it here, just in case... (forum-topic)
« Last Edit: January 19, 2016, 08:02:27 am by brononius »
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE