Re: nginx/1.13.9 + njs/head build : ngx_http_js_module.so: undefined symbol

2018-02-20 Thread Dmitry Volyntsev


> On 21 Feb 2018, at 00:32, PGNet Dev  wrote:
> 
> On 2/20/18 1:26 PM, Dmitry Volyntsev wrote:
>> Thank you for reporting the problem.
>> Please, make sure that you do 'make clean’ in njs directory after hg update.
> 
> 
> Of course.  I'm always
> 
>  hg update --clean tip
> 
> r450 is reproducibly causing the error.
> 
> r446 is fine atm.

I cannot reproduce it with a clean build (ubuntu 14.04, macOS 10.13).

Can you reproduce the issue from scratch (downloading nginx tip & njs tip in a 
separate directory)?

Somehow your ngx_http_js_module.so is linked against outdated libnjs.a.

On r450 you should see the following:

objdump -t ../njs/build/libnjs.a  | grep -E 'g.*njs_vm_'
021e g F .text  026d njs_vm_create
0040 g O .data.rel.ro.local 0038 .hidden 
njs_vm_mem_cache_pool_proto
048b g F .text  0015 njs_vm_destroy
04a0 g F .text  015c njs_vm_compile
05fc g F .text  01c8 njs_vm_clone
07c4 g F .text  0072 njs_vm_call
0836 g F .text  0051 njs_vm_run
0887 g F .text  0004 njs_vm_retval
088b g F .text  000f njs_vm_retval_set
089a g F .text  0035 njs_vm_retval_to_ext_string
2c0c g F .text  001c .hidden njs_vm_backtrace
2c28 g F .text  02fb njs_vm_value_to_ext_string
0384 g F .text  001d njs_vm_external_prototype
03a1 g F .text  0077 njs_vm_external_create
0418 g F .text  00a6 njs_vm_external_bind
0803 g F .text  0083 njs_vm_function
0b8d g F .text  04c8 njs_vm_completions

nm ./objs/ngx_http_js_module.so | grep -E 'T.*njs_vm_'
b1f9 T njs_vm_call
b031 T njs_vm_clone
aed5 T njs_vm_compile
00019c4d T njs_vm_completions
ac53 T njs_vm_create
aec0 T njs_vm_destroy
00018698 T njs_vm_external_bind
00018621 T njs_vm_external_create
00018604 T njs_vm_external_prototype
0001903d T njs_vm_function
b2bc T njs_vm_retval
b2c0 T njs_vm_retval_set
b2cf T njs_vm_retval_to_ext_string
b26b T njs_vm_run
df38 T njs_vm_value_to_ext_string

___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: nginx/1.13.9 + njs/head build : ngx_http_js_module.so: undefined symbol

2018-02-20 Thread PGNet Dev

On 2/20/18 1:26 PM, Dmitry Volyntsev wrote:

Thank you for reporting the problem.

Please, make sure that you do 'make clean’ in njs directory after hg update.




Of course.  I'm always

  hg update --clean tip

r450 is reproducibly causing the error.

r446 is fine atm.
___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: nginx/1.13.9 + njs/head build : ngx_http_js_module.so: undefined symbol

2018-02-20 Thread Dmitry Volyntsev
Thank you for reporting the problem. 

Please, make sure that you do 'make clean’ in njs directory after hg update.


> On 20 Feb 2018, at 22:41, PGNet Dev  wrote:
> 
> Upgrading nginx 1.13.8 -> 1.13.9 with usual
> 
>   ./configure \
>   ... \
>   --add-dynamic-module=/usr/local/src/njs/nginx
> 
> and
> 
>   cd /usr/local/src/njs/nginx
>   hg log | head
>   changeset:   450:757271547b56
>   tag: tip
>   user:Dmitry Volyntsev 
>   date:Tue Feb 20 19:12:55 2018 +0300
>   summary: Fixed the names of global functions in backtraces.
> 
>   ls -al /usr/local/src/njs/nginx
>   total 76K
>   drwxr-xr-x 2 root root 4.0K Feb 20 11:31 ./
>   drwxr-xr-x 6 root root 4.0K Feb 20 11:31 ../
>   -rw-r--r-- 1 root root  749 Feb 20 11:31 config
>   -rw-r--r-- 1 root root  260 Feb 20 11:31 config.make
>   -rw-r--r-- 1 root root  32K Feb 20 11:31 ngx_http_js_module.c
>   -rw-r--r-- 1 root root  26K Feb 20 11:31 ngx_stream_js_module.c
> 
> No errors on build, but on conf check
> 
>   /usr/local/sbin/nginx -t -c /usr/local/etc/nginx/nginx.conf
>   nginx: [emerg] dlopen() 
> "/usr/local/nginx-modules/ngx_http_js_module.so" failed 
> (/usr/local/nginx-modules/ngx_http_js_module.so: undefined symbol: 
> njs_vm_value_to_ext_string) in /usr/local/etc/nginx/nginx.conf:34
>   nginx: configuration file /usr/local/etc/nginx/nginx.conf test 
> failed
> 
> where, line 34's
> 
>   load_module /usr/local/nginx-modules/ngx_http_js_module.so;
> 
> and
> 
>   ls -al /usr/local/nginx-modules/ngx_http_js_module.so
>   -rwxr-xr-x 1 root root 1.3M Feb 20 11:26 
> /usr/local/nginx-modules/ngx_http_js_module.so*
>   ldd /usr/local/nginx-modules/ngx_http_js_module.so
>linux-vdso.so.1 (0x7ffef8db5000)
>libssl.so.1.1 => /usr/local/openssl11/lib64/libssl.so.1.1 
> (0x7f8822d18000)
>libcrypto.so.1.1 => /usr/local/openssl11/lib64/libcrypto.so.1.1 
> (0x7f882286e000)
>libdl.so.2 => /lib64/libdl.so.2 (0x7f882266a000)
>libz.so.1 => /lib64/libz.so.1 (0x7f8822453000)
>libpcre.so.1 => /usr/local/lib64/libpcre.so.1 (0x7f88221dc000)
>libpcrecpp.so.0 => /usr/local/lib64/libpcrecpp.so.0 
> (0x7f8821fd2000)
>libm.so.6 => /lib64/libm.so.6 (0x7f8821cd5000)
>libc.so.6 => /lib64/libc.so.6 (0x7f8821934000)
>libpthread.so.0 => /lib64/libpthread.so.0 (0x7f8821717000)
>/lib64/ld-linux-x86-64.so.2 (0x7f88231d7000)
>libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x7f882139)
>libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x7f8821179000)
> 
>   nm /usr/local/nginx-modules/ngx_http_js_module.so | grep "U njs"
>   U njs_vm_external_create
>   U njs_vm_external_prototype
>   U njs_vm_retval_to_ext_string
>   U njs_vm_value_to_ext_string

___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: nginx/1.13.9 + njs/head build : ngx_http_js_module.so: undefined symbol

2018-02-20 Thread PGNet Dev

On 2/20/18 11:41 AM, PGNet Dev wrote:

cd /usr/local/src/njs/nginx
hg log | head
changeset:   450:757271547b56
tag: tip
user:Dmitry Volyntsev 
date:Tue Feb 20 19:12:55 2018 +0300
summary: Fixed the names of global functions in backtraces.


fyi, simple revert to

hg revert -r 446 --all

fixes the config check problem, and subsequent nginx build execs as usual




___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel


nginx/1.13.9 + njs/head build : ngx_http_js_module.so: undefined symbol

2018-02-20 Thread PGNet Dev
Upgrading nginx 1.13.8 -> 1.13.9 with usual

./configure \
... \
--add-dynamic-module=/usr/local/src/njs/nginx

and

cd /usr/local/src/njs/nginx
hg log | head
changeset:   450:757271547b56
tag: tip
user:Dmitry Volyntsev 
date:Tue Feb 20 19:12:55 2018 +0300
summary: Fixed the names of global functions in backtraces.

ls -al /usr/local/src/njs/nginx
total 76K
drwxr-xr-x 2 root root 4.0K Feb 20 11:31 ./
drwxr-xr-x 6 root root 4.0K Feb 20 11:31 ../
-rw-r--r-- 1 root root  749 Feb 20 11:31 config
-rw-r--r-- 1 root root  260 Feb 20 11:31 config.make
-rw-r--r-- 1 root root  32K Feb 20 11:31 ngx_http_js_module.c
-rw-r--r-- 1 root root  26K Feb 20 11:31 ngx_stream_js_module.c

No errors on build, but on conf check

/usr/local/sbin/nginx -t -c /usr/local/etc/nginx/nginx.conf
nginx: [emerg] dlopen() 
"/usr/local/nginx-modules/ngx_http_js_module.so" failed 
(/usr/local/nginx-modules/ngx_http_js_module.so: undefined symbol: 
njs_vm_value_to_ext_string) in /usr/local/etc/nginx/nginx.conf:34
nginx: configuration file /usr/local/etc/nginx/nginx.conf test 
failed

where, line 34's

load_module /usr/local/nginx-modules/ngx_http_js_module.so;

and

ls -al /usr/local/nginx-modules/ngx_http_js_module.so
-rwxr-xr-x 1 root root 1.3M Feb 20 11:26 
/usr/local/nginx-modules/ngx_http_js_module.so*
ldd /usr/local/nginx-modules/ngx_http_js_module.so
linux-vdso.so.1 (0x7ffef8db5000)
libssl.so.1.1 => /usr/local/openssl11/lib64/libssl.so.1.1 
(0x7f8822d18000)
libcrypto.so.1.1 => /usr/local/openssl11/lib64/libcrypto.so.1.1 
(0x7f882286e000)
libdl.so.2 => /lib64/libdl.so.2 (0x7f882266a000)
libz.so.1 => /lib64/libz.so.1 (0x7f8822453000)
libpcre.so.1 => /usr/local/lib64/libpcre.so.1 (0x7f88221dc000)
libpcrecpp.so.0 => /usr/local/lib64/libpcrecpp.so.0 (0x7f8821fd2000)
libm.so.6 => /lib64/libm.so.6 (0x7f8821cd5000)
libc.so.6 => /lib64/libc.so.6 (0x7f8821934000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x7f8821717000)
/lib64/ld-linux-x86-64.so.2 (0x7f88231d7000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x7f882139)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x7f8821179000)

nm /usr/local/nginx-modules/ngx_http_js_module.so | grep "U njs"
U njs_vm_external_create
U njs_vm_external_prototype
U njs_vm_retval_to_ext_string
U njs_vm_value_to_ext_string
___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel


Re: [nginx-announce] nginx-1.13.9

2018-02-20 Thread Kevin Worthington
 Hello Nginx users,

Now available: Nginx 1.13.9 for Windows
https://kevinworthington.com/nginxwin1139
(32-bit and 64-bit versions)

These versions are to support legacy users who are already using Cygwin
based builds of Nginx. Officially supported native Windows binaries are at
nginx.org.

Announcements are also available here:
Twitter http://twitter.com/kworthington
Google+ https://plus.google.com/+KevinWorthington/

Thank you,
Kevin
--
Kevin Worthington
kworthington *@* (gmail]  [dot} {com)
https://kevinworthington.com/
https://twitter.com/kworthington
https://plus.google.com/+KevinWorthington/
<https://twitter.com/kworthington/>

On Tue, Feb 20, 2018 at 9:25 AM, Maxim Dounin <mdou...@mdounin.ru> wrote:

> Changes with nginx 1.13.920 Feb
> 2018
>
> *) Feature: HTTP/2 server push support; the "http2_push" and
>"http2_push_preload" directives.
>
> *) Bugfix: "header already sent" alerts might appear in logs when using
>cache; the bug had appeared in 1.9.13.
>
> *) Bugfix: a segmentation fault might occur in a worker process if the
>"ssl_verify_client" directive was used and no SSL certificate was
>specified in a virtual server.
>
> *) Bugfix: in the ngx_http_v2_module.
>
> *) Bugfix: in the ngx_http_dav_module.
>
>
> --
> Maxim Dounin
> http://nginx.org/
> ___
> nginx-announce mailing list
> nginx-annou...@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-announce
>
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-ru-announce] nginx-1.13.9

2018-02-20 Thread Maxim Dounin
Изменения в nginx 1.13.9  20.02.2018

*) Добавление: поддержка HTTP/2 server push; директивы http2_push и
   http2_push_preload.

*) Исправление: при использовании кэша в логах могли появляться
   сообщения "header already sent"; ошибка появилась в 1.9.13.

*) Исправление: при использовании директивы ssl_verify_client в рабочем
   процессе мог произойти segmentation fault, если в виртуальном сервере
   не был указан SSL-сертификат.

*) Исправление: в модуле ngx_http_v2_module.

*) Исправление: в модуле ngx_http_dav_module.


-- 
Maxim Dounin
http://nginx.org/
___
nginx-ru-announce mailing list
nginx-ru-announce@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru-announce

[nginx-announce] nginx-1.13.9

2018-02-20 Thread Maxim Dounin
Changes with nginx 1.13.920 Feb 2018

*) Feature: HTTP/2 server push support; the "http2_push" and
   "http2_push_preload" directives.

*) Bugfix: "header already sent" alerts might appear in logs when using
   cache; the bug had appeared in 1.9.13.

*) Bugfix: a segmentation fault might occur in a worker process if the
   "ssl_verify_client" directive was used and no SSL certificate was
   specified in a virtual server.

*) Bugfix: in the ngx_http_v2_module.

*) Bugfix: in the ngx_http_dav_module.


-- 
Maxim Dounin
http://nginx.org/
___
nginx-announce mailing list
nginx-announce@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-announce


nginx-1.13.9

2018-02-20 Thread Maxim Dounin
Изменения в nginx 1.13.9  20.02.2018

*) Добавление: поддержка HTTP/2 server push; директивы http2_push и
   http2_push_preload.

*) Исправление: при использовании кэша в логах могли появляться
   сообщения "header already sent"; ошибка появилась в 1.9.13.

*) Исправление: при использовании директивы ssl_verify_client в рабочем
   процессе мог произойти segmentation fault, если в виртуальном сервере
   не был указан SSL-сертификат.

*) Исправление: в модуле ngx_http_v2_module.

*) Исправление: в модуле ngx_http_dav_module.


-- 
Maxim Dounin
http://nginx.org/
___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

nginx-1.13.9

2018-02-20 Thread Maxim Dounin
Changes with nginx 1.13.920 Feb 2018

*) Feature: HTTP/2 server push support; the "http2_push" and
   "http2_push_preload" directives.

*) Bugfix: "header already sent" alerts might appear in logs when using
   cache; the bug had appeared in 1.9.13.

*) Bugfix: a segmentation fault might occur in a worker process if the
   "ssl_verify_client" directive was used and no SSL certificate was
   specified in a virtual server.

*) Bugfix: in the ngx_http_v2_module.

*) Bugfix: in the ngx_http_dav_module.


-- 
Maxim Dounin
http://nginx.org/
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


[nginx] nginx-1.13.9-RELEASE

2018-02-20 Thread Maxim Dounin
details:   http://hg.nginx.org/nginx/rev/fb1212c7eca4
branches:  
changeset: 7210:fb1212c7eca4
user:  Maxim Dounin <mdou...@mdounin.ru>
date:  Tue Feb 20 17:08:48 2018 +0300
description:
nginx-1.13.9-RELEASE

diffstat:

 docs/xml/nginx/changes.xml |  60 ++
 1 files changed, 60 insertions(+), 0 deletions(-)

diffs (70 lines):

diff --git a/docs/xml/nginx/changes.xml b/docs/xml/nginx/changes.xml
--- a/docs/xml/nginx/changes.xml
+++ b/docs/xml/nginx/changes.xml
@@ -5,6 +5,66 @@
 
 
 
+
+
+
+
+поддержка HTTP/2 server push;
+директивы http2_push и http2_push_preload.
+
+
+HTTP/2 server push support;
+the "http2_push" and "http2_push_preload" directives.
+
+
+
+
+
+при использовании кэша
+в логах могли появляться сообщения "header already sent";
+ошибка появилась в 1.9.13.
+
+
+"header already sent" alerts might appear in logs
+when using cache;
+the bug had appeared in 1.9.13.
+
+
+
+
+
+при использовании директивы ssl_verify_client
+в рабочем процессе мог произойти segmentation fault,
+если в виртуальном сервере не был указан SSL-сертификат.
+
+
+a segmentation fault might occur in a worker process
+if the "ssl_verify_client" directive was used
+and no SSL certificate was specified in a virtual server.
+
+
+
+
+
+в модуле ngx_http_v2_module.
+
+
+in the ngx_http_v2_module.
+
+
+
+
+
+в модуле ngx_http_dav_module.
+
+
+in the ngx_http_dav_module.
+
+
+
+
+
+
 
 
 
___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-15 Thread George
thanks Ruslan just tested your committed fixes for this in master branch and
working nicely
https://community.centminmod.com/threads/hurray-http-2-server-push-for-nginx.11910/page-2#post-59602
:)

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,278481,278608#msg-278608

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-14 Thread Ruslan Ermilov
On Wed, Feb 14, 2018 at 06:19:01PM -0500, George wrote:
> thanks Ruslan for the update appreciate all your work and looking forward to
> playing with HTTP/2 Push finally ! :)

Start off right today:
https://www.youtube.com/watch?v=wR1gF5Lhcq0
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-14 Thread George
thanks Ruslan for the update appreciate all your work and looking forward to
playing with HTTP/2 Push finally ! :)

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,278481,278582#msg-278582

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-14 Thread Ruslan Ermilov
On Sat, Feb 10, 2018 at 01:21:16PM -0500, George wrote:
> Hi compiled Nginx 1.13.9 from master branch to try out HTTP/2 Server Push
> but noticed the pushed assets loose their gzip compression and are served as
> non-compressed assets ? Is that as intended ? I posted my findings at
> https://community.centminmod.com/threads/hurray-http-2-server-push-for-nginx.11910/#post-59411
> 
> http2_push_preload on;
> add_header Link "; rel=preload; as=style";
> add_header Link "; rel=preload; as=style";
> 
> push works as I see PUSH_PROMISE frames and chrome reports push
> 
> nghttp -navs https://baremetal.doman.com/
> 
> [  0.018] recv (stream_id=13) :method: GET
> [  0.018] recv (stream_id=13) :path: /css/bootstrap.min.css
> [  0.018] recv (stream_id=13) :authority: baremetal.domain.com
> [  0.018] recv (stream_id=13) :scheme: https
> [  0.018] recv PUSH_PROMISE frame 

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-11 Thread George
Reported bug at https://trac.nginx.org/nginx/ticket/1478

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,278481,278488#msg-278488

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-10 Thread George
Hi compiled Nginx 1.13.9 from master branch to try out HTTP/2 Server Push
but noticed the pushed assets loose their gzip compression and are served as
non-compressed assets ? Is that as intended ? I posted my findings at
https://community.centminmod.com/threads/hurray-http-2-server-push-for-nginx.11910/#post-59411

http2_push_preload on;
add_header Link "; rel=preload; as=style";
add_header Link "; rel=preload; as=style";

push works as I see PUSH_PROMISE frames and chrome reports push

nghttp -navs https://baremetal.doman.com/

[  0.018] recv (stream_id=13) :method: GET
[  0.018] recv (stream_id=13) :path: /css/bootstrap.min.css
[  0.018] recv (stream_id=13) :authority: baremetal.domain.com
[  0.018] recv (stream_id=13) :scheme: https
[  0.018] recv PUSH_PROMISE frame