crash with STUN server in NAT64 environment

JG
John Gathm
Tue, Jun 28, 2016 7:06 AM

Hi

I'm facing a crash with PJSIP in NAT64 environment on iOS , trying to
configure a STUN server

I'm using revision 5356

Hi have tried with two servers and had the same crash, they however have
different behaviors regarding DNS64

$ host stun.l.google.com
stun.l.google.com has address 66.102.1.127

$ host numb.viagenie.ca
numb.viagenie.ca is an alias for blues.viagenie.ca.
blues.viagenie.ca has address 66.228.45.110
blues.viagenie.ca has IPv6 address 2600:3c03::f03c:91ff:fe93:39a4

08:57:05.119 os_core_unix.c !pjlib 2.5.1-svn for POSIX initialized
08:57:05.121 sip_endpoint.c  .Creating endpoint instance...
08:57:05.122          pjlib  .select() I/O Queue created (0x179ca934)
08:57:05.122 sip_endpoint.c  .Module "mod-msg-print" registered
08:57:05.122 sip_transport.  .Transport manager created.
08:57:05.122  pjsua_core.c  .PJSUA state changed: NULL --> CREATED
09:00:01.195 sip_endpoint.c  .Module "mod-pjsua-log" registered
09:00:01.196 sip_endpoint.c  .Module "mod-tsx-layer" registered
09:00:01.196 sip_endpoint.c  .Module "mod-stateful-util" registered
09:00:01.196 sip_endpoint.c  .Module "mod-ua" registered
09:00:01.197 sip_endpoint.c  .Module "mod-100rel" registered
09:00:01.197 sip_endpoint.c  .Module "mod-pjsua" registered
09:00:01.197 sip_endpoint.c  .Module "mod-invite" registered
09:00:01.197  pjsua_core.c  .Trying STUN server stun.l.google.com:19302 (1
of 1)..

Assertion failed: (a->addr.sa_family == PJ_AF_INET || a->addr.sa_family ==
PJ_AF_INET6), function pj_sockaddr_get_len, file ../src/pj/sock_common.c,
line 388.

regards

J.G.

Hi I'm facing a crash with PJSIP in NAT64 environment on iOS , trying to configure a STUN server I'm using revision 5356 Hi have tried with two servers and had the same crash, they however have different behaviors regarding DNS64 $ host stun.l.google.com stun.l.google.com has address 66.102.1.127 $ host numb.viagenie.ca numb.viagenie.ca is an alias for blues.viagenie.ca. blues.viagenie.ca has address 66.228.45.110 blues.viagenie.ca has IPv6 address 2600:3c03::f03c:91ff:fe93:39a4 08:57:05.119 os_core_unix.c !pjlib 2.5.1-svn for POSIX initialized 08:57:05.121 sip_endpoint.c .Creating endpoint instance... 08:57:05.122 pjlib .select() I/O Queue created (0x179ca934) 08:57:05.122 sip_endpoint.c .Module "mod-msg-print" registered 08:57:05.122 sip_transport. .Transport manager created. 08:57:05.122 pjsua_core.c .PJSUA state changed: NULL --> CREATED 09:00:01.195 sip_endpoint.c .Module "mod-pjsua-log" registered 09:00:01.196 sip_endpoint.c .Module "mod-tsx-layer" registered 09:00:01.196 sip_endpoint.c .Module "mod-stateful-util" registered 09:00:01.196 sip_endpoint.c .Module "mod-ua" registered 09:00:01.197 sip_endpoint.c .Module "mod-100rel" registered 09:00:01.197 sip_endpoint.c .Module "mod-pjsua" registered 09:00:01.197 sip_endpoint.c .Module "mod-invite" registered 09:00:01.197 pjsua_core.c .Trying STUN server stun.l.google.com:19302 (1 of 1).. Assertion failed: (a->addr.sa_family == PJ_AF_INET || a->addr.sa_family == PJ_AF_INET6), function pj_sockaddr_get_len, file ../src/pj/sock_common.c, line 388. regards J.G.
RS
Riza Sulistyo
Wed, Jun 29, 2016 5:57 AM

Hi,

This should've been fixed in r5363

Regards
Riza

On Tue, Jun 28, 2016 at 2:06 PM, John Gathm john.gathm@gmail.com wrote:

Hi

I'm facing a crash with PJSIP in NAT64 environment on iOS , trying to
configure a STUN server

I'm using revision 5356

Hi have tried with two servers and had the same crash, they however have
different behaviors regarding DNS64

$ host stun.l.google.com
stun.l.google.com has address 66.102.1.127

$ host numb.viagenie.ca
numb.viagenie.ca is an alias for blues.viagenie.ca.
blues.viagenie.ca has address 66.228.45.110
blues.viagenie.ca has IPv6 address 2600:3c03::f03c:91ff:fe93:39a4

