Welcome! Log In Create A New Profile

Advanced

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

Vladimir Homutov
January 26, 2022 07:18AM
On Wed, Jan 26, 2022 at 10:00:06AM +0000, Gao,Yan(媒体云) wrote:
> > the case you are describing is not what see in backtrace. And in
> > described case connection is main quic connection which has process
> > c->quic pointer set.
>
> I only find sc->quic = qs; in ngx_quic_create_stream,and this is stream connection, not the main quic connection.
> How the main quic connection c->quic set?

The main quic connection is created in ngx_quic_new_connection(), which
calls ngx_quic_open_sockets() and it sets c->udp for the first time.

When packet arrives, c->udp is updated by ngx_lookup_udp_connection().

The main connection does not have c->quic set; this is used in stream
connections. To access main connection from quic stream, c->quic->parent
may be used.

>
> And the local code at this position:
> changeset: 8813:c37ea624c307
> branch: quic
> tag: tip
> user: Roman Arutyunyan <arut@nginx.com>
> date: Fri Jan 21 11:20:18 2022 +0300
> summary: QUIC: changed debug message.

can you confirm that the problem occured using this code and no other
patches? In any case, it would be useful to enable debug and get
debug log or at least reproduce on a binary without optimization to get
meaninigful backtrace.
_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

gaoyan09 304 January 26, 2022 12:00AM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

gaoyan09 73 January 26, 2022 01:16AM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

gaoyan09 110 January 26, 2022 01:40AM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

Vladimir Homutov 46 January 26, 2022 03:04AM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

gaoyan09 100 January 26, 2022 05:02AM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

Vladimir Homutov 85 January 26, 2022 07:18AM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

gaoyan09 38 January 26, 2022 11:36PM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

Vladimir Homutov 45 January 27, 2022 08:48AM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

gaoyan09 35 January 27, 2022 10:32PM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

Vladimir Homutov 59 January 28, 2022 04:02AM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

gaoyan09 33 January 28, 2022 09:12AM

Re: [quic] ngx_quic_input_handler Segmentation fault because c->udp->dgram is null

Vladimir Homutov 60 January 31, 2022 02:22AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 106
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready