Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

siege 3.1.0-rc2 segfault #11

Open
jamshid opened this issue May 17, 2015 · 3 comments
Open

siege 3.1.0-rc2 segfault #11

jamshid opened this issue May 17, 2015 · 3 comments

Comments

@jamshid
Copy link

jamshid commented May 17, 2015

Running siege 3.1.0-rc2 causes a segfault against a server I'm testing. Reproduced in linux (in a docker FROM debian:jessie) and on OSX. It works with -c 1. Let me know how I can gather any needed info.

$ siege -b -c 25 -t60s -H 'Authorization: Basic REDACTED' "http://backup/my/50cent.png"
Segmentation fault: 11

** SIEGE 3.1.0-rc2
** Preparing 100 concurrent users for battle.
The server is now under siege...[ESC[1;33merrorESC[0m] socket: 65482752 address is unavailable.: Can't assign requested address
[ESC[1;33merrorESC[0m] socket: 55824384 address is unavailable.: Can't assign requested address
...
[ESC[1;33merrorESC[0m] socket: 38117376 address is unavailable.: Can't assign requested address
[ESC[1;32malertESC[0m] socket: polled(30) and discovered it's not ready sock.c:296: Operation timed out
@JoeDog
Copy link
Owner

JoeDog commented May 17, 2015

Could you run that in gdb and get a stack trace?

gdb siege
run -b -c 25 -t60s -H 'Authorization: Basic REDACTED' "
http://backup/my/50cent.png"

then when it crashes, type:
bt

and send me the output.

Thanks,
J.

On Sun, May 17, 2015 at 3:41 AM, jamshid notifications@github.com wrote:

Running siege 3.1.0-rc2 causes a segfault against a server I'm testing.
Reproduced in linux (in a docker FROM debian:jessie) and on OSX. It works
with -c 1. Let me know how I can gather any needed info.

$ siege -b -c 25 -t60s -H 'Authorization: Basic REDACTED' "http://backup/my/50cent.png"
Segmentation fault: 11

** SIEGE 3.1.0-rc2
** Preparing 100 concurrent users for battle.
The server is now under siege...[ESC[1;33merrorESC[0m] socket: 65482752 address is unavailable.: Can't assign requested address
[ESC[1;33merrorESC[0m] socket: 55824384 address is unavailable.: Can't assign requested address
...
[ESC[1;33merrorESC[0m] socket: 38117376 address is unavailable.: Can't assign requested address
[ESC[1;32malertESC[0m] socket: polled(30) and discovered it's not ready sock.c:296: Operation timed out


Reply to this email directly or view it on GitHub
#11.

@jamshid
Copy link
Author

jamshid commented May 19, 2015

Thanks, here its:

(gdb) run  -b -c 25 -t60s -H 'Authorization: Basic REDACTED' http://backup/my/50cent.png
Starting program: /usr/local/bin/siege -b -c 25 -t60s -H 'Authorization: Basic REDACTED' http://backup/my/50cent.png
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6fb6700 (LWP 5133)]
[New Thread 0x7ffff67b5700 (LWP 5134)]
[New Thread 0x7ffff5fb4700 (LWP 5135)]
[New Thread 0x7ffff57b3700 (LWP 5136)]
[New Thread 0x7ffff4fb2700 (LWP 5137)]
[New Thread 0x7ffff47b1700 (LWP 5138)]
[New Thread 0x7ffff3fb0700 (LWP 5139)]
[New Thread 0x7ffff37af700 (LWP 5140)]
[New Thread 0x7ffff2fae700 (LWP 5141)]
[New Thread 0x7ffff27ad700 (LWP 5142)]
[New Thread 0x7ffff1fac700 (LWP 5143)]
[New Thread 0x7ffff17ab700 (LWP 5144)]
[New Thread 0x7ffff0faa700 (LWP 5145)]
[New Thread 0x7ffff07a9700 (LWP 5146)]
[New Thread 0x7fffeffa8700 (LWP 5147)]
[New Thread 0x7fffef7a7700 (LWP 5148)]
[New Thread 0x7fffeefa6700 (LWP 5149)]
[New Thread 0x7fffee7a5700 (LWP 5150)]
[New Thread 0x7fffedfa4700 (LWP 5151)]
[New Thread 0x7fffed7a3700 (LWP 5152)]
[New Thread 0x7fffecfa2700 (LWP 5153)]
[New Thread 0x7fffec7a1700 (LWP 5154)]
[New Thread 0x7fffebfa0700 (LWP 5155)]
[New Thread 0x7fffeb79f700 (LWP 5156)]
[New Thread 0x7fffeaf9e700 (LWP 5157)]
** SIEGE 3.1.0-rc2
** Preparing 25 concurrent users for battle.
The server is now under siege...[New Thread 0x7fffea79d700 (LWP 5158)]
[New Thread 0x7fffe9f9c700 (LWP 5159)]
[alert] socket: polled(30) and discovered it's not ready sock.c:296: Connection timed out

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffec7a1700 (LWP 5154)]
0x00007ffff7001e2c in _IO_vfprintf_internal (s=s@entry=0x7fffec78ab40, format=<optimized out>, format@entry=0x417fc8 "socket: read check timed out(%d) %s:%d", 
    ap=ap@entry=0x7fffec79e9a8) at vfprintf.c:1642
1642    vfprintf.c: No such file or directory.
(gdb) bt
#0  0x00007ffff7001e2c in _IO_vfprintf_internal (s=s@entry=0x7fffec78ab40, format=<optimized out>, format@entry=0x417fc8 "socket: read check timed out(%d) %s:%d", 
    ap=ap@entry=0x7fffec79e9a8) at vfprintf.c:1642
#1  0x00007ffff702345b in __IO_vsprintf (string=0x7fffec78ace0 "socket: read check timed out(4292032) ", format=0x417fc8 "socket: read check timed out(%d) %s:%d", 
    args=0x7fffec79e9a8) at iovsprintf.c:42
#2  0x0000000000412f89 in __message (M=__OUT, L=WARNING, fmt=0x7fffffdb <error: Cannot access memory at address 0x7fffffdb>, ap=0x20) at notify.c:88
#3  0x0000000000413331 in NOTIFY (L=<optimized out>, fmt=<optimized out>) at notify.c:146
#4  0x0000000000410217 in new_socket (C=C@entry=0x7fffd40008c0, hostparam=<optimized out>, portparam=portparam@entry=8084) at sock.c:132
#5  0x00000000004057d8 in __init_connection (C=0x7fffd40008c0, U=0x623f90, client=<optimized out>) at client.c:667
#6  0x00000000004059a1 in __http (client=<optimized out>, U=<optimized out>, C=<optimized out>) at client.c:261
#7  __request (C=0x7fffd40008c0, U=0x623f90, client=0x621560) at client.c:194
#8  0x0000000000406941 in start_routine (client=0x621560) at client.c:157
#9  0x0000000000407cc1 in crew_thread (crew=0x6211f0) at crew.c:134
#10 0x00007ffff7bc70a4 in start_thread (arg=0x7fffec7a1700) at pthread_create.c:309
#11 0x00007ffff709d04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

@JoeDog
Copy link
Owner

JoeDog commented May 19, 2015

Thanks. That will be fixed in an upcoming release.

If you're using this version for testing, I appreciate it. If you want to
get things done, I recommend you use the latest distribution:

http://download.joedog.org/siege/siege-3.0.9.tar.gz

Cheers,
J.

On Tue, May 19, 2015 at 12:23 PM, jamshid notifications@github.com wrote:

Thanks, here its:

(gdb) run -b -c 25 -t60s -H 'Authorization: Basic Z3ctbmVja2JlYXJkOnBhc3N3b3Jk' http://backup:8084/my/50cent.png
Starting program: /usr/local/bin/siege -b -c 25 -t60s -H 'Authorization: Basic Z3ctbmVja2JlYXJkOnBhc3N3b3Jk' http://backup:8084/my/50cent.png
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6fb6700 (LWP 5133)]
[New Thread 0x7ffff67b5700 (LWP 5134)]
[New Thread 0x7ffff5fb4700 (LWP 5135)]
[New Thread 0x7ffff57b3700 (LWP 5136)]
[New Thread 0x7ffff4fb2700 (LWP 5137)]
[New Thread 0x7ffff47b1700 (LWP 5138)]
[New Thread 0x7ffff3fb0700 (LWP 5139)]
[New Thread 0x7ffff37af700 (LWP 5140)]
[New Thread 0x7ffff2fae700 (LWP 5141)]
[New Thread 0x7ffff27ad700 (LWP 5142)]
[New Thread 0x7ffff1fac700 (LWP 5143)]
[New Thread 0x7ffff17ab700 (LWP 5144)]
[New Thread 0x7ffff0faa700 (LWP 5145)]
[New Thread 0x7ffff07a9700 (LWP 5146)]
[New Thread 0x7fffeffa8700 (LWP 5147)]
[New Thread 0x7fffef7a7700 (LWP 5148)]
[New Thread 0x7fffeefa6700 (LWP 5149)]
[New Thread 0x7fffee7a5700 (LWP 5150)]
[New Thread 0x7fffedfa4700 (LWP 5151)]
[New Thread 0x7fffed7a3700 (LWP 5152)]
[New Thread 0x7fffecfa2700 (LWP 5153)]
[New Thread 0x7fffec7a1700 (LWP 5154)]
[New Thread 0x7fffebfa0700 (LWP 5155)]
[New Thread 0x7fffeb79f700 (LWP 5156)]
[New Thread 0x7fffeaf9e700 (LWP 5157)]
** SIEGE 3.1.0-rc2
** Preparing 25 concurrent users for battle.
The server is now under siege...[New Thread 0x7fffea79d700 (LWP 5158)]
[New Thread 0x7fffe9f9c700 (LWP 5159)]
[alert] socket: polled(30) and discovered it's not ready sock.c:296: Connection timed out

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffec7a1700 (LWP 5154)]
0x00007ffff7001e2c in _IO_vfprintf_internal (s=s@entry=0x7fffec78ab40, format=, format@entry=0x417fc8 "socket: read check timed out(%d) %s:%d",
ap=ap@entry=0x7fffec79e9a8) at vfprintf.c:1642
1642 vfprintf.c: No such file or directory.
(gdb) bt
#0 0x00007ffff7001e2c in _IO_vfprintf_internal (s=s@entry=0x7fffec78ab40, format=, format@entry=0x417fc8 "socket: read check timed out(%d) %s:%d",
ap=ap@entry=0x7fffec79e9a8) at vfprintf.c:1642
#1 0x00007ffff702345b in __IO_vsprintf (string=0x7fffec78ace0 "socket: read check timed out(4292032) ", format=0x417fc8 "socket: read check timed out(%d) %s:%d",
args=0x7fffec79e9a8) at iovsprintf.c:42
#2 0x0000000000412f89 in __message (M=__OUT, L=WARNING, fmt=0x7fffffdb <error: Cannot access memory at address 0x7fffffdb>, ap=0x20) at notify.c:88
#3 0x0000000000413331 in NOTIFY (L=, fmt=) at notify.c:146
#4 0x0000000000410217 in new_socket (C=C@entry=0x7fffd40008c0, hostparam=, portparam=portparam@entry=8084) at sock.c:132
#5 0x00000000004057d8 in __init_connection (C=0x7fffd40008c0, U=0x623f90, client=) at client.c:667
#6 0x00000000004059a1 in __http (client=, U=, C=) at client.c:261
#7 __request (C=0x7fffd40008c0, U=0x623f90, client=0x621560) at client.c:194
#8 0x0000000000406941 in start_routine (client=0x621560) at client.c:157
#9 0x0000000000407cc1 in crew_thread (crew=0x6211f0) at crew.c:134
#10 0x00007ffff7bc70a4 in start_thread (arg=0x7fffec7a1700) at pthread_create.c:309
#11 0x00007ffff709d04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111


Reply to this email directly or view it on GitHub
#11 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants