Opened 12 years ago

Last modified 12 years ago

#38118 new defect

httperf segaults

Reported by: jithin1987@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: httperf

Description

Using httperf @0.9.0

httperf  --timeout=10   --server=*host*  --port=80 --wlog=y,requests_httperf_Hindi.txt --uri=/ --rate=200 --num-conns=2000 --num-calls=1 --client=1/3 
httperf --timeout=10 --client=1/3 --server=*host* --port=80 --uri=/ --rate=200 --send-buffer=4096 --recv-buffer=16384 --num-conns=2000 --num-calls=1
httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE
Segmentation fault: 11
degreethem-lm:perf jithine$ ulimit -n
10000

However for a lower rate like 100 its works without segfault.

Change History (5)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

You should report the problem to the developers so they can fix it: http://code.google.com/p/httperf/issues/list

comment:2 Changed 12 years ago by jithin1987@…

I will report the bug there also, but I am using the same version (v0.9) of httperf on a rhel 6 and 5.6 box with same parameters and I am not having a segfault.

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Could you attach the crash log please?

comment:4 Changed 12 years ago by jmroot (Joshua Root)

BTW, the default FD_SETSIZE is 1024 and it can only be changed at compile time.

comment:5 Changed 12 years ago by jithin1987@…

GDB stack trace.

degreethem-lm:perf jithine$ gdb httperf
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug  8 20:32:45 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ..... done

(gdb) run --timeout=10   --server=*host*  --port=80 --wlog=y,requests_httperf_Hindi.txt --uri=/ --rate=200 --num-conns=2000 --num-calls=1 --client=1/3 
Starting program: /opt/local/bin/httperf --timeout=10   --server=beqa1.yt.sg3.yahoo.com  --port=80 --wlog=y,requests_httperf_Hindi.txt --uri=/ --rate=200 --num-conns=2000 --num-calls=1 --client=1/3
Reading symbols for shared libraries ++++......................... done
httperf --timeout=10 --client=1/3 --server=beqa1.yt.sg3.yahoo.com --port=80 --uri=/ --rate=200 --send-buffer=4096 --recv-buffer=16384 --num-conns=2000 --num-calls=1
httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000004
0x0000000100003868 in core_loop ()
(gdb) bt
#0  0x0000000100003868 in core_loop ()
#1  0x0000000100002832 in main ()
(gdb)

Is it possible for me to try out changing FD_SETSIZE when installing?

Version 0, edited 12 years ago by jithin1987@… (next)
Note: See TracTickets for help on using tickets.