oupula/ngx_image_thumb

libgd.so.2 error

Opened this issue · 0 comments

jicki commented

GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /opt/local/nginx/sbin/nginx...done.
[New LWP 168]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `nginx: worker process '.
Program terminated with signal 11, Segmentation fault.
#0 0x00007ff2a862a167 in gdImageDestroy () from /lib64/libgd.so.2
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.26-20.el7_2.x86_64 expat-2.1.0-10.el7_3.x86_64 fontconfig-2.10.95-10.el7.x86_64 freetype-2.4.11-12.el7.x86_64 gd-2.0.35-26.el7.x86_64 glibc-2.17-157.el7_3.1.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.14.1-27.el7_3.x86_64 libX11-1.6.3-3.el7.x86_64 libXau-1.0.8-2.1.el7.x86_64 libXpm-3.5.11-3.el7.x86_64 libcom_err-1.42.9-9.el7.x86_64 libcurl-7.29.0-35.el7.centos.x86_64 libidn-1.28-4.el7.x86_64 libjpeg-turbo-1.2.90-5.el7.x86_64 libpng-1.5.13-7.el7_2.x86_64 libselinux-2.5-6.el7.x86_64 libssh2-1.4.3-10.el7_2.1.x86_64 libxcb-1.11-4.el7.x86_64 nspr-4.11.0-1.el7_2.x86_64 nss-3.21.0-9.el7_2.x86_64 nss-softokn-freebl-3.16.2.3-14.2.el7_2.x86_64 nss-util-3.21.0-2.2.el7_2.x86_64 openldap-2.4.40-9.el7_2.x86_64 openssl-libs-1.0.1e-60.el7_3.1.x86_64 pcre-8.32-15.el7_2.1.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) bt
#0 0x00007ff2a862a167 in gdImageDestroy () from /lib64/libgd.so.2
#1 0x00000000004a685a in calc_image_info (conf=0x1cb6428) at ngx_image_thumb-master/ngx_http_image_module.c:1057
#2 parse_image_info (conf=0x1cb6428) at ngx_image_thumb-master/ngx_http_image_module.c:934
#3 ngx_http_image_handler (r=0x1cc65d0) at ngx_image_thumb-master/ngx_http_image_module.c:442
#4 0x0000000000448592 in ngx_http_core_content_phase (r=0x1cc65d0, ph=) at src/http/ngx_http_core_module.c:1515
#5 0x00000000004429d3 in ngx_http_core_run_phases (r=r@entry=0x1cc65d0) at src/http/ngx_http_core_module.c:934
#6 0x0000000000442aed in ngx_http_handler (r=r@entry=0x1cc65d0) at src/http/ngx_http_core_module.c:917
#7 0x000000000044f09f in ngx_http_process_request (r=r@entry=0x1cc65d0) at src/http/ngx_http_request.c:1930
#8 0x000000000044f493 in ngx_http_process_request_headers (rev=rev@entry=0x7ff2a231f0e0) at src/http/ngx_http_request.c:1360
#9 0x000000000044f7bc in ngx_http_process_request_line (rev=rev@entry=0x7ff2a231f0e0) at src/http/ngx_http_request.c:1031
#10 0x000000000044fbe9 in ngx_http_wait_request_handler (rev=0x7ff2a231f0e0) at src/http/ngx_http_request.c:500
#11 0x000000000042bee1 in ngx_event_process_posted (cycle=cycle@entry=0x1ca2b70, posted=0x704c10 <ngx_posted_events>) at src/event/ngx_event_posted.c:33
#12 0x000000000042b9cb in ngx_process_events_and_timers (cycle=cycle@entry=0x1ca2b70) at src/event/ngx_event.c:278
#13 0x0000000000433c17 in ngx_worker_process_cycle (cycle=0x1ca2b70, data=) at src/os/unix/ngx_process_cycle.c:862
#14 0x000000000043104c in ngx_spawn_process (cycle=cycle@entry=0x1ca2b70, proc=proc@entry=0x433b1c <ngx_worker_process_cycle>, data=data@entry=0x0,
name=name@entry=0x4ac44e "worker process", respawn=respawn@entry=-4) at src/os/unix/ngx_process.c:198
#15 0x0000000000432d3e in ngx_start_worker_processes (cycle=cycle@entry=0x1ca2b70, n=4, type=type@entry=-4) at src/os/unix/ngx_process_cycle.c:385
#16 0x0000000000434cfe in ngx_master_process_cycle (cycle=cycle@entry=0x1ca2b70) at src/os/unix/ngx_process_cycle.c:260
#17 0x000000000041284e in main (argc=, argv=) at src/core/nginx.c:437
(gdb)