Skip to content

Instantly share code, notes, and snippets.

@andresriancho
Created July 3, 2013 01:10
Show Gist options
  • Save andresriancho/5914685 to your computer and use it in GitHub Desktop.
Save andresriancho/5914685 to your computer and use it in GitHub Desktop.
strace for uwsgi bug
root@server:/home/ubuntu# gcc --print-file-name=libgcc_s.so.1
/lib/x86_64-linux-gnu/libgcc_s.so.1
root@server:/home/ubuntu# ls -lah /lib/x86_64-linux-gnu/libgcc_s.so.1
-rw-r--r-- 1 root root 87K Apr 15 2012 /lib/x86_64-linux-gnu/libgcc_s.so.1
root@server:/home/ubuntu# file /lib/x86_64-linux-gnu/libgcc_s.so.1
/lib/x86_64-linux-gnu/libgcc_s.so.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0xa922f3ec3c63266e82f1105dd40d17152cf85a39, stripped
root@server:/home/ubuntu# strace -o strace.txt -e trace=file /usr/local/bin/uwsgi --ini /etc/uwsgi/django_uwsgi.ini
[uWSGI] getting INI configuration from /etc/uwsgi/django_uwsgi.ini
*** Starting uWSGI 1.9.12 (64bit) on [Wed Jul 3 01:03:38 2013] ***
compiled with version: 4.6.3 on 05 June 2013 14:02:54
os: Linux-3.2.0-45-virtual #70-Ubuntu SMP Wed May 29 20:31:52 UTC 2013
nodename: server
machine: x86_64
clock source: unix
detected number of CPU cores: 1
current working directory: /home/ubuntu
writing pidfile to /tmp/uwsgi.pid
detected binary path: /usr/local/bin/uwsgi
setgid() to 33
setuid() to 33
your processes number limit is 4594
limiting address space of processes...
your process address space limit is 268435456 bytes (256 MB)
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
uwsgi socket 0 bound to UNIX address /home/django/ramp//unix.sock fd 3
Python version: 2.7.3 (default, Apr 10 2013, 06:31:07) [GCC 4.6.3]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x1c93130
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 800008 bytes (781 KB) for 10 cores
*** Operational MODE: preforking ***
added /home/django/ramp/bars/ to pythonpath.
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x1c93130 pid: 18009 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 18009)
spawned uWSGI worker 1 (pid: 18010, cores: 1)
spawned uWSGI worker 2 (pid: 18011, cores: 1)
spawned uWSGI worker 3 (pid: 18012, cores: 1)
spawned uWSGI worker 4 (pid: 18013, cores: 1)
spawned uWSGI worker 5 (pid: 18014, cores: 1)
spawned uWSGI worker 6 (pid: 18015, cores: 1)
spawned uWSGI worker 7 (pid: 18016, cores: 1)
spawned uWSGI worker 8 (pid: 18017, cores: 1)
spawned uWSGI worker 9 (pid: 18018, cores: 1)
spawned uWSGI worker 10 (pid: 18019, cores: 1)
Cannot use pynotify
Cannot use pynotify
libgcc_s.so.1 must be installed for pthread_cancel to work
DAMN ! worker 9 (pid: 18018) died, killed by signal 6 :( trying respawn ...
Respawned uWSGI worker 9 (new pid: 18224)
libgcc_s.so.1 must be installed for pthread_cancel to work
DAMN ! worker 10 (pid: 18019) died, killed by signal 6 :( trying respawn ...
Respawned uWSGI worker 10 (new pid: 18232)
Cannot use pynotify
Cannot use pynotify
root@server:/home/ubuntu# grep gcc strace.txt
open("/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment