Thanks. It works.
Dushyant
Verbeiren, David wrote:
The patch below should help. This seg fault only occurs when the last run of a
bench is a run with a max_calls condition. It also does not occur when running
the manager in full auto mode (-e switch) because it then exists before the
problem shows up, and that is what I mostly do...
So, good catch! Thanks!
-David
--- manager.cp-revBASE.svn001.tmp.cpp jeu. août 6 12:22:18 2009
+++ manager.cpp jeu. août 6 12:44:30 2009
@@ -1243,6 +1243,7 @@
int i;
unsigned int t_LocalRefTime = getmilliseconds();
RunAction* t_pRun = getRunAction(m_CurrentRun);
+ if (t_pRun) { // Protect against case where GETCOUNTERS completes
after end of last run
if (m_AllCounters.total_calls) {
UInt64 t_Delta = m_AllCounters.total_calls - m_LastTotalCall;
UInt32 t_DeltaTime = t_LocalRefTime-m_LastRefTime;
@@ -1256,6 +1257,7 @@
xprintf(MGR_NORMAL, "** Global Summary ** R%d CPS=%d [%dms]",
t_pRun->getIndex(), t_pRun->active_cps, t_LocalRefTime);
}
+ }
m_LastRefTime = t_LocalRefTime;
m_LastTotalCall = m_AllCounters.total_calls;
-----Original Message-----
From: Dushyant Dhalia [mailto:[email protected]]
Sent: jeudi 6 août 2009 11:31
To: [email protected]
Subject: [Sipp-users] segmentation fault in ims_bench manager exe
core is being observed in svn 589. GDB trace attached -
Core was generated by `./manager -f manager.xml'.
Program terminated with signal 11, Segmentation fault.
#0 0x0805141c in CManager::ProcessMessage (this=0x8d03040,
a_pCx=0x8d06270, a_MsgType=19, a_Data=0x8d06424 "", a_Len=104) at
manager.cpp:1254
1254 t_pRun->getIndex(), t_pRun->active_cps,
t_LocalRefTime, t_Delta, t_DeltaTime, t_Cps);
(gdb) bt
#0 0x0805141c in CManager::ProcessMessage (this=0x8d03040,
a_pCx=0x8d06270, a_MsgType=19, a_Data=0x8d06424 "", a_Len=104) at
manager.cpp:1254
#1 0x0804c3ad in main (argc=3, argv=0xbfc0b2d4) at mgr_main.cpp:953
(gdb) p t_pRun
$1 = (RunAction *) 0x0
(gdb) p t_pRun->active_cps
Cannot access memory at address 0x0
Dushyant P S Dhalia
---------------------------------------------------------------------
Intel Corporation NV/SA
Rond point Schuman 6, B-1040 Brussels
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
begin:vcard
fn:Dushyant P S Dhalia
n:Dhalia;Dushyant P S
email;internet:[email protected]
version:2.1
end:vcard
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users