[AWS] Server crashed when using Template_Parser.Set_Tag_Separators at high loads

Joseph Montanez jmontanez at gorilla3d.com
Sun Feb 20 21:50:59 CET 2011


When under a high load the procedure kills the entire server. However
as long as I don't change it, then its not a problem. Its different on
each of my computers. My home computer will crash when there is more
then one connection, while my work computer will handle a large number
of connection but eventually die.

Used: ab -n 1000 -c 100 http://localhost:8184/
With Set_Tag_Separators = Crash
Without Set_Tag_Separators = No Crash


Full Example: https://gist.github.com/836289
Download Example: https://gist.github.com/gists/836289/download
Problem: Set_Tag_Separators (Start_With => "[[", Stop_With => "]]");
System: Ubuntu 10.10
GNATMAKE 4.4.5 20100909
AWS 2.7-4

Backtrace:
/lib/libc.so.6(+0x774b6)[0x7f9f440104b6]
/lib/libc.so.6(cfree+0x73)[0x7f9f44016c83]
/usr/lib/libgnat-4.4.so.1(__gnat_free+0x15)[0x7f9f449bced5]
/usr/lib/libgnat-4.4.so.1(ada__strings__unbounded__finalize__2+0x2a)[0x7f9f448889fa]
/usr/lib/libgnat-4.4.so.1(ada__strings__unbounded___assign__2+0x32)[0x7f9f44888c32]
/usr/lib/libtemplates_parser.so.11.5(templates_parser__set_tag_separators+0x174)[0x7f9f453439c4]
./server[0x40994b]
/usr/lib/libaws.so.2.7(aws__services__dispatchers__uri__dispatch__2+0x1e0)[0x7f9f461adc40]
/usr/lib/libaws.so.2.7(+0x1998a9)[0x7f9f461748a9]
/usr/lib/libaws.so.2.7(aws__server__http_utils__answer_to_client+0x11b)[0x7f9f46178cab]
/usr/lib/libaws.so.2.7(aws__server__protocol_handler+0x896)[0x7f9f4618c646]
/usr/lib/libaws.so.2.7(aws__server__lineB+0x16f)[0x7f9f4618df0f]
/usr/lib/libgnarl-4.4.so.1(+0x29083)[0x7f9f44c8a083]
/lib/libpthread.so.0(+0x7971)[0x7f9f44539971]
/lib/libc.so.6(clone+0x6d)[0x7f9f4407f92d]

-- 
Joseph Montanez
Web Developer
Gorilla3D
Design, Develop, Deploy


More information about the AWS mailing list