[user@host httest]$ cat test.htt
BLOCK:LUA test1
print("\nI'm in test1")
END
BLOCK:LUA test2 arg1
print("\nI'm in test2, arg1="..arg1)
END
CLIENT
test1
test2 "test2arg"
test1
END
[user@host httest]$ httest test.htt
run test.htt
CLT0-0 start ...
test1
I'm in test1
test2 "test2arg"
I'm in test2, arg1=test2arg
test1Segmentation fault
[user@host httest]$ httest --version
httest 2.2.5
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Christian Liesch
[user@host httest]$
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks for reporting this bug, I will investigate. I found more problems in 2.2.5 and working on the next release 2.2.6. I hope I can fix your segmentation fault too. But first I have to reproduce. Do you working on a 64 bit maschine?
regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
apr_time_from_msec is an APR function. Maybe you have an older version of APR than me?
> apr-1-config --version
1.4.2
[code]
I do have the same problem on my workstation at my workplace, there I use a Suse Linux also 64-bit. I uploaded a new snapshot. More fixes will coming soon, I inspect httest with gcov, gprof and valgrind.
Thanks for reporting.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This test script will cause a Segmentation fault.
thanks for reporting this bug, I will investigate. I found more problems in 2.2.5 and working on the next release 2.2.6. I hope I can fix your segmentation fault too. But first I have to reproduce. Do you working on a 64 bit maschine?
regards
Yes, I working on Cent OS 6.2 64bit. And configure httest with "./configure -enable-lua-module" option.
Perfect! I can reproduce this segfault even on my Eee :) Will take a look on the way home. This will be fixed in the next release.
Fixed! But have more stuff to fix. I did upload a snapshot which you can find here https://sourceforge.net/projects/htt/files/htt2.2/httest-snapshot/
New release will coming soon.
Thanks for your quick response.
The snapshot version can fix this issue in debian 32bit linux. But, compile failed in Cent OS 64bit.
apr_time_from_msec is an APR function. Maybe you have an older version of APR than me?
I use 1.3.9 version APR.
$ apr-1-config -version
1.3.9
The new snapshot worked! Thanks a lot.