[Libwebsockets] SegFault for Websocket Server on Multiple Network Interface

techi eth techieth at gmail.com
Sat Jul 8 12:12:41 CEST 2017


It is with two context.One context each for one network interface.



On Sat, Jul 8, 2017 at 3:31 PM, Andy Green <andy at warmcat.com> wrote:

>
>
> On 07/08/2017 05:44 PM, techi eth wrote:
>
>> OpenSSL version : 1.0.2h
>>
>
> Supposedly the new OpenSSL init / destroy api was introduced in 1.0.2g, so
> it shouldn't be the problem.
>
> I have tried libwebsocket from master & i am getting same error.I will do
>> the setup to get the trace.
>> Do you confirm libwebsokcet works in above mentioned use case ?
>>
>
> I have no idea what your use case looks like.
>
> Two contexts?  One context?
>
> Is their any running sample then it would be good for me to test ?
>>
>
> Find out the line of source and reason for the segfault.  "A segfault" by
> itself is like saying "an error" or "a problem", it can mean anything.
> Related to lws, related to your code, something else...
>
> -Andy
>
>
> On Sat, Jul 8, 2017 at 2:51 PM, Andy Green <andy at warmcat.com <mailto:
>> andy at warmcat.com>> wrote:
>>
>>
>>
>>     On 07/08/2017 05:16 PM, techi eth wrote:
>>
>>         I was facing segfault over below use case with libwebsocket.
>>
>>
>>     It's usually of zero use to hear there is a segfault without getting
>>     a backtrace.
>>
>>         I have two network interface & i am trying to run SSL server on
>>         port 443 for each network interface.When i run independently
>>         each server by separate programme for each it works great but
>>         when i run both in same programme one is giving segfault.
>>
>>
>>     Is this by any remote chance with two contexts?
>>
>>     What version is your OpenSSL?
>>
>>     -Andy
>>
>>         Last line i am getting is (inserted SSL accept into fds, trying
>>         SSL_accept).
>>
>>         Note : Same programme when i run without SSL it works great.
>>
>>
>>
>>
>>         _______________________________________________
>>         Libwebsockets mailing list
>>         Libwebsockets at ml.libwebsockets.org
>>         <mailto:Libwebsockets at ml.libwebsockets.org>
>>         https://libwebsockets.org/mailman/listinfo/libwebsockets
>>         <https://libwebsockets.org/mailman/listinfo/libwebsockets>
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20170708/f3899fca/attachment-0002.html>


More information about the Libwebsockets mailing list