Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-15 Thread Fred vS
Hello Sieghard.

>But - did you also test it with threaded applications (e.g. the ide)?

Yes, of course MSEide and ideU.

Both work perfectly now on both NetBSD and OpenBSD.

>The data structure is defined in "kernel/mselibc.pas", and the pertaining 
>section is this:

Yes, I added this because the pthread_mutex_t = record is different for NetBSD 
vs OpenBSD/FreeBSD.
I found the definition in NetBSD doc/header.

> Thus, accesses _may_ cause "irritations" to the system, making it behave 
> erratically.

Yes, of course, I am not expert at all in NetBSD, all was done step by step, 
maybe there are errors in definition somewhere.
But, using MSEide and ideU is ok, can edit the forms and widgets, the text, 
compile and debug, like in other OS.

I dont know if it exists some people that uses NetBSD or OpenBSD with graphic, 
anyway, good news for them, MSEgui does it!

Fre;D


De : Sieghard via mseide-msegui-talk 
Envoyé : mardi 15 août 2023 23:10
À : mseide-msegui-talk@lists.sourceforge.net 

Cc : Sieghard 
Objet : Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze 
if using 2xclick.

Hello Fred,

you wrote on Tue, 15 Aug 2023 01:39:42 +:

> Yp, I get it.
>
> In mseapplication.pas,
> constructor tcustomapplication.create(aowner: tcomponent);
>
> At the end, line 1248 there is a "lock" and, strangely for NetBSD and
> OpenBSD it blocks the application when 2x click on the binary from a
> window manager.
>
> This fix it:
>
>  {$if not defined(openbsd) and not defined(netbsd)}
>  lock;
>  {$endif}
>
> Tested deeply on both openbsd and netbsd, all is working perfectly, even

So this nullifies my suspicion about a possibly missingcontrolling terminal.

But - did you also test it with threaded applications (e.g. the ide)?
As I see it, this "lock" uses a system mutex data structure which is used
for thread interlocking and such things to avoid mixed-up data accesses and
race conditions, even possible dead locks. If it is missing or not properly
initialized, bad things might happen, especially in situations where that
is very difficult to track down...

The data structure is defined in "kernel/mselibc.pas", and the pertaining
section is this:

const
 __SIZEOF_PTHREAD_MUTEX_T = {$ifdef CPU64}40{$else}24{$endif};
type
  Ppthread_mutex_t = ^pthread_mutex_t;

{$ifndef netbsd}
  pthread_mutex_t = array[0..__SIZEOF_PTHREAD_MUTEX_T-1] of byte;
{$else}
  pthread_mutex_t = record
 ptm_magic : dword;
 ptm_errorcheck: char;
 ptm_pad: array[0..2] of char;
 ptm_interlock: char;
 ptm_pad2: array[0..2] of char;
 ptm_owner: pointer;
 ptm_waiter: pointer;
 ptm_recursed: dword;
 ptm_spare2: pointer;
  end;
{$endif}

Well - for (at least) netbsd this defines a record of size _28_ or 40 bytes
in size, PROVIDED the mutex record is byte-aligned in netbsd. If that
was NOT the case, this definition might be out of order and possibly too
small in size, depending on the declaration. Thus, accesses _may_ cause
"irritations" to the system, making it behave erratically.

Sorry, I don't have any access to a netbsd system right now (would have to
find one and install it in a VM), so I cannot test whether this bears any
relevance to the problem. I only suspect that it might be able to cause
problems in some situations, and it should be expected to do so for use on
older, 32-bit, machines.
Just warning.
(And, you know, I was bitten by a well-meant "enhancement" to the db stuff
myself. I'm going to build a pertaining sample application now to test this
myself, and I do have some use for one anyway.)

--
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---




___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-15 Thread Sieghard via mseide-msegui-talk
Hello Fred,

you wrote on Tue, 15 Aug 2023 01:39:42 +:

> Yp, I get it.
> 
> In mseapplication.pas,
> constructor tcustomapplication.create(aowner: tcomponent);
> 
> At the end, line 1248 there is a "lock" and, strangely for NetBSD and
> OpenBSD it blocks the application when 2x click on the binary from a
> window manager.
> 
> This fix it:
> 
>  {$if not defined(openbsd) and not defined(netbsd)}
>  lock;
>  {$endif}
> 
> Tested deeply on both openbsd and netbsd, all is working perfectly, even

So this nullifies my suspicion about a possibly missingcontrolling terminal.

But - did you also test it with threaded applications (e.g. the ide)?
As I see it, this "lock" uses a system mutex data structure which is used
for thread interlocking and such things to avoid mixed-up data accesses and
race conditions, even possible dead locks. If it is missing or not properly
initialized, bad things might happen, especially in situations where that
is very difficult to track down...

The data structure is defined in "kernel/mselibc.pas", and the pertaining
section is this:

const
 __SIZEOF_PTHREAD_MUTEX_T = {$ifdef CPU64}40{$else}24{$endif};
type
  Ppthread_mutex_t = ^pthread_mutex_t;

{$ifndef netbsd}  
  pthread_mutex_t = array[0..__SIZEOF_PTHREAD_MUTEX_T-1] of byte;
{$else}
  pthread_mutex_t = record
 ptm_magic : dword;
 ptm_errorcheck: char;
 ptm_pad: array[0..2] of char;
 ptm_interlock: char;
 ptm_pad2: array[0..2] of char;
 ptm_owner: pointer;
 ptm_waiter: pointer;
 ptm_recursed: dword;
 ptm_spare2: pointer;
  end;
{$endif}

Well - for (at least) netbsd this defines a record of size _28_ or 40 bytes
in size, PROVIDED the mutex record is byte-aligned in netbsd. If that
was NOT the case, this definition might be out of order and possibly too
small in size, depending on the declaration. Thus, accesses _may_ cause
"irritations" to the system, making it behave erratically.

Sorry, I don't have any access to a netbsd system right now (would have to
find one and install it in a VM), so I cannot test whether this bears any
relevance to the problem. I only suspect that it might be able to cause
problems in some situations, and it should be expected to do so for use on
older, 32-bit, machines.
Just warning.
(And, you know, I was bitten by a well-meant "enhancement" to the db stuff
myself. I'm going to build a pertaining sample application now to test this
myself, and I do have some use for one anyway.)

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---




___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-15 Thread vasi vasi
I immediately made a git pull when you said you solved it and posted also
in Lazarus forums :p

On Tue, Aug 15, 2023 at 9:23 PM Fred vS  wrote:

> Hello Vasi.
>
> Thanks for the thanks!
>
> I am very happy that this boring problem is fixed.
>
> I updated the binary release of mseide for NetBSD and OpenBSD:
> https://github.com/mse-org/mseide-msegui/releases/tag/5.8.0
>
> So you can run MSEide with 2xclick now (but to compile things you need
> last commit of msegui).
>
> Fre;D
> --
> *De :* vasi vasi 
> *Envoyé :* mardi 15 août 2023 11:01
> *À :* General list for MSEide+MSEgui <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> Thank you very much Fred, that is awesome! I'm not able to test it right
> away on NetBSD, but when I'll do it, I  will let you know (I have to set a
> virtual machine on my wife's laptop as I had to install the linux back).
>
> On Tue, Aug 15, 2023 at 4:40 AM Fred vS  wrote:
>
> Yp, I get it.
>
> In mseapplication.pas,
> constructor tcustomapplication.create(aowner: tcomponent);
>
> At the end, line 1248 there is a "lock" and, strangely for NetBSD and
> OpenBSD it blocks the application when 2x click on the binary from a window
> manager.
>
> This fix it:
>
>  {$if not defined(openbsd) and not defined(netbsd)}
>  lock;
>  {$endif}
>
> Tested deeply on both openbsd and netbsd, all is working perfectly, even
> when running using 2x click.
> To be totally honnest it is random that helps me because I was in the dark.
> Also, I dont understand the need of that "lock" there (but it is still
> there for all other os).
>
> Anyway, it seems to works ok now.
>
> Of course, any test is very welcome.
>
> Fre;D
>
> --
> *De :* vasi vasi 
> *Envoyé :* dimanche 13 août 2023 20:07
> *À :* General list for MSEide+MSEgui <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html
>
> On Sun, Aug 13, 2023 at 9:02 PM vasi vasi  wrote:
>
> Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf
>
> On Sun, Aug 13, 2023 at 8:29 PM Fred vS  wrote:
>
> Re hello.
>
> >... using gdb does not help, there is no error...
>
> To be more precise, gdb does not help because gdb is called via a terminal
> and in that case, the msegui apps run perfectly.
>
> --
> *De :* Fred vS 
> *Envoyé :* dimanche 13 août 2023 19:20
> *À :* mseide-msegui-talk@lists.sourceforge.net <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> Hello everybody.
>
> I love the idea of OpenBSD to give, for each new release, a song!
> https://www.openbsd.org/lyrics.html
>
> So I decided to continue (a few) the combat to have msegui perfectly
> compatible with OpenBSD and NetBSD,
>
> At the moment, all seems to compile+run perfectly, tried with mseide
> himself + some other complicated apps, it run.
> But there is a bemol, the apps run ok only if launched from a terminal.
> If 2xclick on the binary, the app freeze at init and the cpu is used 100%
> without decrease, the app must be killed.
>
> Does it exist a way to debug this because using gdb does not help, there
> is no error, only like a perpetual loop?
> What tool can I use to see what cause that loop and where is that loop?
>
> Any ideas are welcome.
>
> Fre;D
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>
>
>
> --
> Vasi
>
>
>
> --
> Vasi
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>
>
>
> --
> Vasi
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>


-- 
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-15 Thread Fred vS
Hello Vasi.

Thanks for the thanks!

I am very happy that this boring problem is fixed.

I updated the binary release of mseide for NetBSD and OpenBSD:
https://github.com/mse-org/mseide-msegui/releases/tag/5.8.0

So you can run MSEide with 2xclick now (but to compile things you need last 
commit of msegui).

Fre;D

De : vasi vasi 
Envoyé : mardi 15 août 2023 11:01
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze 
if using 2xclick.

Thank you very much Fred, that is awesome! I'm not able to test it right away 
on NetBSD, but when I'll do it, I  will let you know (I have to set a virtual 
machine on my wife's laptop as I had to install the linux back).

On Tue, Aug 15, 2023 at 4:40 AM Fred vS 
mailto:fi...@hotmail.com>> wrote:
Yp, I get it.

In mseapplication.pas,
constructor tcustomapplication.create(aowner: tcomponent);

At the end, line 1248 there is a "lock" and, strangely for NetBSD and OpenBSD 
it blocks the application when 2x click on the binary from a window manager.

This fix it:

 {$if not defined(openbsd) and not defined(netbsd)}
 lock;
 {$endif}

Tested deeply on both openbsd and netbsd, all is working perfectly, even when 
running using 2x click.
To be totally honnest it is random that helps me because I was in the dark.
Also, I dont understand the need of that "lock" there (but it is still there 
for all other os).

Anyway, it seems to works ok now.

Of course, any test is very welcome.

Fre;D


De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : dimanche 13 août 2023 20:07
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze 
if using 2xclick.

https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html

On Sun, Aug 13, 2023 at 9:02 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf

On Sun, Aug 13, 2023 at 8:29 PM Fred vS 
mailto:fi...@hotmail.com>> wrote:
Re hello.

>... using gdb does not help, there is no error...

To be more precise, gdb does not help because gdb is called via a terminal and 
in that case, the msegui apps run perfectly.


De : Fred vS mailto:fi...@hotmail.com>>
Envoyé : dimanche 13 août 2023 19:20
À : 
mseide-msegui-talk@lists.sourceforge.net
 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if 
using 2xclick.

Hello everybody.

I love the idea of OpenBSD to give, for each new release, a song!
https://www.openbsd.org/lyrics.html

So I decided to continue (a few) the combat to have msegui perfectly compatible 
with OpenBSD and NetBSD,

At the moment, all seems to compile+run perfectly, tried with mseide himself + 
some other complicated apps, it run.
But there is a bemol, the apps run ok only if launched from a terminal.
If 2xclick on the binary, the app freeze at init and the cpu is used 100% 
without decrease, the app must be killed.

Does it exist a way to debug this because using gdb does not help, there is no 
error, only like a perpetual loop?
What tool can I use to see what cause that loop and where is that loop?

Any ideas are welcome.

Fre;D
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


--
Vasi


--
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


--
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-15 Thread vasi vasi
Thank you very much Fred, that is awesome! I'm not able to test it right
away on NetBSD, but when I'll do it, I  will let you know (I have to set a
virtual machine on my wife's laptop as I had to install the linux back).

On Tue, Aug 15, 2023 at 4:40 AM Fred vS  wrote:

> Yp, I get it.
>
> In mseapplication.pas,
> constructor tcustomapplication.create(aowner: tcomponent);
>
> At the end, line 1248 there is a "lock" and, strangely for NetBSD and
> OpenBSD it blocks the application when 2x click on the binary from a window
> manager.
>
> This fix it:
>
>  {$if not defined(openbsd) and not defined(netbsd)}
>  lock;
>  {$endif}
>
> Tested deeply on both openbsd and netbsd, all is working perfectly, even
> when running using 2x click.
> To be totally honnest it is random that helps me because I was in the dark.
> Also, I dont understand the need of that "lock" there (but it is still
> there for all other os).
>
> Anyway, it seems to works ok now.
>
> Of course, any test is very welcome.
>
> Fre;D
>
> --
> *De :* vasi vasi 
> *Envoyé :* dimanche 13 août 2023 20:07
> *À :* General list for MSEide+MSEgui <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html
>
> On Sun, Aug 13, 2023 at 9:02 PM vasi vasi  wrote:
>
> Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf
>
> On Sun, Aug 13, 2023 at 8:29 PM Fred vS  wrote:
>
> Re hello.
>
> >... using gdb does not help, there is no error...
>
> To be more precise, gdb does not help because gdb is called via a terminal
> and in that case, the msegui apps run perfectly.
>
> --
> *De :* Fred vS 
> *Envoyé :* dimanche 13 août 2023 19:20
> *À :* mseide-msegui-talk@lists.sourceforge.net <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> Hello everybody.
>
> I love the idea of OpenBSD to give, for each new release, a song!
> https://www.openbsd.org/lyrics.html
>
> So I decided to continue (a few) the combat to have msegui perfectly
> compatible with OpenBSD and NetBSD,
>
> At the moment, all seems to compile+run perfectly, tried with mseide
> himself + some other complicated apps, it run.
> But there is a bemol, the apps run ok only if launched from a terminal.
> If 2xclick on the binary, the app freeze at init and the cpu is used 100%
> without decrease, the app must be killed.
>
> Does it exist a way to debug this because using gdb does not help, there
> is no error, only like a perpetual loop?
> What tool can I use to see what cause that loop and where is that loop?
>
> Any ideas are welcome.
>
> Fre;D
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>
>
>
> --
> Vasi
>
>
>
> --
> Vasi
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>


-- 
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-14 Thread Fred vS
Yp, I get it.

In mseapplication.pas,
constructor tcustomapplication.create(aowner: tcomponent);

At the end, line 1248 there is a "lock" and, strangely for NetBSD and OpenBSD 
it blocks the application when 2x click on the binary from a window manager.

This fix it:

 {$if not defined(openbsd) and not defined(netbsd)}
 lock;
 {$endif}

