Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - slogger problem: (5 Items)
   
slogger problem  
Hello, 
I have QNX 6.3.2 on x86 processor board.
I'm using slogger ( slogger -l /tmp/log) to log messages received by CAN driver. The problem is a garbage that 
periodically appeares in log. No other application writes to the log (I've checked this. When drivers doesn't work there
 is nothing in log ). 
What's wrong?

E.g. 
Feb 21 00:03:34 6 10001 2 /dev/can0 << id: 0x4a0 len: 0x8 rtr: 0 data: 0 
Feb 21 00:03:34 6 10001 2 /dev/can0 << id: 0x5a0 len: 0x8 rtr: 0 data: 0 
Feb 21 00:03:34 6 10002 0 Unknown message with id 0x3a0 and length 8 byte(s) received. 
Feb 21 00:03:34 6 10001 2 /dev/can0 << id: 0x6a0 len: 0x8 rtr: 0 data: 0 
Feb 21 00:03:34 6 10001 2 /dev/can0 << id: 0x3b0 len: 0x8 rtr: 0 data: 0 
Feb 21 00:03:34 6 10002 0 Unknown message with id 0x3b0 and length 8 byte(s) received. 
Feb 17 17:48:16 2 683621 515 980579442 1679831072 979465313 671100960 1052782 10002 319928614 1852534357 544110447 
........ 
this garbage appears periodically ( period: 4-10 seconds ) 
........ 
1936942445 543516513 1752459639 543451424 1647605808 185100960 771100960 1056254 10002 319928614 1852534357 
Mar 23 19:48:33 7 222573 1847 with id 0x3a0 and length 8 byte(s) received. 
Feb 21 00:03:34 6 10002 0 Unknown message with id 0x5b0 and length 8 byte(s) received. 
Feb 21 00:03:34 6 10001 2 /dev/can0 << id: 0x3a0 len: 0x8 rtr: 0 data: 0 
Feb 21 00:03:34 6 10001 2 /dev/can0 << id: 0x4a0 len: 0x8 rtr: 0 data: 0 
Feb 21 00:03:34 6 10002 0 Unknown message with id 0x6b0 and length 8 byte(s) received. 
Feb 21 00:03:34 6 10001 2 /dev/can0 << id: 0x5a0 len: 0x8 rtr: 0 data: 0 
Feb 21 00:03:34 6 10002 0 Unknown message with id 0x3a0 and length 8 byte(s) received.

Also I've tried a simple test program:

//main 
while(1) 
{ 
delay(100); 
slogf( 1,1,"%s","test"); 
}
Slogger put logs to file on CF disk (slogger -l /tmp/log).
Garbage in the log appeared every 3 minutes.

Then I've tried to put logs into RAM (slogger -l /dev/shmem/log). 
There was no garbage.

So, the problem appears only when slogger puts logs into file on CF disk.

Could anyone help me? 






Re: slogger problem  
Hello Alex,
Please make a backup copy of your sloginfo and try the attached one.
Thanks,
Yuriy
Attachment: Text sloginfo 7.23 KB
Re: slogger problem  
Hello Yuriy,

I've tried the version of sloginfo that you suggest. It works fine. There is no garbage anymore.

Could you tell me what is your version of sloginfo? Is it from previous version of QNX?

Thank you
Re: slogger problem  
Hello Alex,
You can find out the version of sloginfo (or any other QNX utility) with “use –i”.

Example:
use –i sloginfo

Thanks,
Yuriy
Re: slogger problem  
I have got a similar problem of garbage chraters in the log file.

Is your program using threads?

Are you locking the log file call?