#328 Using SCL SUBROUTINEs causes memory corruption

Serious
open-accepted
5
2006-12-12
2006-11-17
No

Subroutine calls that pass parameters cause a memory leak in TExecuter_htp.exe and the Script Modeler. This is severe enough in some cases that we have to manually set variables instead of using parameters in a subroutine call to pass data into a subroutine.

I'm running OpenSTA 1.4.3.20 on Windows XP Pro SP2. Sample code that quickly demonstrates the leak when running under a single VU is below.

---------------------
!Browser:IE6
!Date : 4/20/2006
Environment
Description ""
Mode HTTP
Wait UNIT MILLISECONDS

Definitions
integer loop
character*8192 foo

Code
do loop = 1, 2, 0
do loop = 1, 1000
call makeleak ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]
enddo
wait 1
enddo

subroutine makeleak [foo]
end subroutine
---------------------

Warning: the Script Modeler tends to become unresponsive when running this script.

Discussion

  • Danny Faught

    Danny Faught - 2006-11-17
    • summary: Memory leak in subroutine call when using paramters --> Memory leak in subroutine call when using parameters
     
  • Daniel Sutcliffe

    • assigned_to: nobody --> dansut
    • summary: Memory leak in subroutine call when using parameters --> Using SCL SUBROUTINEs causes memory corruption
    • status: open --> open-accepted
     
  • Daniel Sutcliffe

    Logged In: YES
    user_id=19748
    Originator: NO

    A reasonable amount of evidence has been collected that suggests that using any SUBROUTINE calls causes memory corruption - and this memory corruption can lead to memory leaks and/or tests failing/crashing. Using parameters in SUBROUTINE calls seems to guarantee memory leaks but this is only part of this much bigger problem.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks