[httperf] httperf max_piped_calls and max-connection parameters - buffer overflow

R Hashemian raoofeh.h at gmail.com
Wed Mar 6 15:36:39 PST 2013


Hi all,

I was using httperf for a long time and never got the buffer overflow
problem till I moved to a new system with Ubuntu 12.04 and Kernel 3.5.0.
I had exactly the same setup as my old OS (Ubuntu 10.10, Kernel 2.6.35)
with the new OS but I got the run-time error shown below this message.

here is the httperf commands that I am using:
taskset 0x04 httperf --server=192.168.0.100 --max-piped-calls=1
--max-connections=3 --client=1/12  --period=d0.06
--wsesslog=1000,0,RG2000S1.txt  &
taskset 0x10 httperf --server=192.168.0.100 --max-piped-calls=1
--max-connections=3 --client=2/12  --period=d0.06
--wsesslog=1000,0,RG2000S2.txt  &
taskset 0x08 httperf --server=192.168.1.101 --max-piped-calls=1
--max-connections=3 --client=3/12  --period=d0.06
--wsesslog=1000,0,RG2000S3.txt  &
taskset 0x20 httperf --server=192.168.1.101 --max-piped-calls=1
--max-connections=3 --client=4/12  --period=d0.06
--wsesslog=1000,0,RG2000S4.txt

I run 4 instances of httperf in 2*6 core machine. But even a single
instance, It has the buffer overflow error.

When I remove --max-piped-calls=1  option (which means allow pipelineing)
the error does not appear.
Also, when I change the --max-connections to 1, I don`t see the buffer
overflow problem.

I was wondering if anyone knows about this issue ?

Thanks,
Raoufeh


*** buffer overflow detected ***: httperf terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f7d165aa807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f7d165a9700]
/lib/x86_64-linux-gnu/libc.so.6(+0x10a7be)[0x7f7d165aa7be]
httperf[0x404674]
httperf[0x405b6e]
httperf[0x40b5a8]
httperf[0x40b74d]
httperf[0x40931c]
httperf[0x4061af]
httperf[0x4041de]
httperf[0x4051f0]
httperf[0x40280e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f7d164c176d]
httperf[0x4019e9]
======= Memory map: ========
00400000-00412000 r-xp 00000000 08:05 16908290
/bin/httperf
00611000-00612000 r--p 00011000 08:05 16908290
/bin/httperf
00612000-00613000 rw-p 00012000 08:05 16908290
/bin/httperf
00613000-0be7e000 rw-p 00000000 00:00 0
0d5ab000-251f1000 rw-p 00000000 00:00 0
[heap]
7f7d1628a000-7f7d1629f000 r-xp 00000000 08:05 10751534
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f7d1629f000-7f7d1649e000 ---p 00015000 08:05 10751534
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f7d1649e000-7f7d1649f000 r--p 00014000 08:05 10751534
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f7d1649f000-7f7d164a0000 rw-p 00015000 08:05 10751534
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f7d164a0000-7f7d16655000 r-xp 00000000 08:05 10751513
/lib/x86_64-linux-gnu/libc-2.15.so
7f7d16655000-7f7d16854000 ---p 001b5000 08:05 10751513
/lib/x86_64-linux-gnu/libc-2.15.so
7f7d16854000-7f7d16858000 r--p 001b4000 08:05 10751513
/lib/x86_64-linux-gnu/libc-2.15.so
7f7d16858000-7f7d1685a000 rw-p 001b8000 08:05 10751513
/lib/x86_64-linux-gnu/libc-2.15.so
7f7d1685a000-7f7d1685f000 rw-p 00000000 00:00 0
7f7d1685f000-7f7d1695a000 r-xp 00000000 08:05 10751545
/lib/x86_64-linux-gnu/libm-2.15.so
7f7d1695a000-7f7d16b59000 ---p 000fb000 08:05 10751545
/lib/x86_64-linux-gnu/libm-2.15.so
7f7d16b59000-7f7d16b5a000 r--p 000fa000 08:05 10751545
/lib/x86_64-linux-gnu/libm-2.15.so
7f7d16b5a000-7f7d16b5b000 rw-p 000fb000 08:05 10751545
/lib/x86_64-linux-gnu/libm-2.15.so
7f7d16b5b000-7f7d16b7d000 r-xp 00000000 08:05 10751493
/lib/x86_64-linux-gnu/ld-2.15.so
7f7d16d67000-7f7d16d6a000 rw-p 00000000 00:00 0
7f7d16d79000-7f7d16d7d000 rw-p 00000000 00:00 0
7f7d16d7d000-7f7d16d7e000 r--p 00022000 08:05 10751493
/lib/x86_64-linux-gnu/ld-2.15.so
7f7d16d7e000-7f7d16d80000 rw-p 00023000 08:05 10751493
/lib/x86_64-linux-gnu/ld-2.15.so
7fff5d850000-7fff5d871000 rw-p 00000000 00:00 0
[stack]
7fff5d891000-7fff5d892000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
*** buffer overflow detected ***: httperf terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f90eced4807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f90eced3700]
/lib/x86_64-linux-gnu/libc.so.6(+0x10a7be)[0x7f90eced47be]
httperf[0x404674]
httperf[0x405b6e]
httperf[0x40b5a8]
httperf[0x40b74d]
httperf[0x40931c]
httperf[0x4061af]
httperf[0x4041de]
httperf[0x4051f0]
httperf[0x40280e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f90ecdeb76d]
httperf[0x4019e9]
======= Memory map: ========
00400000-00412000 r-xp 00000000 08:05 16908290
/bin/httperf
00611000-00612000 r--p 00011000 08:05 16908290
/bin/httperf
00612000-00613000 rw-p 00012000 08:05 16908290
/bin/httperf
00613000-0be7e000 rw-p 00000000 00:00 0
0d80c000-25452000 rw-p 00000000 00:00 0
[heap]
7f90ecbb4000-7f90ecbc9000 r-xp 00000000 08:05 10751534
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f90ecbc9000-7f90ecdc8000 ---p 00015000 08:05 10751534
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f90ecdc8000-7f90ecdc9000 r--p 00014000 08:05 10751534
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f90ecdc9000-7f90ecdca000 rw-p 00015000 08:05 10751534
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f90ecdca000-7f90ecf7f000 r-xp 00000000 08:05 10751513
/lib/x86_64-linux-gnu/libc-2.15.so
7f90ecf7f000-7f90ed17e000 ---p 001b5000 08:05 10751513
/lib/x86_64-linux-gnu/libc-2.15.so
7f90ed17e000-7f90ed182000 r--p 001b4000 08:05 10751513
/lib/x86_64-linux-gnu/libc-2.15.so
7f90ed182000-7f90ed184000 rw-p 001b8000 08:05 10751513
/lib/x86_64-linux-gnu/libc-2.15.so
7f90ed184000-7f90ed189000 rw-p 00000000 00:00 0
7f90ed189000-7f90ed284000 r-xp 00000000 08:05 10751545
/lib/x86_64-linux-gnu/libm-2.15.so
7f90ed284000-7f90ed483000 ---p 000fb000 08:05 10751545
/lib/x86_64-linux-gnu/libm-2.15.so
7f90ed483000-7f90ed484000 r--p 000fa000 08:05 10751545
/lib/x86_64-linux-gnu/libm-2.15.so
7f90ed484000-7f90ed485000 rw-p 000fb000 08:05 10751545
/lib/x86_64-linux-gnu/libm-2.15.so
7f90ed485000-7f90ed4a7000 r-xp 00000000 08:05 10751493
/lib/x86_64-linux-gnu/ld-2.15.so
7f90ed691000-7f90ed694000 rw-p 00000000 00:00 0
7f90ed6a3000-7f90ed6a7000 rw-p 00000000 00:00 0
7f90ed6a7000-7f90ed6a8000 r--p 00022000 08:05 10751493
/lib/x86_64-linux-gnu/ld-2.15.so
7f90ed6a8000-7f90ed6aa000 rw-p 00023000 08:05 10751493
/lib/x86_64-linux-gnu/ld-2.15.so
7fffbd728000-7fffbd749000 rw-p 00000000 00:00 0
[stack]
7fffbd7ff000-7fffbd800000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]


-- 
Raoufehsadat Hashemian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/httperf/attachments/20130306/3d0987da/attachment.htm


More information about the httperf mailing list