Page 1 of 1

(SOLVED) Zm1.25 in CuBox

Posted: Sun Apr 08, 2012 9:12 pm
by PacoLM
Hi,

I have compiled ZM 1.25 to work in my CuBox (arm based device). Basically it works, except in modect mode, whenever a event is fired, I got this errors:

Code: Select all

Apr  8 23:00:14 debian-cubox zma_m2[8673]: INF [Lateral: 191 - Gone into alarm state]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: INF [Lateral: 191 - Opening new event 5, alarm start]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: INF [Got signal 11 (Segmentation fault), crashing]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: ERR [Signal address is 0x2493948, no eip]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: ERR [Backtrace: /lib/libc.so.6(__default_sa_restorer_v2+0) [0x40f78000]]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: INF [Backtrace complete, please execute the following command for more information]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: INF [addr2line -e /lib/libc.so.6(__default_sa_restorer_v2+0) 0x40f78000]
Is the first time I see this kind of error, could anyone put some light on this?

Thanks,

PacoLM

Re: Zm1.25 in CuBox

Posted: Wed Apr 11, 2012 10:25 am
by cordel
PacoLM wrote:

Code: Select all

Apr  8 23:00:14 debian-cubox zma_m2[8673]: INF [Got signal 11 (Segmentation fault), crashing]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: ERR [Signal address is 0x2493948, no eip]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: ERR [Backtrace: /lib/libc.so.6(__default_sa_restorer_v2+0) [0x40f78000]]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: INF [Backtrace complete, please execute the following command for more information]
Apr  8 23:00:14 debian-cubox zma_m2[8673]: INF [addr2line -e /lib/libc.so.6(__default_sa_restorer_v2+0) 0x40f78000]

what does running:

Code: Select all

 addr2line -e /lib/libc.so 0x40f78000 0x2493948
return?

Re: Zm1.25 in CuBox

Posted: Wed Apr 11, 2012 4:47 pm
by PacoLM
Hi,

That was an easy test!

Code: Select all

addr2line: '/lib/libc.so': No such file
The file is here: /usr/lib/libc.so

Should I make a symlink in /lib/ ?

EDITED: I just copied the file to /lib and now the output is : addr2line: /lib/libc.so: File format not recognized

EDITED 2: I made a symlink to a file that was wrong:

Code: Select all

ln -s /lib/ld-2.11.3.so /lib/ld-linux.so.3
before was :ln -s /ld-2.11.3.so /lib/ld-linux.so.3

Now the output of the command: addr2line -e /lib/libc.so.6 0x40f83000 0x2494940 is:

Code: Select all

??:0
??:0
Another clue: the same error is also thrown if I want to see the live image of the monitor in JPEG mode (WEB_L_STREAM_METHOD=jpeg), but works fine is the working mode for WEB_L_STREAM_METHOD is mpeg.

Thanks!

Re: Zm1.25 in CuBox

Posted: Thu Apr 12, 2012 8:59 pm
by PacoLM
Hi,

I believe the problem was a package or library not installed. In order to check if zoneminder works, I just installed the latest version available on the repositories (1.24.2). When installing it, a lot of packages were also installed, and zoneminder worked perfectly. Then, I just compiled and made the isntallation of the version 1.25 and I have it working since last night.

Thanks for all!

Paco