Author Topic: memory leak: libc066, _beginthread()  (Read 736 times)

Digi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
memory leak: libc066, _beginthread()
« on: October 03, 2016, 06:44:38 am »
Hi.

I have stable memory leak on each thread start. Can anyone confirm this problem? A small test program attached. I see an ever-increasing number of pages "stack" with Theseus:

G:\projects\test>start test.exe

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
15

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
17

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
19

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
20

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
23

and so on...



Digi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: memory leak: libc066, _beginthread()
« Reply #1 on: October 03, 2016, 07:08:16 am »
Strange... The problem disappeared after reboot.  :o

Greg Pringle

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 74
    • View Profile
Re: memory leak: libc066, _beginthread()
« Reply #2 on: October 03, 2016, 07:07:34 pm »
I have not run your program but can say the problem does exist if running java 1.6
also tested with theseus4
I wrote a new way to run threads that does not use the runnable interface and it solved the problem.