Welcome! Log In Create A New Profile

Advanced

Re: nginx dso coredump

Maxim Dounin
August 30, 2016 10:52AM
Hello!

On Tue, Aug 30, 2016 at 08:46:42PM +0800, 洪志道 wrote:

> Thanks a lot for your reply.
>
> First, we want to manage the module versions, such as
> ngx_http_abc_module_1.so, ngx_http_abc_module_2.so.
> Maybe you can share a better way.
>
> Second:
> "Note that when writing module *.so files care should be taken to
> not modify contents of files currently loaded" -- I get, but we didn't.
>
>
> The above problem I described is:
>
> load_module modules/ngx_http_abc_module_2.so; # it runs well before
> upgrading
>
>
> Then we upgrade module named ngx_http_abc_module_3.so
> [ make install: generate new file ngx_http_abc_module.so; cp
> ngx_http_abc_module.so ngx_http_abc_module_3.so]
>
> Then change config
>
> load_module modules/ngx_http_abc_module_3.so;
>
> Finally we upgrade nginx: -USR2 && sleep && -QUIT old

As long as you use upgrade via USR2 signal this process should be
fine. Note though, that if you'll try to reload a configuration
instead of upgrade, you'll likely get a segmentation fault as
well, since there will be multiple conflicting symbols for your
module loaded at the same time.

Overral I would recommend you to avoid using such distinct *.so
names as it looks very fragile.

If you want to store module version somewhere, consider just
adding a symbol with appropriate information to the module itself.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

nginx dso coredump

洪志道 419 August 30, 2016 06:34AM

Re: nginx dso coredump

洪志道 189 August 30, 2016 06:56AM

Re: nginx dso coredump

Maxim Dounin 183 August 30, 2016 07:24AM

Re: nginx dso coredump

洪志道 188 August 30, 2016 08:48AM

Re: nginx dso coredump

Maxim Dounin 169 August 30, 2016 10:52AM

Re: nginx dso coredump

洪志道 189 August 30, 2016 11:26AM

Re: nginx dso coredump

Maxim Dounin 175 August 30, 2016 12:16PM

Re: nginx dso coredump

洪志道 173 August 30, 2016 01:20PM

Re: nginx dso coredump

Maxim Dounin 170 August 31, 2016 12:52PM

Re: nginx dso coredump

洪志道 183 August 31, 2016 08:22PM



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

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready