Welcome! Log In Create A New Profile

Advanced

RE: Segmentation fault sometimes

Ali Ghanbari
August 29, 2021 04:00AM
is those was pictures??
Cuz I just see a lot of things that doesn’t have any meaning:/

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: 王 静凯<mailto:lywjk@outlook.com>
Sent: Tuesday, August 24, 2021 1:08 PM
To: nginx@nginx.org<mailto:nginx@nginx.org>
Subject: Segmentation fault sometimes

Hi,

The ‘nginx -V’ info:
````
nginx version: nginx/1.20.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
built with OpenSSL 1.1.1k 25 Mar 2021
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --error-log-path=/usr/local/nginx/logs/error.log --http-client-body-temp-path=/usr/local/nginx/client_temp --http-proxy-temp-path=/usr/local/nginx/proxy_temp --http-fastcgi-temp-path=/usr/local/nginx/fastcgi_temp --http-uwsgi-temp-path=/usr/local/nginx/uwsgi_temp --http-scgi-temp-path=/usr/local/nginx/scgi_temp --user=nginx --group=nginx --add-module=../fastdfs-nginx-module-1.22/src --add-module=../nginx-client-module --add-module=../nginx-multiport-module --add-module=../nginx-toolkit-module --add-module=../nginx-rtmp-module --add-module=../nginx-ts-module --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-openssl=../openssl-1.1.1k --with-pcre=../pcre-8.44 --with-zlib=../zlib-1.2.11 --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --with-debug
````

The nginx compile with ‘https://github.com/pingostack/pingos’ project and ‘https://github.com/happyfish100/fastdfs-nginx-module’ project.

Sometimes it crashed serveral times continuously. But then it works for a long time normally.

It shows
````
#0 0x0000006e6f697461 in ?? ()
#1 0x0000000000464ed6 in ngx_log_error_core (level=level@entry=8, log=log@entry=0x3d27608, err=err@entry=0, fmt=fmt@entry=0x7a2816 "posix_memalign: %p:%uz @%uz")
at src/core/ngx_log.c:168
#2 0x000000000048ab24 in ngx_memalign (alignment=alignment@entry=16, size=size@entry=4096, log=0x3d27608) at src/os/unix/ngx_alloc.c:65
#3 0x0000000000465aa2 in ngx_palloc_block (pool=0x3bf9b50, size=72) at src/core/ngx_palloc.c:186
#4 0x000000000046608e in ngx_pcalloc (pool=<optimized out>, size=size@entry=72) at src/core/ngx_palloc.c:302
#5 0x0000000000582c73 in ngx_rtmp_shared_alloc_frame (size=4096, cl=cl@entry=0x3d3c960, mandatory=mandatory@entry=0)
at ../nginx-rtmp-module/ngx_rtmp_shared_module.c:225
#6 0x00000000005689e9 in ngx_rtmp_live_av (s=0x3fb8bf0, h=0x3bb1290, in=0x3d3c960) at ../nginx-rtmp-module/ngx_rtmp_live_module.c:773
#7 0x000000000055d1d8 in ngx_rtmp_receive_message (s=s@entry=0x3fb8bf0, h=h@entry=0x3bb1290, in=in@entry=0x3d3c960)
at ../nginx-rtmp-module/ngx_rtmp_handler.c:874
#8 0x000000000055d991 in ngx_rtmp_recv (rev=<optimized out>) at ../nginx-rtmp-module/ngx_rtmp_handler.c:486
#9 0x0000000000491f11 in ngx_epoll_process_events (cycle=0x43bde90, timer=<optimized out>, flags=<optimized out>) at src/event/modules/ngx_epoll_module.c:901
#10 0x00000000004861d6 in ngx_process_events_and_timers (cycle=cycle@entry=0x43bde90) at src/event/ngx_event.c:247
#11 0x000000000048f9e5 in ngx_worker_process_cycle (cycle=cycle@entry=0x43bde90, data=data@entry=0x0) at src/os/unix/ngx_process_cycle.c:719
#12 0x000000000048df5f in ngx_spawn_process (cycle=cycle@entry=0x43bde90, proc=proc@entry=0x48f990 <ngx_worker_process_cycle>, data=data@entry=0x0,
name=name@entry=0x7a3486 "worker process", respawn=respawn@entry=-4) at src/os/unix/ngx_process.c:199
````
Or

````
(gdb) bt
#0 0x0000000000464f13 in ngx_write_fd (n=100, buf=0x7ffd8d7ef2f0, fd=<error reading variable: Cannot access memory at address 0x66736e6172740064>)
at src/os/unix/ngx_files.h:147
#1 ngx_log_error_core (level=level@entry=8, log=log@entry=0x3b94c58, err=err@entry=0, fmt=fmt@entry=0x7a2816 "posix_memalign: %p:%uz @%uz")
at src/core/ngx_log.c:183
#2 0x000000000048ab24 in ngx_memalign (alignment=alignment@entry=16, size=size@entry=4096, log=0x3b94c58) at src/os/unix/ngx_alloc.c:65
#3 0x0000000000465aa2 in ngx_palloc_block (pool=0x3c3c0b0, size=96) at src/core/ngx_palloc.c:186
#4 0x000000000046608e in ngx_pcalloc (pool=<optimized out>, size=size@entry=96) at src/core/ngx_palloc.c:302
````

In gdb


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

Server mp4 file larger than 2GB on 32bit system

王 静凯 June 05, 2021 04:36AM

Re: Server mp4 file larger than 2GB on 32bit system

Maxim Dounin June 06, 2021 12:12PM

回复: Server mp4 file larger than 2GB on 32bit system

王 静凯 June 06, 2021 10:46PM

Re: 回复: Server mp4 file larger than 2GB on 32bit system

Maxim Dounin June 07, 2021 08:22AM

Server mp4 file larger than 2GB on 32bit system

王 静凯 June 08, 2021 10:56PM

Re: Server mp4 file larger than 2GB on 32bit system

Maxim Dounin June 09, 2021 10:26AM

Segmentation fault sometimes

王 静凯 August 24, 2021 04:38AM

RE: Segmentation fault sometimes

Ali Ghanbari August 29, 2021 04:00AM

Re: Segmentation fault sometimes

Sergey A. Osokin August 30, 2021 06:32PM

回复: Segmentation fault sometimes

王 静凯 November 11, 2022 04:06AM

Re: 回复: Segmentation fault sometimes

Sergey A. Osokin November 17, 2022 09:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready