<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.8.5">
</HEAD>
<BODY>
Hello Miha,<BR>
<BR>
Try to check if latest version from github.com fixes your issue:<BR>
<A HREF="https://github.com/ASPLes/nopoll/archive/master.zip ">https://github.com/ASPLes/nopoll/archive/master.zip </A> <BR>
<BR>
If bug persists, build your solution with debug enabled (without<BR>
stripping symbols as it seems to happen given the backtrace) to get a<BR>
stack trace with line indications...otherwise, it will say you it is<BR>
breaking/jumping at nopoll_io_wait_select_add_to but not where...<BR>
<BR>
At the same time, reading the function where segfault is happening:<BR>
<BR>
<BLOCKQUOTE>
    <BLOCKQUOTE>
        <IMG SRC="cid:1502036229.7001.6.camel@aspl.es" ALIGN="bottom" BORDER="0"><BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
..and the stack trace your are providing, it very likely the failure is<BR>
happening at:<BR>
<BR>
        /* set the value */<BR>
        FD_SET (fds, &(select->set));<BR>
<BR>
...and the only way for that to happen is that you are passing a<BR>
"select->" reference that was deallocated or a reference pointing to<BR>
nowhere. Obviously, this is a speculation without having the right<BR>
trace (though I'll bet the error is likely to be there).<BR>
<BR>
Best Regards,<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
El vie, 04-08-2017 a las 15:01 +0200, Miha Nedok escribió:
<BLOCKQUOTE TYPE=CITE>
    With the version 0.4.4.b349
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I am getting:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: *** buffer overflow detected ***: /usr/app/App terminated
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: ======= Backtrace: =========
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f1e282f57e5]
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f1e2839711c]
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: /lib/x86_64-linux-gnu/libc.so.6(+0x117120)[0x7f1e28395120]
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: /lib/x86_64-linux-gnu/libc.so.6(+0x119067)[0x7f1e28397067]
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: /usr/app/App(nopoll_io_wait_select_add_to+0x27)[0x4612f7]
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: /usr/app/App(nopoll_loop_register+0x3b)[0x460c2b]
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: /usr/app/App(nopoll_ctx_foreach_conn+0x7d)[0x457f5d]
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Aug  4 07:24:23 [73177]: /usr/app/App(nopoll_loop_wait+0x74)[0x460f84]
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    And i cannot reproduce this on test server even if i put it on a lot of pressure
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    with multiple clients.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    How can I help to debug this?
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
noPoll mailing list
<A HREF="mailto:noPoll@lists.aspl.es">noPoll@lists.aspl.es</A>
<A HREF="http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll">http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll</A>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Francis Brosnan Blázquez  -  ASPL
http://www.asplhosting.com/
http://www.aspl.es/
https://twitter.com/aspl_es
https://twitter.com/asplhosting
https://twitter.com/francisbrosnanb
https://es.linkedin.com/in/francis-brosnan-blázquez-1353a218

91 134 14 22 - 91 134 14 45 - 91 116 07 57
Av. Juan Carlos I 13, 2ºC, Torre Garena
28806 - Alcalá de Henares (España)

AVISO LEGAL
 
En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
diciembre, de Protección de Datos de Carácter Personal, le informamos de
que sus datos de carácter personal, recogidos de fuentes accesibles al
público o datos que usted nos ha facilitado previamente, proceden de
bases de datos propiedad de Advanced Software Production Line, S.L.
(ASPL).
 
ASPL garantiza que los datos serán tratados con la finalidad de mantener
las oportunas relaciones comerciales o promocionales con usted o la
entidad que usted representa. No obstante, usted puede ejercitar sus
derechos de acceso, rectificación, cancelación y oposición dispuestos en
la mencionada Ley Orgánica, notificándolo por escrito a ASPL -
Protección Datos, Av. Juan Carlos I 13, 2ºC, Alcalá de Henares
(Madrid).
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>