Hi, It might be a problem with the ">" sign inside your command. Some sipp versions read is as closing of the XML tag even though it's inside quotes. Maybe you should try the newest version of SIPp from SVN.
You can also try to replace ">" with ">", as in HTML, i.e. <exec command="/bin/echo hello>> test.echo"/> Or at first just try a command without redirection to see if it is all about the ">" or maybe something else. Best regards -- Tomasz Radziszewski Senior Software Engineer Ericpol Telecom sp. z o.o. Madalinskiego 9, 30-303 Krakow, Poland e-mail: [EMAIL PROTECTED] http://www.ericpol.com/ > Hello, > > I have a segment violation in sipp 3.1 when using external command in > uac_pcap.xml before pcap_send > > <exec command="/bin/echo hello>> test.echo"/> > with this xml-line the program crashes - without it is is fine. > I do run tcpdump really, but uses echo just for the debugging > the xml_script works with 2.0 for example, so this is a new bug. > > the crash is caused in call.cpp at line 3271 where there is an empty > message coming : > > char* x = createSendingMessage(currentAction->getMessage(), -2 /* do > not add crlf*/); > > I had a success with just sleeping at that point a few 100 ms some > times, but not always. > > > regards > Olav > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1211656512 (LWP 19994)] > 0x0804f83b in std::vector<MessageComponent*, > std::allocator<MessageComponent*> >::begin (this=0x0) > at > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_ve >ctor.h:342 (gdb) up > #1 0x0804f8d8 in std::vector<MessageComponent*, > std::allocator<MessageComponent*> >::size (this=0x0) > at > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_ve >ctor.h:402 (gdb) up > #2 0x0804cd6f in SendingMessage::numComponents (this=0x0) at > message.cpp:530 > (gdb) up > #3 0x080618f9 in call::createSendingMessage (this=0x8227190, src=0x0, > P_index=-2, msg_buffer=0x80d5340 "", buf_len=65538) at call.cpp:1894 > (gdb) ps src > Undefined command: "ps". Try "help". > (gdb) print src > $1 = (SendingMessage *) 0x0 > (gdb) up > #4 0x08061db9 in call::createSendingMessage (this=0x8227190, src=0x0, > P_index=-2) at call.cpp:1879 > (gdb) up > #5 0x08062e75 in call::executeAction (this=0x8227190, msg=0x0, > scenarioIndex=5) at call.cpp:3271 > (gdb) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
