GNU bug report logs -
#202
addpm.c: DdeConnect() without timeout
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 202 in the body.
You can then email your comments to 202 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Acknowledgement sent to
"Dhruva Krishnamurthy" <devel <at> member.fsf.org>
:
New bug report received and filed, but not forwarded.
Full text and
rfc822 format available.
Message #5 received at quiet <at> emacsbugs.donarmstrong.com (full text, mbox):
Hello,
I had reported a problem with addpm.exe on W2K. I am building CVS HEAD
using MinGW-GCC and MSVC6 and face the same problem of addpm.exe getting
stuck duing "nmake (gmake) install".
I found that it is getting stuck in DdeConnect(). I am not aware of DDE
mechanism but feel we should have a time out. Since "addpm.exe" is trivia
and does not affect the working of GNU Emacs, the install should progress
even if "addpm.exe" fails.
Also, I noticed "gmake info" failes on MinGW-GCC on W2K. The problem is
with backslash ("\") in makefile.w32-in at target "info:". Changing it
to forward slashes "/", fixes this problem.
with best regards,
dhruva
________________________________________
Dhruva Krishnamurthy
Proud FSF member: #1935
http://schemer.fateback.com/
_______________________________________________
Emacs-devel mailing list
Emacs-devel <at> gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
Acknowledgement sent to
Benjamin Riefenstahl <Benjamin.Riefenstahl <at> epost.de>
:
Extra info received and filed, but not forwarded.
Full text and
rfc822 format available.
Message #10 received at 202-quiet <at> emacsbugs.donarmstrong.com (full text, mbox):
Hi Jason, all,
> "Dhruva Krishnamurthy" <devel <at> member.fsf.org> writes:
>> I found that it is getting stuck in DdeConnect(). I am not aware of
>> DDE mechanism but feel we should have a time out. [...]
Jason Rumney <jasonr <at> gnu.org> writes:
> [...]
> Could it be due to access rights to the Start Menu or registry?
If I may put in some of my own experience with DDE here:
The usual place where DDE connections block is during service
discovery. The DDE mechanism will broadcast a message to find its
peer and it will wait for all applications to answer.
If any thread in any application has a message queue, it gets the
broadcast message regardless whether it's actually doing DDE or not.
Normally, even if the application doesn't handle the message itself,
it will pass it on to the Windows default handler and that will do the
right thing. But if the thread doesn't handle the message at all, the
DDE discovery is stuck at that point.
A message queue gets installed automatically, once a thread calls
GetMessage() for the first time. Some applications do that only
temporarily (e.g. like for a message box) and after that they never
service their queue again. Curiously, the docs for
MsgWaitForMultipleObjects() seem to be the only place in MSDN that
actually mentions this problem. Of course that page just says, "don't
do that."
DDE was designed for the cooperative 16-bit Windows system where such
an application would have brought the system to a complete halt
anyway, so there was no propblem there. In the preemptive 32-bit
Windows environment DDE is not a reliable IPC mechanism.
Consequences: Use a timeout and abort the operation. I'm not sure how
to do that with DDEML. Probably a separate thread would have to be
used to interrupt the call to DdeConnect(). For an installation
program this is probably overkill, though. From the user side, if the
user runs into the problem, he can try to stop all non-essential
processes and call the installation process again.
benny
bug reassigned from package `emacs' to `emacs,w32'.
Request was from
Jason Rumney <jasonr <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Wed, 02 Jul 2008 15:55:04 GMT)
Full text and
rfc822 format available.
bug marked as found in version 22.2.
Request was from
Jason Rumney <jasonr <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 02 Aug 2008 10:00:05 GMT)
Full text and
rfc822 format available.
bug marked as found in version 23.0.60.
Request was from
Jason Rumney <jasonr <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 02 Aug 2008 10:00:05 GMT)
Full text and
rfc822 format available.
Reply sent
to
Jason Rumney <jasonr <at> gnu.org>
:
You have taken responsibility.
(Thu, 15 Jan 2009 15:15:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Dhruva Krishnamurthy" <devel <at> member.fsf.org>
:
bug acknowledged by developer.
(Thu, 15 Jan 2009 15:15:04 GMT)
Full text and
rfc822 format available.
Message #21 received at 202-done <at> emacsbugs.donarmstrong.com (full text, mbox):
I decided to fix this by creating the Shortcuts using the Shell API
where possible, only falling back on the deprecated DDE ProgMan
interface when that fails (which should only happen on copies of Windows
95 and NT 4.0 that have not been updated since 1996).
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Thu, 12 Feb 2009 15:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 187 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.