Welcome, Guest
Username: Password: Remember me
CodeTyphon Linux OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

CT 4.9 LazDaemon bug 9 years 8 months ago #5639

  • Jacek
  • Jacek's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1
When I was on CT 4.8 I've created an example short Daemon app.
It was all OK on CT 4.8.
I've made a clone of Dev Virtual Machine and on that clone made an upgrade to CT 4.9
Daemon app compiled on CT4.9 has memory leaks - the same app, the same sources - just IDE has changed.
Compiled with DEBUG and run then gives: [hit Ctrl+C after 5-6 seconds]
msap@lubuntudev-1-0:~/Desktop/msapTemp$ ./msapTemp --run
^CHeap dump by heaptrc unit
302 memory blocks allocated : 32565/33424
300 memory blocks freed     : 32421/33280
2 unfreed memory blocks : 144
True heap size : 196608
True free heap : 196160
Should be : 196208
Call trace for block $00007FCBE791C5C0 size 32
  $0000000000429FF5
  $000000000042B996
Call trace for block $00007FCBE78CD8C0 size 112
  $0000000000479FB4
  $0000000000479830

msapTemp.log
msapTemp [2014-07-14 01:41:41.663 Info] Daemon TDaemon1 current status: Start Pending
msapTemp [2014-07-14 01:41:41.663 Info] Daemon TDaemon1 current status: Running
msapTemp [2014-07-14 01:41:42.664 Info] 14-7-14 01:41:42
msapTemp [2014-07-14 01:41:43.664 Info] 14-7-14 01:41:43
msapTemp [2014-07-14 01:41:44.335 Info] Daemon TDaemon1 current status: Stop Pending
msapTemp [2014-07-14 01:41:44.335 Info] Daemon TDaemon1 current status: Stopped
msapTemp [2014-07-14 01:41:44.335 Info] Failed to start daemon TDaemon1 : Access violation

File Attachment:

File Name: msapTemp.zip
File Size:809 KB


Some advices??

Warning: Spoiler!
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Jacek.

CT 4.9 LazDaemon bug 9 years 8 months ago #5643

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
We will test this Sir

Did you run Typhon as Root?

"[WARNING]: CTCenter run for root or sudo user, this is NOT correct...?????"
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT 4.9 LazDaemon bug 9 years 8 months ago #5668

  • Jacek
  • Jacek's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1
Yes. I'm starting CT Center using gksu, and then I always start Typhon IDE from CT.
The compiled app is run from Terminal as a normal user.
My behavior is identical with CT4.8 and CT4.9 - only IDE has changed.

Please Log in or Create an account to join the conversation.

CT 4.9 LazDaemon bug 9 years 8 months ago #5669

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Can you try update to Development CT ver 5.00 for test?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT 4.9 LazDaemon bug 9 years 8 months ago #5670

  • Jacek
  • Jacek's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1
OK.
Should I use Update Manager do download 4910 versions??

Please Log in or Create an account to join the conversation.

CT 4.9 LazDaemon bug 9 years 8 months ago #5671

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Yes please
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

CT 4.9 LazDaemon bug 9 years 8 months ago #5672

  • Jacek
  • Jacek's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1
Unfortunately NO LUCK !
Typhon 5.0 still gives memory leak.

On my first post I attached complete ZIP package of the project. You could try it yourself for better tests.





Please Log in or Create an account to join the conversation.

Last edit: by Jacek.

CT 4.9 LazDaemon bug 9 years 8 months ago #5673

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
We must make more test...
please give us time
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

CT 4.9 LazDaemon bug 9 years 8 months ago #5674

  • Jacek
  • Jacek's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1
Of course - thank you!
In the internal Daemon log there is something strange.
After I hit Ctrl+C to stop the Daemon you see:
"Failed to start daemon TDaemon1 : Access violation"

The LOG from CT4.8 after status: Stopped has another one and last tick with Date and Time - it's from Execute procedure of Daemon.

CT5.0 LOG
msapTemp [2014-07-14 14:00:47.983 Info] Daemon TDaemon1 current status: Start Pending
msapTemp [2014-07-14 14:00:47.983 Info] Daemon TDaemon1 current status: Running
msapTemp [2014-07-14 14:00:48.983 Info] 14-7-14 14:00:48
msapTemp [2014-07-14 14:00:49.984 Info] 14-7-14 14:00:49
msapTemp [2014-07-14 14:00:50.984 Info] 14-7-14 14:00:50
msapTemp [2014-07-14 14:00:51.604 Info] Daemon TDaemon1 current status: Stop Pending
msapTemp [2014-07-14 14:00:51.604 Info] Daemon TDaemon1 current status: Stopped
msapTemp [2014-07-14 14:00:51.604 Info] Failed to start daemon TDaemon1 : Access violation

If you want me to do more tests please post a message - I have a Virtual Machine box for development so I can do anything.

Please Log in or Create an account to join the conversation.

Last edit: by Jacek.

CT 4.9 LazDaemon bug 9 years 8 months ago #5675

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
CT 4.9 has new source for Daemons and better debugger code
my suggestion: more tests
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

CT 4.9 LazDaemon bug 9 years 8 months ago #5681

  • Jacek
  • Jacek's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1
I've made a diff using files: daemonapp.inc and daemonapp.pp and the only difference between CT4.8 and CT5.0Beta are in
one line in file daemonapp.pp on line 136
jk@ubuntu1:~/Pulpit$ diff -a -s daemonapp_48.pp daemonapp_50.pp
136c136
<     Property CheckPoint : DWord;
---
>     Property CheckPoint : DWord read FCheckPoint;

I've searched lazDaemon sources for bugs or something - there are no bugs in this files, besides there are no differences.
All source code seems to be OK.

Please Log in or Create an account to join the conversation.

Last edit: by Jacek.

CT 4.9 LazDaemon bug 9 years 6 months ago #5897

  • Jacek
  • Jacek's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1
Any news about this bug?
Present Lab 5.0 beta version still makes a memory leak.
For development I still must use v4.8

Please Log in or Create an account to join the conversation.

Last edit: by Jacek.

CT 4.9 LazDaemon bug 9 years 6 months ago #5898

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Sir this is FreePascal part of CT
my suggestion is to write a bug report to FPC here
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.
  • Page:
  • 1