irserver Segmentation fault - maybe me as confused

All LINUX related questions (Installation & usage)

Moderator: marcus

irserver Segmentation fault - maybe me as confused

Postby nodepeeker » Mon 4. May 2009, 19:11

Hi,

Device has IP 10.0.1.9
IRtrans (ethernet only) is working fine as I used my XP box to learn codes and save remote commands etc. It just won't work via Linux box.

so I installed latest software from website, all went fine.

I decided to use irclient, thinking my irtrans ethernet would just need the client software, so I typed:
./irclient 10.0.1.9
IRTrans ASCII Client Version 6.01.01
1 - Send
2 - Learn
3 - Status
99 - Exit
Select command 3
Getting Device Status ...This operation is only supported using the irserver
1 - Send
2 - Learn
3 - Status
99 - Exit
Select command 99

OK maybe I do need the irserver running on the Linux box.

As the hardware is not physically attached to the Linux box I PRESUMED as the documentation doesn't make clear, that device is the IP address of the hardware?

So I typed:
./irserver 10.0.1.9
IRServer Version 6.02.07
[ 0]: IRTrans LAN: IR VER: E5.09.01 ETH VER: L1.06.20 SN: 29322
MAC:00-50-c2-52-78-ea IP Addr: 10.0.1.9
Segmentation fault


ANy Ideas? Pointers? etc?
nodepeeker
 
Posts: 18
Joined: Mon 4. May 2009, 18:14

Re: irserver Segmentation fault - maybe me as confused

Postby IRTrans » Mon 4. May 2009, 21:10

Learning of codes has to be done through the irserver. That means the irserver needs to be running and the irclient connects to the irserver.

If the irserver crashes on startup there might be an illegal .rem file in the remotes folder or the server cannot access the remotes folder.

Please note that the irserver needs to be run as superuser (root).

You can also learn the ir codes using the Windows SW and simply copy them onto your LINUX box.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: irserver Segmentation fault - maybe me as confused

Postby nodepeeker » Mon 4. May 2009, 21:20

Hi, yes, learning codes is not the issue, have learned those.

Have removed MY .rem files from the remotes dirtectory incase they are corrupt.

I am logged an as root (always am)

jilldando:/usr/local/irtrans# ls -l
total 788
-rwxr-xr-x 1 root staff 18909 2009-04-27 00:37 ip_assign
-rwxr-xr-x 1 root staff 25325 2009-04-27 00:37 ip_assign64
-rwxr-xr-x 1 root staff 56619 2009-04-27 00:37 irclient
-rwxr-xr-x 1 root staff 71449 2009-04-27 00:37 irclient64
-rwxr-xr-x 1 root staff 274244 2009-04-27 00:37 irserver
-rwxr-xr-x 1 root staff 313126 2009-04-27 00:37 irserver64
-rw-r--r-- 1 root staff 157 2009-05-04 19:38 irserver.log
drwxr-sr-x 2 root staff 4096 2009-05-04 22:15 remotes
-rw-r--r-- 1 root staff 1342 2009-04-26 20:17 SoundAmp.rem
-rw-r--r-- 1 root staff 520 2009-04-26 19:47 TVix.rem
-rw-r--r-- 1 root staff 1242 2009-04-26 20:14 TV.rem
jilldando:/usr/local/irtrans# /usr/local/irtrans/irserver 10.0.1.9
IRServer Version 6.01.15
[ 0]: IRTrans LAN: IR VER: E5.09.01 ETH VER: L1.06.20 SN: 29322
MAC:00-50-c2-52-78-ea IP Addr: 10.0.1.9
Segmentation fault

Should the remotes folder have sticky set? Surely not the problem.

Just want to send commands to the irtrans (10.0.1.9)

:-)
nodepeeker
 
Posts: 18
Joined: Mon 4. May 2009, 18:14

Re: irserver Segmentation fault - maybe me as confused

Postby nodepeeker » Mon 4. May 2009, 21:37

OK, so using your "maybe bad remote" clue:

jilldando:/usr/local/irtrans# /usr/local/irtrans/irserver -timestamp -loglevel 4 10.0.1.9
2009-05-04 22:27:30.408 Init Server Socket done
2009-05-04 22:27:30.408 Init Events done
2009-05-04 22:27:30.451 Name : IRTrans LAN
2009-05-04 22:27:30.451 Version: E5.09.01
2009-05-04 22:27:30.451 FW SNo : 29322
2009-05-04 22:27:30.451 Capab : Power On; Dual Transmitter Drivers; 128KB IR Flash;
2009-05-04 22:27:30.451 FW Cap : 0x1186151
2009-05-04 22:27:30.451 USB SNo: 00-50-c2-52-78-ea
2009-05-04 22:27:30.451 Node : 10.0.1.9

2009-05-04 22:27:30.451 Init communication ...
2009-05-04 22:27:30.452 IRServer Version 6.01.15
2009-05-04 22:27:30.452 [ 0]: IRTrans LAN: IR VER: E5.09.01 ETH VER: L1.06.20 SN: 29322
MAC:00-50-c2-52-78-ea IP Addr: 10.0.1.9
2009-05-04 22:27:30.454 Remote pace compiled:2009-05-04 22:27:30.454 2 Timings - 2009-05-04 22:27:30.454 38 Commands
2009-05-04 22:27:30.456 Remote sky-hd compiled:2009-05-04 22:27:30.457 1 Timings - 2009-05-04 22:27:30.457 34 Commands
2009-05-04 22:27:30.457 Remote mce-mouse compiled:2009-05-04 22:27:30.457 1 Timings - 2009-05-04 22:27:30.457 1 Commands
2009-05-04 22:27:30.459 Remote sky-digital compiled:2009-05-04 22:27:30.459 1 Timings - 2009-05-04 22:27:30.459 31 Commands
2009-05-04 22:27:30.459 Remote compiled:2009-05-04 22:27:30.459 0 Timings - 2009-05-04 22:27:30.459 0 Commands
2009-05-04 22:27:30.465 Remote irtrans compiled:2009-05-04 22:27:30.465 1 Timings - 2009-05-04 22:27:30.465 33 Commands
Segmentation fault

So I removed the next one that would be read
-rw-r--r-- 1 cupsys users 1494 2009-02-14 17:31 kathrein-ufs.rem

and bingo.

So anyone else getting this in future.
1) turn up the debugging
/usr/local/irtrans/irserver -timestamp -loglevel 4 10.0.1.9

2) Look for last thing it did ok, and remove the next item in the remotes folder.

Cheers
jilldando:/usr/local/irtrans# /usr/local/irtrans/irserver -daemon -timestamp -logfile /var/log/automation/irserver.log -loglevel 4 10.0.1.9
nodepeeker
 
Posts: 18
Joined: Mon 4. May 2009, 18:14

Re: irserver Segmentation fault - maybe me as confused

Postby IRTrans » Mon 4. May 2009, 21:58

Thank you for the info !

We will check why the Kathrein .rem file crashes the server - that should not happen because it is one of our supplied remotes ...

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: irserver Segmentation fault - maybe me as confused

Postby IRTrans » Mon 4. May 2009, 22:12

Hmm, looks like you did not fully install the software.

You have an irserver version 6.01.15 while the latest download contains 6.02.07. Using that version nothing crashes on my test system.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: irserver Segmentation fault - maybe me as confused

Postby nodepeeker » Mon 4. May 2009, 22:31

OK, just so you know, just removed the software, downloaded your latest, installed it and got:

jilldando:/opt/irtrans# ls -l /usr/local/irtrans/remotes
total 60
-rw-r--r-- 1 root staff 7489 2009-05-04 23:25 ccf.rem
-rw-r--r-- 1 root staff 0 2009-05-04 23:25 dbox2.rem
-rw-r--r-- 1 root staff 13157 2009-05-04 23:25 dream.rem
-rw-r--r-- 1 root staff 1074 2009-05-04 23:25 irtrans.rem
-rw-r--r-- 1 root staff 1494 2009-05-04 23:25 kathrein-ufs.rem
-rw-r--r-- 1 root staff 2622 2009-05-04 23:25 mce-keyboard.rem
-rw-r--r-- 1 root staff 189 2009-05-04 23:25 mce-mouse.rem
-rw-r--r-- 1 root staff 2790 2009-05-04 23:25 mediacenter.rem
-rw-r--r-- 1 root staff 3390 2009-05-04 23:25 pace.rem
-rw-r--r-- 1 root staff 262 2009-05-04 23:25 routing.sample
-rw-r--r-- 1 root staff 1498 2009-05-04 23:25 sky-digital.rem
-rw-r--r-- 1 root staff 1650 2009-05-04 23:25 sky-hd.rem
jilldando:/opt/irtrans# /usr/local/irtrans/irserver -loglevel 4 10.0.1.9
Init Server Socket done
Init Events done
Name : IRTrans LAN
Version: E5.09.01
FW SNo : 29322
Capab : Power On; Dual Transmitter Drivers; 128KB IR Flash;
FW Cap : 0x1186151
USB SNo: 00-50-c2-52-78-ea
Node : 10.0.1.9

Init communication ...
IRServer Version 6.02.07
[ 0]: IRTrans LAN: IR VER: E5.09.01 ETH VER: L1.06.20 SN: 29322
MAC:00-50-c2-52-78-ea IP Addr: 10.0.1.9
Chdir to DB OK
Read routing OK
Read Switches OK
Open DIR: 11
Get Dirent: 336
**** CCF Error: ac1 [See below for Remote name]
Remote ccf compiled: 20 Timings - 20 Commands
Remote compiled: 0 Timings - 0 Commands
Remote dream compiled: 0 Timings - 36 Commands
Remote irtrans compiled: 1 Timings - 33 Commands
Segmentation fault


So removed the remote kathrein-ufs.rem

jilldando:/opt/irtrans# ls -l /usr/local/irtrans/remotes
total 56
-rw-r--r-- 1 root staff 7489 2009-05-04 23:25 ccf.rem
-rw-r--r-- 1 root staff 0 2009-05-04 23:25 dbox2.rem
-rw-r--r-- 1 root staff 13157 2009-05-04 23:25 dream.rem
-rw-r--r-- 1 root staff 1074 2009-05-04 23:25 irtrans.rem
-rw-r--r-- 1 root staff 2622 2009-05-04 23:25 mce-keyboard.rem
-rw-r--r-- 1 root staff 189 2009-05-04 23:25 mce-mouse.rem
-rw-r--r-- 1 root staff 2790 2009-05-04 23:25 mediacenter.rem
-rw-r--r-- 1 root staff 3390 2009-05-04 23:25 pace.rem
-rw-r--r-- 1 root staff 262 2009-05-04 23:25 routing.sample
-rw-r--r-- 1 root staff 1498 2009-05-04 23:25 sky-digital.rem
-rw-r--r-- 1 root staff 1650 2009-05-04 23:25 sky-hd.rem
jilldando:/opt/irtrans# /usr/local/irtrans/irserver -loglevel 4 10.0.1.9
Init Server Socket done
Init Events done
Name : IRTrans LAN
Version: E5.09.01
FW SNo : 29322
Capab : Power On; Dual Transmitter Drivers; 128KB IR Flash;
FW Cap : 0x1186151
USB SNo: 00-50-c2-52-78-ea
Node : 10.0.1.9

Init communication ...
IRServer Version 6.02.07
[ 0]: IRTrans LAN: IR VER: E5.09.01 ETH VER: L1.06.20 SN: 29322
MAC:00-50-c2-52-78-ea IP Addr: 10.0.1.9
Chdir to DB OK
Read routing OK
Read Switches OK
Open DIR: 11
Get Dirent: 308
**** CCF Error: ac1 [See below for Remote name]
Remote ccf compiled: 20 Timings - 20 Commands
Remote compiled: 0 Timings - 0 Commands
Remote dream compiled: 0 Timings - 36 Commands
Remote irtrans compiled: 1 Timings - 33 Commands
Remote mce-keyboard compiled: 1 Timings - 77 Commands
Remote mce-mouse compiled: 1 Timings - 1 Commands
Remote mediacenter compiled: 1 Timings - 49 Commands
Remote pace compiled: 2 Timings - 38 Commands
Remote sky-digital compiled: 1 Timings - 31 Commands
Remote sky-hd compiled: 1 Timings - 34 Commands
Get Dirent: 0
Duplicate Commands for ccf.1: ccf.2 ccf.3 ccf.4
Duplicate Commands for ccf.2: ccf.3 ccf.4
Duplicate Commands for ccf.3: ccf.4
Duplicate Commands for pace.0: pace.0-
Total: 10 Remotes - 28 Timings - 319 Commands - 0 Calib. Commands
0 Togglec. - 19 CCF Data - 0 CCF RAW - 1 CCF Error

so katy is the Bitch here :-) rm her ;-)
nodepeeker
 
Posts: 18
Joined: Mon 4. May 2009, 18:14

Re: irserver Segmentation fault - maybe me as confused

Postby IRTrans » Tue 5. May 2009, 10:36

Thank you for the info - that is really strange as it is working on our machine ...

Anyway, we will check that.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: irserver Segmentation fault - maybe me as confused

Postby Wladimir » Wed 20. May 2009, 12:24

I have the same problem, it seems to have to do with stack trashing, which is detected on recent Ubuntu machines:
#0 0xb7fa5430 in __kernel_vsyscall ()
#1 0xb7e408a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7e42268 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7e7e16d in ?? () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7f0f6d8 in __fortify_fail () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7f0f690 in __stack_chk_fail () from /lib/tls/i686/cmov/libc.so.6
#6 0x08054d52 in StoreIRTiming (irp=0x9f831e8,
data=0xbffa5ec0 "[N]5[1]168 280[2]168 440[3]416 280[4]168 608[5]168 776[RC]2[FL]100[FREQ]36[RCMM-TOGGLE]", toggle=0)
at fileio.c:2791
#7 0x08053cc6 in DBStoreTimings (fp=0x9f83008) at fileio.c:2547
#8 0x08050eba in DBReadCommandFile (remote=0xbffa620f "kathrein-ufs.rem") at fileio.c:2011
#9 0x08068ce4 in ReadIRDatabase () at server.c:2746
#10 0x08063dfb in InitServer (dev=0xbffa79b5 "/dev/ttyUSB0") at server.c:1332
#11 0x08062ab9 in main (argc=3, argv=0xbffa7014) at server.c:827

FYI: #define VERSION "6.02.07"

Solution: change line 2677 to something like
char cm[100],par[1000];
Wladimir
 
Posts: 1
Joined: Wed 20. May 2009, 12:22

Re: irserver Segmentation fault - maybe me as confused

Postby IRTrans » Wed 20. May 2009, 17:50

Thanks a lot for the info :)

You are absolutely right - we have already changed that and we will put a new version on our website shortly.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Next

Return to LINUX

Who is online

Users browsing this forum: No registered users and 5 guests