08:57:05.119 os_core_unix.c !pjlib 2.5.1-svn for POSIX initialized
08:57:05.121 sip_endpoint.c  .Creating endpoint instance...
08:57:05.122          pjlib  .select() I/O Queue created (0x179ca934)
08:57:05.122 sip_endpoint.c  .Module "mod-msg-print" registered
08:57:05.122 sip_transport.  .Transport manager created.
08:57:05.122  pjsua_core.c  .PJSUA state changed: NULL --> CREATED
09:00:01.195 sip_endpoint.c  .Module "mod-pjsua-log" registered
09:00:01.196 sip_endpoint.c  .Module "mod-tsx-layer" registered
09:00:01.196 sip_endpoint.c  .Module "mod-stateful-util" registered
09:00:01.196 sip_endpoint.c  .Module "mod-ua" registered
09:00:01.197 sip_endpoint.c  .Module "mod-100rel" registered
09:00:01.197 sip_endpoint.c  .Module "mod-pjsua" registered
09:00:01.197 sip_endpoint.c  .Module "mod-invite" registered
09:00:01.197  pjsua_core.c  .Trying STUN server stun.l.google.com:19302
(1 of 1)..

Assertion failed: (a->addr.sa_family == PJ_AF_INET || a->addr.sa_family ==
PJ_AF_INET6), function pj_sockaddr_get_len, file ../src/pj/sock_common.c,
line 388.

regards

J.G.


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, This should've been fixed in r5363 Regards Riza On Tue, Jun 28, 2016 at 2:06 PM, John Gathm <john.gathm@gmail.com> wrote: > Hi > > I'm facing a crash with PJSIP in NAT64 environment on iOS , trying to > configure a STUN server > > I'm using revision 5356 > > Hi have tried with two servers and had the same crash, they however have > different behaviors regarding DNS64 > > $ host stun.l.google.com > stun.l.google.com has address 66.102.1.127 > > $ host numb.viagenie.ca > numb.viagenie.ca is an alias for blues.viagenie.ca. > blues.viagenie.ca has address 66.228.45.110 > blues.viagenie.ca has IPv6 address 2600:3c03::f03c:91ff:fe93:39a4 > > > 08:57:05.119 os_core_unix.c !pjlib 2.5.1-svn for POSIX initialized > 08:57:05.121 sip_endpoint.c .Creating endpoint instance... > 08:57:05.122 pjlib .select() I/O Queue created (0x179ca934) > 08:57:05.122 sip_endpoint.c .Module "mod-msg-print" registered > 08:57:05.122 sip_transport. .Transport manager created. > 08:57:05.122 pjsua_core.c .PJSUA state changed: NULL --> CREATED > 09:00:01.195 sip_endpoint.c .Module "mod-pjsua-log" registered > 09:00:01.196 sip_endpoint.c .Module "mod-tsx-layer" registered > 09:00:01.196 sip_endpoint.c .Module "mod-stateful-util" registered > 09:00:01.196 sip_endpoint.c .Module "mod-ua" registered > 09:00:01.197 sip_endpoint.c .Module "mod-100rel" registered > 09:00:01.197 sip_endpoint.c .Module "mod-pjsua" registered > 09:00:01.197 sip_endpoint.c .Module "mod-invite" registered > 09:00:01.197 pjsua_core.c .Trying STUN server stun.l.google.com:19302 > (1 of 1).. > > Assertion failed: (a->addr.sa_family == PJ_AF_INET || a->addr.sa_family == > PJ_AF_INET6), function pj_sockaddr_get_len, file ../src/pj/sock_common.c, > line 388. > > regards > > J.G. > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
JG
John Gathm
Wed, Jun 29, 2016 8:36 PM

Hi

crash/assert is gone, but STUN socket is not working over NAT64.
device is able to DNS64-resolve the address blues.viagenie.ca (and access
it over http)

22:13:01.359  pjsua_core.c  .Trying STUN server blues.viagenie.ca (1 of
1)..
22:13:01.456  pjsua_core.c  .Error starting STUN socket for
blues.viagenie.ca: Unsupported address family (PJ_EAFNOTSUP)
22:13:01.456    stunresolve  .STUN sock 0x15bd0e14 request, ref_cnt=3
22:13:01.457    stunresolve  .STUN session 0x15c28014 destroy request,
ref_cnt=3
22:13:01.457                .STUN sock 0x15bd0e14 destroyed
22:13:01.457 stun_session.c  .STUN session 0x15c28014 destroyed
22:13:01.457  pjsua_core.c  .STUN resolution failed: Unsupported address
family (PJ_EAFNOTSUP)
22:13:01.457  pjsua_core.c  .Ignoring STUN resolution failure (by setting)

regards

J.G.

On Wed, Jun 29, 2016 at 7:57 AM, Riza Sulistyo riza@pjsip.org wrote:

Hi,

This should've been fixed in r5363

Regards
Riza

On Tue, Jun 28, 2016 at 2:06 PM, John Gathm john.gathm@gmail.com wrote:

Hi

I'm facing a crash with PJSIP in NAT64 environment on iOS , trying to
configure a STUN server

I'm using revision 5356

Hi have tried with two servers and had the same crash, they however have
different behaviors regarding DNS64

$ host stun.l.google.com
stun.l.google.com has address 66.102.1.127

$ host numb.viagenie.ca
numb.viagenie.ca is an alias for blues.viagenie.ca.
blues.viagenie.ca has address 66.228.45.110
blues.viagenie.ca has IPv6 address 2600:3c03::f03c:91ff:fe93:39a4

08:57:05.119 os_core_unix.c !pjlib 2.5.1-svn for POSIX initialized
08:57:05.121 sip_endpoint.c  .Creating endpoint instance...
08:57:05.122          pjlib  .select() I/O Queue created (0x179ca934)
08:57:05.122 sip_endpoint.c  .Module "mod-msg-print" registered
08:57:05.122 sip_transport.  .Transport manager created.
08:57:05.122  pjsua_core.c  .PJSUA state changed: NULL --> CREATED
09:00:01.195 sip_endpoint.c  .Module "mod-pjsua-log" registered
09:00:01.196 sip_endpoint.c  .Module "mod-tsx-layer" registered
09:00:01.196 sip_endpoint.c  .Module "mod-stateful-util" registered
09:00:01.196 sip_endpoint.c  .Module "mod-ua" registered
09:00:01.197 sip_endpoint.c  .Module "mod-100rel" registered
09:00:01.197 sip_endpoint.c  .Module "mod-pjsua" registered
09:00:01.197 sip_endpoint.c  .Module "mod-invite" registered
09:00:01.197  pjsua_core.c  .Trying STUN server stun.l.google.com:19302
(1 of 1)..

Assertion failed: (a->addr.sa_family == PJ_AF_INET || a->addr.sa_family
== PJ_AF_INET6), function pj_sockaddr_get_len, file
../src/pj/sock_common.c, line 388.

regards

J.G.


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi crash/assert is gone, but STUN socket is not working over NAT64. device is able to DNS64-resolve the address blues.viagenie.ca (and access it over http) 22:13:01.359 pjsua_core.c .Trying STUN server blues.viagenie.ca (1 of 1).. 22:13:01.456 pjsua_core.c .Error starting STUN socket for blues.viagenie.ca: Unsupported address family (PJ_EAFNOTSUP) 22:13:01.456 stunresolve .STUN sock 0x15bd0e14 request, ref_cnt=3 22:13:01.457 stunresolve .STUN session 0x15c28014 destroy request, ref_cnt=3 22:13:01.457 .STUN sock 0x15bd0e14 destroyed 22:13:01.457 stun_session.c .STUN session 0x15c28014 destroyed 22:13:01.457 pjsua_core.c .STUN resolution failed: Unsupported address family (PJ_EAFNOTSUP) 22:13:01.457 pjsua_core.c .Ignoring STUN resolution failure (by setting) regards J.G. On Wed, Jun 29, 2016 at 7:57 AM, Riza Sulistyo <riza@pjsip.org> wrote: > Hi, > > This should've been fixed in r5363 > > Regards > Riza > > On Tue, Jun 28, 2016 at 2:06 PM, John Gathm <john.gathm@gmail.com> wrote: > >> Hi >> >> I'm facing a crash with PJSIP in NAT64 environment on iOS , trying to >> configure a STUN server >> >> I'm using revision 5356 >> >> Hi have tried with two servers and had the same crash, they however have >> different behaviors regarding DNS64 >> >> $ host stun.l.google.com >> stun.l.google.com has address 66.102.1.127 >> >> $ host numb.viagenie.ca >> numb.viagenie.ca is an alias for blues.viagenie.ca. >> blues.viagenie.ca has address 66.228.45.110 >> blues.viagenie.ca has IPv6 address 2600:3c03::f03c:91ff:fe93:39a4 >> >> >> 08:57:05.119 os_core_unix.c !pjlib 2.5.1-svn for POSIX initialized >> 08:57:05.121 sip_endpoint.c .Creating endpoint instance... >> 08:57:05.122 pjlib .select() I/O Queue created (0x179ca934) >> 08:57:05.122 sip_endpoint.c .Module "mod-msg-print" registered >> 08:57:05.122 sip_transport. .Transport manager created. >> 08:57:05.122 pjsua_core.c .PJSUA state changed: NULL --> CREATED >> 09:00:01.195 sip_endpoint.c .Module "mod-pjsua-log" registered >> 09:00:01.196 sip_endpoint.c .Module "mod-tsx-layer" registered >> 09:00:01.196 sip_endpoint.c .Module "mod-stateful-util" registered >> 09:00:01.196 sip_endpoint.c .Module "mod-ua" registered >> 09:00:01.197 sip_endpoint.c .Module "mod-100rel" registered >> 09:00:01.197 sip_endpoint.c .Module "mod-pjsua" registered >> 09:00:01.197 sip_endpoint.c .Module "mod-invite" registered >> 09:00:01.197 pjsua_core.c .Trying STUN server stun.l.google.com:19302 >> (1 of 1).. >> >> Assertion failed: (a->addr.sa_family == PJ_AF_INET || a->addr.sa_family >> == PJ_AF_INET6), function pj_sockaddr_get_len, file >> ../src/pj/sock_common.c, line 388. >> >> regards >> >> J.G. >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >