Opened 4 years ago

Closed 4 years ago

#1872 closed defect (fixed)

The official nginx-module-njs-dbg deb package lacks debuginfo for the 'njs' executable

Reported by: agentzh@… Owned by: Andrei Belov
Priority: minor Milestone:
Component: nginx-package Version: 1.17.x
Keywords: Cc:
uname -a: Linux ubuntu16-pkg 4.4.0-161-generic #189-Ubuntu SMP Tue Aug 27 08:10:16 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.17.4
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)
built with OpenSSL 1.0.2g 1 Mar 2016
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'

Description

I've been playing with the official open source ubuntu repositories of nginx here:

https://nginx.org/packages/

I've noted that the ubuntu packages for nginx-module-njs-dbg, like nginx-module-njs-dbg_1.17.3.0.3.4-1~xenial_amd64.deb lacks debuginfo data for the executable file /usr/bin/njs from the corresponding non-debuginfo package (nginx-module-njs_1.17.3.0.3.4-1~xenial_amd64.deb in this example).

To see it:

$ dpkg -c nginx-module-njs-dbg_1.17.3.0.3.4-1~xenial_amd64.deb
drwxr-xr-x root/root         0 2019-08-13 07:26 ./
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/share/
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/share/doc/
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/share/doc/nginx-module-njs-dbg/
-rw-r--r-- root/root      1162 2019-08-13 07:25 ./usr/share/doc/nginx-module-njs-dbg/changelog.Debian.gz
-rw-r--r-- root/root      1649 2019-08-13 07:25 ./usr/share/doc/nginx-module-njs-dbg/copyright
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/lib/
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/lib/debug/
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/lib/debug/.build-id/
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/lib/debug/.build-id/c5/
-rw-r--r-- root/root    624536 2019-08-13 07:26 ./usr/lib/debug/.build-id/c5/330232b2dec3cea98e52e5b686bb416da3811f.debug
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/lib/debug/.build-id/54/
-rw-r--r-- root/root    643472 2019-08-13 07:26 ./usr/lib/debug/.build-id/54/26d6623b05add97bab956b48a224c42ef3e96d.debug
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/lib/debug/.build-id/88/
-rw-r--r-- root/root    643104 2019-08-13 07:26 ./usr/lib/debug/.build-id/88/78b934c7ca02e252971022f3eefcbca07c3ece.debug
drwxr-xr-x root/root         0 2019-08-13 07:26 ./usr/lib/debug/.build-id/50/
-rw-r--r-- root/root    624808 2019-08-13 07:26 ./usr/lib/debug/.build-id/50/04557782bf79a3f216362f0e19d8cd5782779f.debug

while the njs executable file in the package file nginx-module-njs_1.17.3.0.3.4-1~xenial_amd64.deb has the build id af97066358a1de684511c20c3d7b44fe0ca79e73, whose .debug file does not appear in the dbg package at all.

The rpm packages for CentOS, for example, does not seem to have this problem. I guess maybe it's a bug in your .deb packaging scripts?

Hopefully it can get fixed soon. Thanks for your attention.

Change History (3)

comment:1 by Andrei Belov, 4 years ago

Owner: set to Andrei Belov
Status: newassigned

comment:2 by Andrei Belov, 4 years ago

Status: assignedaccepted

comment:3 by Andrei Belov, 4 years ago

Resolution: fixed
Status: acceptedclosed

Thanks for reporting.
Fixed by http://hg.nginx.org/pkg-oss/rev/229f6e699ca7.

Note: See TracTickets for help on using tickets.