On Sat, 10 Apr 2021, [email protected] wrote:
int
epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)
{
       dvpoll_epollfd_t epoll[2];

       res = write(epfd, epoll, sizeof (epoll[0]) * (i + 1));


I am not sure but valgrind may be complaining about passing epoll argument to 
write().

Perhaps this could be patched at the OpenIndiana level,
but ideally the Illumos contributors could contact valgrind.org to patch 
valgrind,
and/or the illumos sources (if required).

Also that would fix the issue for all Illumos based distributions, not just for 
OpenIndiana,
provided OpenIndiana would then incorporate/update its valgrind package.

It is nice to hear that valgrind is working at all. It is necessarily for a knowledgeable volunteer to study the interface between the C library and the kernel and write the valgrind extension code to handle it. It is unlikely that the primary Valgrind developers care to support Illumos directly but they will accept good patches. People interested in Illumos need to do the work and take care of themselves.

In the mean time, you could configure the program not to use epoll and valgrind could be useful for the rest of the program.

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt

_______________________________________________
oi-dev mailing list
[email protected]
https://openindiana.org/mailman/listinfo/oi-dev

Reply via email to