On 16.08.2012 22:46, Pete Batard wrote:
> If you're using the version of libusbx with the latest patches, we
> will get the needed inisght about the cause for the error.
I'm using the latest git-mainline version of libusbx on all machines,
with the extra debugging output you advised me to include. The
only difference between test and prod is the LIBUSB_DEBUG level
(2 on prod/4 on test).

> OK. I didn't think you had applied it. In that case, I don't really
> have any potential fix to push, and trying to add instrumentation may
> be tricky. Will see what I can do.
Perhaps, you don't have to do anything like that. I did some additional
tests regarding the non-logging of error messages on the prod machines.
The result: pcscd is logging the libusbx messages (stdout/stderr) ONLY
in foreground mode. On the prod machines pcscd is not running in
foreground mode, but on test. That's why we got the timerfd warning
message in the log file there.

So I decided to modify libusb/core.c to redirect any messages to the 
syslog facility, instead of writing to stderr. (Note: I was against
this modification in the first place because of the risk of adding
additional errors.)

Finally, I'm able to provide you the following error message:
libusbx: warning [add_to_flying_list] failed to arm first timerfd (errno 
22, it_value = 259823:1000000000)

 From [1]: Errors
EINVAL new_value is not properly initialized (one of the tv_nsec falls
outside the range zero to 999,999,999).

[1] 
https://www.kernel.org/doc/man-pages/online/page/man2/timerfd_create.2.html

Hope that helps!

=========
Regards

Sebastian
=========


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to