Hi,

I have thought about it and somehow it sounds somewhat familiar. It may 
be a bug, which is fixed in the latest git version. Maybe even in 
version 2.2.1. Look at the release notes of 2.2.1. There is "a racing 
condition may result in a pthread unlock error".

Which version of tntnet do you use?

Tommi

Am 27.06.2014 13:51, schrieb Sven Bergmann:
> Dear all,
>
> while using tntnet I have trouble with the poller thread.
>
> It throws the following error message:
>
> Error message
> -----------
> exception occured: pthread_mutex_unlock: errno 1: Operation not permitted
> -----------
>
> When connecting with 5-10 clients, the error appears for example after
> 50 minutes. The website itself is an ajax based website with reload
> interval of 1s.
>
> Does anyone have similar problems?
>
> Best regards,
> Sven
>
> Below please find an strace snippet:
> -------------------------------------
>
> epoll_ctl(5, EPOLL_CTL_DEL, 15,
> {EPOLLOUT|EPOLLRDBAND|EPOLLWRNORM|EPOLLWRBAND|EPOLLMSG|EPOLLHUP|EPOLLET|0x374dc820,
> {u32=15, u64=590170322271993871}}) = 0
> time(NULL)                              = 1403864357
> futex(0x8399fa4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8399fa0, {FUTEX_OP_SET,
> 0, FUTEX_OP_CMP_GT, 1}) = 1
> nanosleep({0, 100000}, NULL)            = 0
> epoll_wait(5, {{EPOLLIN, {u32=12, u64=13214834910537187340}}}, 16, 5990) = 1
> time(NULL)                              = 1403864357
> epoll_ctl(5, EPOLL_CTL_DEL, 12,
> {EPOLLOUT|EPOLLRDBAND|EPOLLWRNORM|EPOLLWRBAND|EPOLLMSG|EPOLLHUP|EPOLLET|0x374dc820,
> {u32=12, u64=590170322271993868}}) = 0
> time(NULL)                              = 1403864357
> futex(0x8399fa4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8399fa0, {FUTEX_OP_SET,
> 0, FUTEX_OP_CMP_GT, 1}) = 1
> nanosleep({0, 100000}, NULL)            = 0
> epoll_wait(5, {{EPOLLIN, {u32=13, u64=13214834910537187341}}}, 16, 5990) = 1
> time(NULL)                              = 1403864357
> epoll_ctl(5, EPOLL_CTL_DEL, 13,
> {EPOLLOUT|EPOLLRDBAND|EPOLLWRNORM|EPOLLWRBAND|EPOLLMSG|EPOLLHUP|EPOLLET|0x374dc820,
> {u32=13, u64=590170322271993869}}) = 0
> time(NULL)                              = 1403864357
> futex(0x8399fa4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8399fa0, {FUTEX_OP_SET,
> 0, FUTEX_OP_CMP_GT, 1}) = 1
> nanosleep({0, 100000}, NULL)            = 0
> epoll_wait(5, {{EPOLLIN, {u32=3, u64=13219212177996513283}}}, 16, 5990) = 1
> time(NULL)                              = 1403864357
> read(3, "A", 64)                        = 1
> nanosleep({0, 100000}, NULL)            = 0
> time(NULL)                              = 1403864357
> epoll_ctl(5, EPOLL_CTL_ADD, 15, {EPOLLIN, {u32=15,
> u64=13214834910537187343}}) = 0
> epoll_wait(5, {{EPOLLIN, {u32=3, u64=13219212177996513283}}}, 16, 5990) = 1
> time(NULL)                              = 1403864357
> read(3, "A", 64)                        = 1
> nanosleep({0, 100000}, NULL)            = 0
> time(NULL)                              = 1403864357
> epoll_ctl(5, EPOLL_CTL_ADD, 12, {EPOLLIN, {u32=12,
> u64=13214834910537187340}}) = 0
> epoll_wait(5, {{EPOLLIN, {u32=3, u64=13219212177996513283}}}, 16, 5990) = 1
> time(NULL)                              = 1403864357
> read(3, "A", 64)                        = 1
> nanosleep({0, 100000}, NULL)            = 0
> time(NULL)                              = 1403864357
> epoll_ctl(5, EPOLL_CTL_ADD, 13, {EPOLLIN, {u32=13,
> u64=13214834910537187341}}) = 0
> epoll_wait(5, {{EPOLLIN, {u32=15, u64=13214834910537187343}}}, 16, 5990) = 1
> time(NULL)                              = 1403864357
> epoll_ctl(5, EPOLL_CTL_DEL, 15, {EPOLLERR|EPOLLET|0x374dd020, {u32=15,
> u64=590170322271993871}}) = 0
> time(NULL)                              = 1403864357
> futex(0x8399fa4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8399fa0, {FUTEX_OP_SET,
> 0, FUTEX_OP_CMP_GT, 1}) = 1
> futex(0x82c4f70, FUTEX_WAKE_PRIVATE, 1) = 1
> write(15,
> "\x15\x03\x03\x00\x30\xa2\xf1\x6f\x8e\x0d\xe2\xb9\x6b\xb8\x2e\x47\x34\x18\x16\xc3\x33\xae\x56\x25\xb3\xb9\x39\x97\xd9\x3e\xe3\x76"...,
> 53) = 53
> poll([{fd=15, events=POLLIN}], 1, 10000) = 1 ([{fd=15,
> revents=POLLIN|POLLERR|POLLHUP}])
> read(15, "\x15\x03\x03\x00\x30", 5)     = 5
> read(15,
> "\x54\x7a\xa4\x54\x1a\xf1\x18\x6f\x2c\x16\x6f\x04\x1a\x45\x3d\x8f\xa7\xa0\xf7\x66\xe2\x75\x24\x95\x0d\x9a\x4f\x49\x73\x83\xbe\x27"...,
> 48) = 48
> close(15)                               = 0
> write(2, "exception occured: ", 19)     = 19
> write(2, "pthread_mutex_unlock: errno 1: O"..., 54) = 54
> write(2, "\n", 1)                       = 1
> madvise(0xb33fc000, 8372224, MADV_DONTNEED) = 0
> _exit(0)
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to