[devel] hasher and ruby tests

Anton Gorlov stalker на altlinux.ru
Чт Авг 11 10:50:23 UTC 2011


11.08.2011 12:32, Anton Gorlov пишет:
> Как бы победить -в хашере не проходит 1 из тестов с диагнозом
> + /usr/bin/testrb -Iext test/test_io_extra.rb
> Loaded suite TC_IO_Extra
> Started
> .....F.F........
>
> 1) Failure:
> test_directio_set(TC_IO_Extra)
> [/usr/src/RPM/BUILD/io-extra-1.2.2/test/test_io_extra.rb:47]:
> Exception raised:
> Class: <Errno::EINVAL>
> Message: <"Invalid argument - fcntl">

strace  вот что показывает интересного
==
ioctl(2, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 
{B38400 opost isig icanon echo ...}) = 0
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 
0x7fffb93e2ea0) = -1 ENOTTY (Inappropriate ioctl for device)
fcntl(4, F_GETFD)                       = -1 EBADF (Bad file descriptor)
fcntl(5, F_GETFD)                       = -1 EBADF (Bad file descriptor)
fcntl(6, F_GETFD)                       = -1 EBADF (Bad file descriptor)
fcntl(7, F_GETFD)                       = -1 EBADF (Bad file descriptor)
fcntl(8, F_GETFD)                       = -1 EBADF (Bad file descriptor)
fcntl(9, F_GETFD)                       = -1 EBADF (Bad file descriptor)
fcntl(10, F_GETFD)                      = -1 EBADF (Bad file descriptor)
fcntl(11, F_GETFD)                      = -1 EBADF (Bad file descriptor)

===
и кучка ругани на футексы
==
set_robust_list(0x7f1ca60259e0, 0x18)   = 0
futex(0x7f1ca5f11b64, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 
0x7f1ca5f11b20, 2) = 0
futex(0x7f1ca5f11b20, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f1ca5f11b64, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 3, 
{1313058528, 824704000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f1ca5f11b20, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f1ca5f11b64, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 5, 
{1313058528, 834802000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)


есть подозрение что ему нужно directio на диск.. но возможно ли такое в 
хашере?




Подробная информация о списке рассылки Devel