Tested deeply on both openbsd and netbsd, all is working perfectly, even when 
running using 2x click.
To be totally honnest it is random that helps me because I was in the dark.
Also, I dont understand the need of that "lock" there (but it is still there 
for all other os).

Anyway, it seems to works ok now.

Of course, any test is very welcome.

Fre;D


De : vasi vasi 
Envoyé : dimanche 13 août 2023 20:07
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze 
if using 2xclick.

https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html

On Sun, Aug 13, 2023 at 9:02 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf

On Sun, Aug 13, 2023 at 8:29 PM Fred vS 
mailto:fi...@hotmail.com>> wrote:
Re hello.

>... using gdb does not help, there is no error...

To be more precise, gdb does not help because gdb is called via a terminal and 
in that case, the msegui apps run perfectly.


De : Fred vS mailto:fi...@hotmail.com>>
Envoyé : dimanche 13 août 2023 19:20
À : 
mseide-msegui-talk@lists.sourceforge.net
 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if 
using 2xclick.

Hello everybody.

I love the idea of OpenBSD to give, for each new release, a song!
https://www.openbsd.org/lyrics.html

So I decided to continue (a few) the combat to have msegui perfectly compatible 
with OpenBSD and NetBSD,

At the moment, all seems to compile+run perfectly, tried with mseide himself + 
some other complicated apps, it run.
But there is a bemol, the apps run ok only if launched from a terminal.
If 2xclick on the binary, the app freeze at init and the cpu is used 100% 
without decrease, the app must be killed.

Does it exist a way to debug this because using gdb does not help, there is no 
error, only like a perpetual loop?
What tool can I use to see what cause that loop and where is that loop?

Any ideas are welcome.

Fre;D
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


--
Vasi


--
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-13 Thread Fred vS
Thanks Vasi.

I will study this (asap).

De : vasi vasi 
Envoyé : dimanche 13 août 2023 23:16
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze 
if using 2xclick.

For Linux, I found this... maybe there are similar tools in BSD...
https://superuser.com/questions/222912/how-can-i-log-all-process-launches-in-linux

On Mon, Aug 14, 2023 at 12:05 AM vasi vasi 
mailto:funl...@gmail.com>> wrote:
I am clueless :(
A few things to try:
- try to install Openbox (WindowMaker, Blackbox) and run it there from a menu 
option, and from another file manager...

On Sun, Aug 13, 2023 at 11:20 PM Fred vS 
mailto:fi...@hotmail.com>> wrote:

Hello Vasi.

Thanks for the info but if a msegui is launched via a debugger there are no 
problem, it is like launching via a terminal.

The problem is when lauching with 2xclick on the binary.

So maybe a other debug-program should be run before to 2xclick on the binary 
and analyse what appends with the msegui-freezed app.

But maybe it is what you want to show me, if so please explain what I should do.

Fre;D

De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : dimanche 13 août 2023 20:07
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze 
if using 2xclick.

https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html

On Sun, Aug 13, 2023 at 9:02 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf

On Sun, Aug 13, 2023 at 8:29 PM Fred vS 
mailto:fi...@hotmail.com>> wrote:
Re hello.

>... using gdb does not help, there is no error...

To be more precise, gdb does not help because gdb is called via a terminal and 
in that case, the msegui apps run perfectly.


De : Fred vS mailto:fi...@hotmail.com>>
Envoyé : dimanche 13 août 2023 19:20
À : 
mseide-msegui-talk@lists.sourceforge.net
 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if 
using 2xclick.

Hello everybody.

I love the idea of OpenBSD to give, for each new release, a song!
https://www.openbsd.org/lyrics.html

So I decided to continue (a few) the combat to have msegui perfectly compatible 
with OpenBSD and NetBSD,

At the moment, all seems to compile+run perfectly, tried with mseide himself + 
some other complicated apps, it run.
But there is a bemol, the apps run ok only if launched from a terminal.
If 2xclick on the binary, the app freeze at init and the cpu is used 100% 
without decrease, the app must be killed.

Does it exist a way to debug this because using gdb does not help, there is no 
error, only like a perpetual loop?
What tool can I use to see what cause that loop and where is that loop?

Any ideas are welcome.

Fre;D
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


--
Vasi


--
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


--
Vasi


--
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-13 Thread vasi vasi
For Linux, I found this... maybe there are similar tools in BSD...
https://superuser.com/questions/222912/how-can-i-log-all-process-launches-in-linux

On Mon, Aug 14, 2023 at 12:05 AM vasi vasi  wrote:

> I am clueless :(
> A few things to try:
> - try to install Openbox (WindowMaker, Blackbox) and run it there from a
> menu option, and from another file manager...
>
> On Sun, Aug 13, 2023 at 11:20 PM Fred vS  wrote:
>
>>
>> Hello Vasi.
>>
>> Thanks for the info but if a msegui is launched via a debugger there are
>> no problem, it is like launching via a terminal.
>>
>> The problem is when lauching with 2xclick on the binary.
>>
>> So maybe a other debug-program should be run before to 2xclick on the
>> binary and analyse what appends with the msegui-freezed app.
>>
>> But maybe it is what you want to show me, if so please explain what I
>> should do.
>>
>> Fre;D
>> --
>> *De :* vasi vasi 
>> *Envoyé :* dimanche 13 août 2023 20:07
>> *À :* General list for MSEide+MSEgui <
>> mseide-msegui-talk@lists.sourceforge.net>
>> *Objet :* Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
>> freeze if using 2xclick.
>>
>> https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html
>>
>> On Sun, Aug 13, 2023 at 9:02 PM vasi vasi  wrote:
>>
>> Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf
>>
>> On Sun, Aug 13, 2023 at 8:29 PM Fred vS  wrote:
>>
>> Re hello.
>>
>> >... using gdb does not help, there is no error...
>>
>> To be more precise, gdb does not help because gdb is called via a
>> terminal and in that case, the msegui apps run perfectly.
>>
>> --
>> *De :* Fred vS 
>> *Envoyé :* dimanche 13 août 2023 19:20
>> *À :* mseide-msegui-talk@lists.sourceforge.net <
>> mseide-msegui-talk@lists.sourceforge.net>
>> *Objet :* [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
>> freeze if using 2xclick.
>>
>> Hello everybody.
>>
>> I love the idea of OpenBSD to give, for each new release, a song!
>> https://www.openbsd.org/lyrics.html
>>
>> So I decided to continue (a few) the combat to have msegui perfectly
>> compatible with OpenBSD and NetBSD,
>>
>> At the moment, all seems to compile+run perfectly, tried with mseide
>> himself + some other complicated apps, it run.
>> But there is a bemol, the apps run ok only if launched from a terminal.
>> If 2xclick on the binary, the app freeze at init and the cpu is used 100%
>> without decrease, the app must be killed.
>>
>> Does it exist a way to debug this because using gdb does not help, there
>> is no error, only like a perpetual loop?
>> What tool can I use to see what cause that loop and where is that loop?
>>
>> Any ideas are welcome.
>>
>> Fre;D
>> ___
>> mseide-msegui-talk mailing list
>> mseide-msegui-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>>
>>
>>
>> --
>> Vasi
>>
>>
>>
>> --
>> Vasi
>> ___
>> mseide-msegui-talk mailing list
>> mseide-msegui-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>>
>
>
> --
> Vasi
>


-- 
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-13 Thread vasi vasi
I am clueless :(
A few things to try:
- try to install Openbox (WindowMaker, Blackbox) and run it there from a
menu option, and from another file manager...

On Sun, Aug 13, 2023 at 11:20 PM Fred vS  wrote:

>
> Hello Vasi.
>
> Thanks for the info but if a msegui is launched via a debugger there are
> no problem, it is like launching via a terminal.
>
> The problem is when lauching with 2xclick on the binary.
>
> So maybe a other debug-program should be run before to 2xclick on the
> binary and analyse what appends with the msegui-freezed app.
>
> But maybe it is what you want to show me, if so please explain what I
> should do.
>
> Fre;D
> --
> *De :* vasi vasi 
> *Envoyé :* dimanche 13 août 2023 20:07
> *À :* General list for MSEide+MSEgui <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html
>
> On Sun, Aug 13, 2023 at 9:02 PM vasi vasi  wrote:
>
> Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf
>
> On Sun, Aug 13, 2023 at 8:29 PM Fred vS  wrote:
>
> Re hello.
>
> >... using gdb does not help, there is no error...
>
> To be more precise, gdb does not help because gdb is called via a terminal
> and in that case, the msegui apps run perfectly.
>
> --
> *De :* Fred vS 
> *Envoyé :* dimanche 13 août 2023 19:20
> *À :* mseide-msegui-talk@lists.sourceforge.net <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> Hello everybody.
>
> I love the idea of OpenBSD to give, for each new release, a song!
> https://www.openbsd.org/lyrics.html
>
> So I decided to continue (a few) the combat to have msegui perfectly
> compatible with OpenBSD and NetBSD,
>
> At the moment, all seems to compile+run perfectly, tried with mseide
> himself + some other complicated apps, it run.
> But there is a bemol, the apps run ok only if launched from a terminal.
> If 2xclick on the binary, the app freeze at init and the cpu is used 100%
> without decrease, the app must be killed.
>
> Does it exist a way to debug this because using gdb does not help, there
> is no error, only like a perpetual loop?
> What tool can I use to see what cause that loop and where is that loop?
>
> Any ideas are welcome.
>
> Fre;D
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>
>
>
> --
> Vasi
>
>
>
> --
> Vasi
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>


-- 
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-13 Thread Fred vS

Hello Vasi.

Thanks for the info but if a msegui is launched via a debugger there are no 
problem, it is like launching via a terminal.

The problem is when lauching with 2xclick on the binary.

So maybe a other debug-program should be run before to 2xclick on the binary 
and analyse what appends with the msegui-freezed app.

But maybe it is what you want to show me, if so please explain what I should do.

Fre;D

De : vasi vasi 
Envoyé : dimanche 13 août 2023 20:07
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze 
if using 2xclick.

https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html

On Sun, Aug 13, 2023 at 9:02 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf

On Sun, Aug 13, 2023 at 8:29 PM Fred vS 
mailto:fi...@hotmail.com>> wrote:
Re hello.

>... using gdb does not help, there is no error...

To be more precise, gdb does not help because gdb is called via a terminal and 
in that case, the msegui apps run perfectly.


De : Fred vS mailto:fi...@hotmail.com>>
Envoyé : dimanche 13 août 2023 19:20
À : 
mseide-msegui-talk@lists.sourceforge.net
 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if 
using 2xclick.

Hello everybody.

I love the idea of OpenBSD to give, for each new release, a song!
https://www.openbsd.org/lyrics.html

So I decided to continue (a few) the combat to have msegui perfectly compatible 
with OpenBSD and NetBSD,

At the moment, all seems to compile+run perfectly, tried with mseide himself + 
some other complicated apps, it run.
But there is a bemol, the apps run ok only if launched from a terminal.
If 2xclick on the binary, the app freeze at init and the cpu is used 100% 
without decrease, the app must be killed.

Does it exist a way to debug this because using gdb does not help, there is no 
error, only like a perpetual loop?
What tool can I use to see what cause that loop and where is that loop?

Any ideas are welcome.

Fre;D
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


--
Vasi


--
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-13 Thread vasi vasi
https://begriffs.com/posts/2022-07-17-debugging-gdb-ddd.html

On Sun, Aug 13, 2023 at 9:02 PM vasi vasi  wrote:

> Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf
>
> On Sun, Aug 13, 2023 at 8:29 PM Fred vS  wrote:
>
>> Re hello.
>>
>> >... using gdb does not help, there is no error...
>>
>> To be more precise, gdb does not help because gdb is called via a
>> terminal and in that case, the msegui apps run perfectly.
>>
>> --
>> *De :* Fred vS 
>> *Envoyé :* dimanche 13 août 2023 19:20
>> *À :* mseide-msegui-talk@lists.sourceforge.net <
>> mseide-msegui-talk@lists.sourceforge.net>
>> *Objet :* [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
>> freeze if using 2xclick.
>>
>> Hello everybody.
>>
>> I love the idea of OpenBSD to give, for each new release, a song!
>> https://www.openbsd.org/lyrics.html
>>
>> So I decided to continue (a few) the combat to have msegui perfectly
>> compatible with OpenBSD and NetBSD,
>>
>> At the moment, all seems to compile+run perfectly, tried with mseide
>> himself + some other complicated apps, it run.
>> But there is a bemol, the apps run ok only if launched from a terminal.
>> If 2xclick on the binary, the app freeze at init and the cpu is used 100%
>> without decrease, the app must be killed.
>>
>> Does it exist a way to debug this because using gdb does not help, there
>> is no error, only like a perpetual loop?
>> What tool can I use to see what cause that loop and where is that loop?
>>
>> Any ideas are welcome.
>>
>> Fre;D
>> ___
>> mseide-msegui-talk mailing list
>> mseide-msegui-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>>
>
>
> --
> Vasi
>


-- 
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-13 Thread vasi vasi
Might this be a solution? https://www.gnu.org/s/ddd/manual/pdf/ddd.pdf

On Sun, Aug 13, 2023 at 8:29 PM Fred vS  wrote:

> Re hello.
>
> >... using gdb does not help, there is no error...
>
> To be more precise, gdb does not help because gdb is called via a terminal
> and in that case, the msegui apps run perfectly.
>
> --
> *De :* Fred vS 
> *Envoyé :* dimanche 13 août 2023 19:20
> *À :* mseide-msegui-talk@lists.sourceforge.net <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD
> freeze if using 2xclick.
>
> Hello everybody.
>
> I love the idea of OpenBSD to give, for each new release, a song!
> https://www.openbsd.org/lyrics.html
>
> So I decided to continue (a few) the combat to have msegui perfectly
> compatible with OpenBSD and NetBSD,
>
> At the moment, all seems to compile+run perfectly, tried with mseide
> himself + some other complicated apps, it run.
> But there is a bemol, the apps run ok only if launched from a terminal.
> If 2xclick on the binary, the app freeze at init and the cpu is used 100%
> without decrease, the app must be killed.
>
> Does it exist a way to debug this because using gdb does not help, there
> is no error, only like a perpetual loop?
> What tool can I use to see what cause that loop and where is that loop?
>
> Any ideas are welcome.
>
> Fre;D
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>


-- 
Vasi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if using 2xclick.

2023-08-13 Thread Fred vS
Re hello.

>... using gdb does not help, there is no error...

To be more precise, gdb does not help because gdb is called via a terminal and 
in that case, the msegui apps run perfectly.


De : Fred vS 
Envoyé : dimanche 13 août 2023 19:20
À : mseide-msegui-talk@lists.sourceforge.net 

Objet : [MSEide-MSEgui-talk] Run msegui apps on NetBSD and OpenBSD freeze if 
using 2xclick.

Hello everybody.

I love the idea of OpenBSD to give, for each new release, a song!
https://www.openbsd.org/lyrics.html

So I decided to continue (a few) the combat to have msegui perfectly compatible 
with OpenBSD and NetBSD,

At the moment, all seems to compile+run perfectly, tried with mseide himself + 
some other complicated apps, it run.
But there is a bemol, the apps run ok only if launched from a terminal.
If 2xclick on the binary, the app freeze at init and the cpu is used 100% 
without decrease, the app must be killed.

Does it exist a way to debug this because using gdb does not help, there is no 
error, only like a perpetual loop?
What tool can I use to see what cause that loop and where is that loop?

Any ideas are welcome.

Fre;D
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk