Page 1 of 1

memory fault in fedora 16

Posted: Thu Jun 28, 2012 11:40 pm
by pedro_nf
hello all,
I just compiled and installed the latest source code for 1.25 in Fedora 16.
I'm using a Logitech C525 webcam. I have no image and in the log file I have a memory fault and a message saying zmc -d /dev/video0 exited abnormally. Any one experienced this?
greetings
Pedro

Re: memory fault in fedora 16

Posted: Fri Jun 29, 2012 7:15 am
by pedro_nf
Hello again,
yeah I know this post is not very useful in terms of problem explanation... but yesterday I was too tired and it was too late.
I compiled zoneminder in Fedora 16 64 bits and I also increased the shared memory according to some other posts I found. But that didn't fix the problem.
I'll try to post more info about my particular problem soon.

For now I have a couple of questions:
1. Is there someone that managed to compile and make it work on a Fedora 16 X64?
2. Is there someone using the Logitech C525 camera?

Thanks in advance!
Pedro
pedro_nf wrote:hello all,
I just compiled and installed the latest source code for 1.25 in Fedora 16.
I'm using a Logitech C525 webcam. I have no image and in the log file I have a memory fault and a message saying zmc -d /dev/video0 exited abnormally. Any one experienced this?
greetings
Pedro

Re: memory fault in fedora 16

Posted: Fri Jun 29, 2012 3:52 pm
by pedro_nf
hello again,
I see my post doesn't have many views count... no one is using zoneminder on fedora 16?

the log file is on the bottom, I just made a copy/past from the web log window, it is in reverse order, the last log is on the top, sorry.

the result of the addr2line command:

$ sudo addr2line -e /usr/local/bin/zmc 0x35dfe0f500 0x41ccb4 0x425487 0x405464 0x35dfa2169d 0x4058a1
??:0
/home/pedro/admin/install/ZoneMinder-1.25.0/src/zm_local_camera.cpp:1829
/home/pedro/admin/install/ZoneMinder-1.25.0/src/zm_monitor.cpp:2525
/home/pedro/admin/install/ZoneMinder-1.25.0/src/zmc.cpp:261
??:0
??:0


log:

2012-06-29 17:44:17.749760 zmdc 2779 ERR 'zmc -d /dev/video0' exited abnormally, exit status 11 zmdc.pl
2012-06-29 17:44:17.734490 zmc_dvideo0 2869 INF addr2line -e /usr/local/bin/zmc() 0x35dfe0f500 0x41ccb4 0x425487 0x405464 0x35dfa2169d 0x4058a1 zm_signal.cpp 127
2012-06-29 17:44:17.734136 zmc_dvideo0 2869 INF Backtrace complete, please execute the following command for more information zm_signal.cpp 126
2012-06-29 17:44:17.733843 zmc_dvideo0 2869 ERR Backtrace: /usr/local/bin/zmc() [0x4058a1] zm_signal.cpp 123
2012-06-29 17:44:17.733548 zmc_dvideo0 2869 ERR Backtrace: /lib64/libc.so.6(__libc_start_main+0xed) [0x35dfa2169d] zm_signal.cpp 123
2012-06-29 17:44:17.733253 zmc_dvideo0 2869 ERR Backtrace: /usr/local/bin/zmc() [0x405464] zm_signal.cpp 123
2012-06-29 17:44:17.732935 zmc_dvideo0 2869 ERR Backtrace: /usr/local/bin/zmc() [0x425487] zm_signal.cpp 123
2012-06-29 17:44:17.732447 zmc_dvideo0 2869 ERR Backtrace: /usr/local/bin/zmc() [0x41ccb4] zm_signal.cpp 123
2012-06-29 17:44:17.731946 zmc_dvideo0 2869 ERR Backtrace: /lib64/libpthread.so.0() [0x35dfe0f500] zm_signal.cpp 123
2012-06-29 17:44:17.730891 zmc_dvideo0 2869 ERR Signal address is 0x10202, no eip zm_signal.cpp 91
2012-06-29 17:44:17.729976 zmc_dvideo0 2869 INF Got signal 11 (Segmentation fault), crashing zm_signal.cpp 73
2012-06-29 17:44:13.314682 zmc_dvideo0 2869 WAR Saturation control is not suppported zm_local_camera.cpp 1397
2012-06-29 17:44:13.314116 zmc_dvideo0 2869 WAR Hue control is not suppported zm_local_camera.cpp 1339
2012-06-29 17:44:13.313548 zmc_dvideo0 2869 WAR Brightness control is not suppported zm_local_camera.cpp 1278
2012-06-29 17:44:13.312415 zmc_dvideo0 2869 WAR Contrast control is not suppported zm_local_camera.cpp 1455
2012-06-29 17:44:13.163207 zmc_dvideo0 2869 INF Starting Capture zmc.cpp 191
2012-06-29 17:44:13.044000 zmdc 2869 INF 'zmc -d /dev/video0' started at 12/06/29 17:44:13 zmdc.pl
2012-06-29 17:44:13.043970 zmdc 2779 INF 'zmc -d /dev/video0' starting at 12/06/29 17:44:13, pid = 2869 zmdc.pl
2012-06-29 17:44:13.035320 zmdc 2779 INF Starting pending process, zmc -d /dev/video0 zmdc.pl

Re: memory fault in fedora 16

Posted: Fri Jun 29, 2012 4:11 pm
by pedro_nf
Below is the code that crashes. the buffer must be smaller then it should... any ideas on the problem? the camera works ok using cheese application.

case V4L2_PIX_FMT_YUYV :
#endif // ZM_HAS_V4L2
{
int size = width*height*2;
unsigned char *s_ptr = buffer;
unsigned char *d_ptr = temp_buffer;

int y1,y2,u,v;
int r,g,b;
for ( int i = 0; i < size; i += 4 )
{
y1 = *s_ptr++;
u = *s_ptr++;
y2 = *s_ptr++;
v = *s_ptr++;