Hello Robert,

> - I believe the problem to lie with Debian rather than Pound. From
> Pound's point of view 127.0.0.0 is just another IP address, but it
> seems Debian does not allow connections there. Please try again with
> 127.0.0.1 instead, as it should work (we tested it here). I'll make
> sure the examples in the man page get updated

The non-working test was with micro-httpd running from inetd. I've made
further tests and found that using Apache as backend *does* work. So,
for some reason, it depends on the backend server.

However, while testing I noticed that pound is using 100% CPU right from
startup. In case it could be helfpul, I've attached gdb to the running
process and produced a backtrace, you'll find it below.

> - I am not entirely sure what the error in (2) is, but I did notice the
> occasional "flakiness" in CMake (sometimes the auto-detection fails).
> This is usually cured by removing the cache and rebuilding. If anybody
> has an idea about it, please let us know!

I'll not follow up on this for now as more tests say it's reproducible:

https://tests.reproducible-builds.org/debian/rb-pkg/experimental/amd64/pound.html

Regards,

Carsten


GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/pound...Reading symbols from 
/usr/lib/debug/.build-id/15/9dc881ed712ee8b1c29b932051edc641106f49.debug...done.
done.
Attaching to program: /usr/sbin/pound, process 27231
[New LWP 27233]
[New LWP 27234]
[New LWP 27235]
[New LWP 27236]
[New LWP 27237]
[New LWP 27238]
[New LWP 27239]
[New LWP 27240]
[New LWP 27241]
[New LWP 27242]
[New LWP 27243]
[New LWP 27244]
[New LWP 27245]
[New LWP 27246]
[New LWP 27247]
[New LWP 27248]
[New LWP 27249]
[New LWP 27250]
[New LWP 27251]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fc746691819 in __GI___poll (fds=0x55f7ba9675d0, nfds=1, timeout=-1) at 
../sysdeps/unix/sysv/linux/poll.c:29
(gdb) thread apply all bt
Thread 20 (Thread 0x7fc73d4c1700 (LWP 27251)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc73d4ba200, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f955e in thr_http (arg=0x55f7ba956a70) at ./src/http.c:516
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 19 (Thread 0x7fc73dcc2700 (LWP 27250)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc73dcbb200, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f955e in thr_http (arg=0x55f7ba956a70) at ./src/http.c:516
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 18 (Thread 0x7fc73e4c3700 (LWP 27249)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc73e4bc200, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f955e in thr_http (arg=0x55f7ba956a70) at ./src/http.c:516
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 17 (Thread 0x7fc73ecc4700 (LWP 27248)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc73ecbd200, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f955e in thr_http (arg=0x55f7ba956a70) at ./src/http.c:516
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 16 (Thread 0x7fc73f4c5700 (LWP 27247)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc73f4be200, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f955e in thr_http (arg=0x55f7ba956a70) at ./src/http.c:516
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7fc73fcc6700 (LWP 27246)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc73fcbf200, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f955e in thr_http (arg=0x55f7ba956a70) at ./src/http.c:516
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7fc7404c7700 (LWP 27245)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc7404c0200, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f955e in thr_http (arg=0x55f7ba956a70) at ./src/http.c:516
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7fc740cc8700 (LWP 27244)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc740cc1200, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f955e in thr_http (arg=0x55f7ba956a70) at ./src/http.c:516
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7fc7414c9700 (LWP 27243)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc738000b20, nfds=1, timeout=0) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc746849793 in nn_poll () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x000055f7b99f84e2 in thr_service (arg=<optimized out>) at ./src/http.c:65
#3  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#4  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fc741cca700 (LWP 27242)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc741cc9890, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f36f5 in thr_backend (arg=0x55f7ba956710) at 
./src/backend.c:501
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fc7424cb700 (LWP 27241)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc7424ca890, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f36f5 in thr_backend (arg=0x55f7ba956710) at 
./src/backend.c:501
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fc742ccc700 (LWP 27240)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc742ccb890, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f36f5 in thr_backend (arg=0x55f7ba956710) at 
./src/backend.c:501
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fc7434cd700 (LWP 27239)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc7434cc890, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f36f5 in thr_backend (arg=0x55f7ba956710) at 
./src/backend.c:501
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fc743cce700 (LWP 27238)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc743ccd890, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f36f5 in thr_backend (arg=0x55f7ba956710) at 
./src/backend.c:501
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fc7444cf700 (LWP 27237)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc7444ce890, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f36f5 in thr_backend (arg=0x55f7ba956710) at 
./src/backend.c:501
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fc744cd0700 (LWP 27236)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc744ccf890, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f36f5 in thr_backend (arg=0x55f7ba956710) at 
./src/backend.c:501
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fc7454d1700 (LWP 27235)):
#0  0x00007fc746691819 in __GI___poll (fds=0x7fc7454d0890, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc74684f8dc in nn_efd_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684b008 in nn_sock_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746848979 in nn_recvmsg () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc746848ccb in nn_recv () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#5  0x000055f7b99f36f5 in thr_backend (arg=0x55f7ba956710) at 
./src/backend.c:501
#6  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#7  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fc745cd2700 (LWP 27234)):
#0  0x00007fc74669c7ef in epoll_wait (epfd=1, events=0x7fc74687b590, 
maxevents=32, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1  0x00007fc74686977e in nn_poller_wait () from 
/usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#2  0x00007fc74684e6d3 in ?? () from /usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#3  0x00007fc746850e9d in ?? () from /usr/lib/x86_64-linux-gnu/libnanomsg.so.5
#4  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#5  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fc7464d3700 (LWP 27233)):
#0  0x00007fc746669720 in __GI___nanosleep 
(requested_time=requested_time@entry=0x7fc7464d2a30, 
remaining=remaining@entry=0x7fc7464d2a30) at 
../sysdeps/unix/sysv/linux/nanosleep.c:28
#1  0x00007fc74666962a in __sleep (seconds=0, seconds@entry=45) at 
../sysdeps/posix/sleep.c:55
#2  0x000055f7b99ffb42 in thr_resurrect (arg=<optimized out>) at ./src/util.c:82
#3  0x00007fc74681efa3 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#4  0x00007fc74669c4cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fc746501740 (LWP 27231)):
#0  0x00007fc746691819 in __GI___poll (fds=0x55f7ba9675d0, nfds=1, timeout=-1) 
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x000055f7b99f134b in poll (__timeout=-1, __nfds=1, __fds=0x55f7ba9675d0) 
at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  main (argc=<optimized out>, argv=<optimized out>) at ./src/pound.c:272
(gdb) quit
A debugging session is active.

        Inferior 1 [process 27231] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]
Detaching from program: /usr/sbin/pound, process 27231
[Inferior 1 (process 27231) detached]

-- 
pound mailing list
[email protected]
https://admin.hostpoint.ch/mailman/listinfo/pound_apsis.ch

Reply via email to