Re: [ctwm] [rt.lp.se #132] It seems we have a memory leak or buffer overflow

2007-02-18 Thread Anthony Thyssen
Richard Levitte - VMS Whacker on  wrote...
| anthony Starting Wine/Lotus Notes Test.
| anthony
| anthony Okay.. its popup menus are still appearing 2 to 3 pixels to
| anthony low.
|
| Hmm, that's about the width of your window border, isn't it?  Could it
| be that Wine gets some window information it doesn't expect?
|
| anthony I also just tried the default 'twm' window manager with this
| anthony and it seems to take the exact same problems.
|
| Ah, not our fault then, that should make it OK ;-)
|
| anthony This makes the application usless in ctwm, forcing me to kill
| anthony it and start up a gnome desktop to use lotus notes.
| anthony
| anthony Basically something very wierd is going on, that works fine
| anthony in gnome but not (c)twms.
|
| Have this ever happened with another application that might be a tad
| easier to find on, say, Linux?  Wine and Lotus Notes isn't really my
| plate, I only use Notes at work, in Windows (because that's policy),
| and grudgingly so.
|
Yes I know the feeling. I get around this because I am a UNIX expert,
and don't deal with windows in any way shape or form.

I have also tried using a VNC X server, but that fails as Lotus/Wine
what access to some special X server Extensions.

Look like I'll have to see about running a second X server with a
minimal Gnome, until this can be worked out.  :-(

No, sorry, I have not found any other application that stuffs up in the
same way.

| Anyhow, I'm not going to let this issue stop a release of 3.8.  It's
| time, and when I've released, I can give your problem more focus, if
| that's at all possible.
|
Fair enough.

PS: just so you know..

A ctwm compiled on Fedora Core 6, will fault with 'floating point
exception' if run on a Fedora Core 5.   While if it is compilied on
Fedora Core 5 (or eariler) it will run fine on Fedora Core 6.

This is not the only application that does this, and I think it may be
some library issue (not an X library).

I mention this as you may like to create your RPM release under FC5
rather than FC6.


  Anthony Thyssen ( System Programmer )[EMAIL PROTECTED]
 -
  Carpe Aptenodytes! (Seize the Penguins! Linux forever!)
 -
 Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/



Re: [ctwm] [rt.lp.se #132] It seems we have a memory leak or buffer overflow

2007-02-16 Thread Richard Levitte - VMS Whacker
In message [EMAIL PROTECTED] on Fri, 16 Feb 2007 16:59:30 +1000, Anthony 
Thyssen [EMAIL PROTECTED] said:

anthony Congradulations it is no longer crashing on two f.deletes
anthony from the title bar button.

Thanks.

anthony You can remove the  DEBUG::  lines for offset 'random
anthony position' too.

Ah.  Fixed!  Thanks.

anthonyRandomPlacement on -23+23
anthony 
anthony Though with a negavte offset the first 'random' window
anthony probably should be on the right hand side of the display
anthony rather than the left.

Good idea.  Implemented.

anthony Starting Wine/Lotus Notes Test.
anthony 
anthony Okay.. its popup menus are still appearing 2 to 3 pixels to
anthony low.

Hmm, that's about the width of your window border, isn't it?  Could it
be that Wine gets some window information it doesn't expect?

anthony I also just tried the default 'twm' window manager with this
anthony and it seems to take the exact same problems.

Ah, not our fault then, that should make it OK ;-)

anthony This makes the application usless in ctwm, forcing me to kill
anthony it and start up a gnome desktop to use lotus notes.
anthony 
anthony Basically something very wierd is going on, that works fine
anthony in gnome but not (c)twms.

Have this ever happened with another application that might be a tad
easier to find on, say, Linux?  Wine and Lotus Notes isn't really my
plate, I only use Notes at work, in Windows (because that's policy),
and grudgingly so.

Anyhow, I'm not going to let this issue stop a release of 3.8.  It's
time, and when I've released, I can give your problem more focus, if
that's at all possible.

Cheers,
Richard

-
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte [EMAIL PROTECTED]
http://richard.levitte.org/

When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up.
-- C.S. Lewis



Re: [ctwm] [rt.lp.se #132] It seems we have a memory leak or buffer overflow

2007-02-15 Thread Rhialto
On Thu 15 Feb 2007 at 07:22:16 +0100, Richard Levitte via RT wrote:
   It seems that the TwmWindow field HiliteImage is overwritten with
   some random value.

This is precisely the kind of thing to find with Valgrind (see
http://valgrind.org/ ) but it's only for Linux, and I have NetBSD.
Apart from that, it's an ideal tool :-)

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl-- Cetero censeo authored delendum esse.



Re: [ctwm] [rt.lp.se #132] It seems we have a memory leak or buffer overflow

2007-02-15 Thread Olaf Seibert via RT
On Thu 15 Feb 2007 at 07:22:16 +0100, Richard Levitte via RT wrote:
   It seems that the TwmWindow field HiliteImage is overwritten with
   some random value.

This is precisely the kind of thing to find with Valgrind (see
http://valgrind.org/ ) but it's only for Linux, and I have NetBSD.
Apart from that, it's an ideal tool :-)

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl-- Cetero censeo authored delendum esse.



Re: [ctwm] [rt.lp.se #132] It seems we have a memory leak or buffer overflow

2007-02-15 Thread Anthony Thyssen
Richard Levitte - VMS Whacker on  wrote...
| Anthony, could you be a dear and try that revision out and see if it
| clears your crash?
| 
You are lucky to catch me before I leave for the weekend.  Remember it
is tomorrow here in Australia -- see Signature below ;-)

pulling, updating and rebuilding ctwm download.

Congradulations it is no longer crashing on two f.deletes from the title
bar button.

-

You can remove the  DEBUG::  lines for offset 'random position' too.
   RandomPlacement on -23+23

Though with a negavte offset the first 'random' window probably should
be on the right hand side of the display rather than the left.

-

Starting Wine/Lotus Notes Test.

Okay.. its popup menus are still appearing 2 to 3 pixels to low.

EG: with a mouse button press and release on the standard 'file' menu
the menu appears 2/3 pixels below the button so disappears when you move
the mouse down into the menu.

If you press and hold the mouse button you can move the pointer into the
toolbar menu popup.  So that is okay.

HOWEVER what the real problem is is that if I press a 'menu' (3rd or
right-most) mouse button in the main workspace, then on release the menu
pops up below the mouse position.  But as the pointer is now outside the
menu, it immediateally pops down again.

I have been able to (rarely) press the menu mouse button while moving in
a South-Easternly direction and get the menu to stay up, but it is VERY
rare, takes a lot of movement and some skill not to them overshoot the
menu.  Also make it imposible to popup a menu for a specific icon.


I tryed setting  BorderWidth to 0 -- no effect on the position of
the popup menu.  Throught it might be related to border width, even
though the menus do not have any borders.

I also just tried the default 'twm' window manager with this and it
seems to take the exact same problems.

This makes the application usless in ctwm, forcing me to kill it and
start up a gnome desktop to use lotus notes.

Basically something very wierd is going on, that works fine in gnome but
not (c)twms.


  Anthony Thyssen ( System Programmer )[EMAIL PROTECTED]
 -
Don't worry about the world coming to an end today.
 It's already tomorrow in Australia.
-- Charles Schultz (in the USA of course)
 -
 Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/