GNU bug report logs - #6413
What does ntdll!DbgUiConnectToDbg mean? (on w32)

Previous Next

Packages: w32, emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Sun, 13 Jun 2010 16:59:01 UTC

Severity: normal

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6413 in the body.
You can then email your comments to 6413 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6413; Package emacs. (Sun, 13 Jun 2010 16:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lennart Borgman <lennart.borgman <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 13 Jun 2010 16:59:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Emacs Bugs <bug-gnu-emacs <at> gnu.org>
Subject: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Sun, 13 Jun 2010 18:58:25 +0200
I just got this from the gdb running Emacs:

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 372.0xcec]
0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll
(gdb) bt
#0  0x7c90120f in ntdll!DbgUiConnectToDbg ()
   from C:\WINDOWS\system32\ntdll.dll
#1  0x7c951e40 in ntdll!KiIntSystemCall () from C:\WINDOWS\system32\ntdll.dll
#2  0x00000005 in ?? ()
#3  0x00000004 in ?? ()
#4  0x00000001 in ?? ()
#5  0x215affd0 in ?? ()
#6  0x00000000 in ?? ()
(gdb) c

Is there anything I can do to look into it further? I can't think of
anything I did in Emacs this time that triggered this so I am a bit
lost.


As I previously mentioned I have added a macro to test system calls
return values and I wonder if this somehow is involved here or if this
is just one of these "doctor watson-crashes" I now and then see, as
seen through gdb.

The macro I added just looks like

  #define W32ASSERT(TEST, WHERE) if (!TEST) DebPrint (("%s: %s\n",
WHERE, w32_strerror(0)))

In the code I write this as something like

  W32ASSERT (0, "w32_SetWindowPos_from_main_thread.PostMessage");

or with 0 replaced by a variable.

This does not look problematic too me, but I wonder if DepPrint can be
called anywhere. Is there some problem calling it inside a BLOCK_INPUT
.. UNBLOCK_INPUT?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6413; Package emacs. (Sun, 13 Jun 2010 18:11:02 GMT) Full text and rfc822 format available.

Message #8 received at 6413 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6413 <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Sun, 13 Jun 2010 21:10:34 +0300
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Sun, 13 Jun 2010 18:58:25 +0200
> Cc: 
> 
> I just got this from the gdb running Emacs:
> 
> Program received signal SIGTRAP, Trace/breakpoint trap.
> [Switching to Thread 372.0xcec]
> 0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll
> (gdb) bt
> #0  0x7c90120f in ntdll!DbgUiConnectToDbg ()
>    from C:\WINDOWS\system32\ntdll.dll
> #1  0x7c951e40 in ntdll!KiIntSystemCall () from C:\WINDOWS\system32\ntdll.dll
> #2  0x00000005 in ?? ()
> #3  0x00000004 in ?? ()
> #4  0x00000001 in ?? ()
> #5  0x215affd0 in ?? ()
> #6  0x00000000 in ?? ()
> (gdb) c
> 
> Is there anything I can do to look into it further?

Try "info threads".  I'm guessing you will see a couple more threads,
in which case switch to each one of them and type "bt" to see their
call-stack.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6413; Package emacs,w32. (Sun, 03 Jul 2011 18:51:02 GMT) Full text and rfc822 format available.

Message #11 received at 6413 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6413 <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Sun, 3 Jul 2011 20:49:43 +0200
On Sun, Jun 13, 2010 at 18:58, Lennart Borgman
<lennart.borgman <at> gmail.com> wrote:

> Is there anything I can do to look into it further? I can't think of
> anything I did in Emacs this time that triggered this so I am a bit
> lost.

Is this bug repeatable, or can we close it?

    Juanma




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6413; Package emacs,w32. (Sun, 03 Jul 2011 22:40:04 GMT) Full text and rfc822 format available.

Message #14 received at 6413 <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 6413 <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Mon, 4 Jul 2011 00:39:20 +0200
On Sun, Jul 3, 2011 at 20:49, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> On Sun, Jun 13, 2010 at 18:58, Lennart Borgman
> <lennart.borgman <at> gmail.com> wrote:
>
>> Is there anything I can do to look into it further? I can't think of
>> anything I did in Emacs this time that triggered this so I am a bit
>> lost.
>
> Is this bug repeatable, or can we close it?

I saw some more of this, but at the moment I have no setup to repeat it.

You might look at the macro. I would be glad for some comments on it
since I rarely right code like that.




Reply sent to Juanma Barranquero <lekktu <at> gmail.com>:
You have taken responsibility. (Sun, 03 Jul 2011 22:56:02 GMT) Full text and rfc822 format available.

Notification sent to Lennart Borgman <lennart.borgman <at> gmail.com>:
bug acknowledged by developer. (Sun, 03 Jul 2011 22:56:02 GMT) Full text and rfc822 format available.

Message #19 received at 6413-done <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6413-done <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Mon, 4 Jul 2011 00:54:18 +0200
On Mon, Jul 4, 2011 at 00:39, Lennart Borgman <lennart.borgman <at> gmail.com> wrote:

> I saw some more of this, but at the moment I have no setup to repeat it.

You also didn't follow Eli's suggestion to try to show backtraces from
other threads, or you didn't report it.

I'm closing this bug. Please reopen it if you have additional info.

    Juanma




Message #20 received at 6413-done <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 6413-done <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Mon, 4 Jul 2011 00:59:16 +0200
On Mon, Jul 4, 2011 at 00:54, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> On Mon, Jul 4, 2011 at 00:39, Lennart Borgman <lennart.borgman <at> gmail.com> wrote:
>
>> I saw some more of this, but at the moment I have no setup to repeat it.
>
> You also didn't follow Eli's suggestion to try to show backtraces from
> other threads, or you didn't report it.

I did not have a chance. It might be that I have fixed this in my
patched version where I did the change I suggested.

> I'm closing this bug. Please reopen it if you have additional info.

You may consider the above information additional info. (But there
might be some bogus things in my macro that actual is involved.)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6413; Package emacs,w32. (Sun, 03 Jul 2011 23:07:01 GMT) Full text and rfc822 format available.

Message #23 received at 6413 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6413 <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Mon, 4 Jul 2011 01:05:20 +0200
On Mon, Jul 4, 2011 at 00:59, Lennart Borgman <lennart.borgman <at> gmail.com> wrote:

> You may consider the above information additional info.

No, additional info is something that helps to track or fix a bug, and
I still haven't seen any bug in this report.

    Juanma




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6413; Package emacs,w32. (Sun, 03 Jul 2011 23:20:03 GMT) Full text and rfc822 format available.

Message #26 received at 6413 <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 6413 <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Mon, 4 Jul 2011 01:19:26 +0200
On Mon, Jul 4, 2011 at 01:05, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> On Mon, Jul 4, 2011 at 00:59, Lennart Borgman <lennart.borgman <at> gmail.com> wrote:
>
>> You may consider the above information additional info.
>
> No, additional info is something that helps to track or fix a bug, and
> I still haven't seen any bug in this report.

Hm, that was what I gave above.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6413; Package emacs,w32. (Sun, 03 Jul 2011 23:31:03 GMT) Full text and rfc822 format available.

Message #29 received at 6413 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6413 <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Mon, 4 Jul 2011 01:29:48 +0200
On Mon, Jul 4, 2011 at 01:19, Lennart Borgman <lennart.borgman <at> gmail.com> wrote:

> Hm, that was what I gave above.

Sorry, you're right, this bug report is really about a bug, or at
least a crash. I was mixing bug reports :-)

But still, you have said: "It might be that I have fixed this in my
patched version where I did the change I suggested."

The only change you've suggested in this thread is adding a debug
macro. If that really changed things, that would mean that memory is
getting overwritten or some such thing, and without additional
information there's not much to be done.

I think you run Emacs under GDB. If so, when such a crash happens
please don't exit GDB after reporting the bug. Leave it open so
someone knowledgeable can ask you about it.

Thanks,

    Juanma




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6413; Package emacs,w32. (Sun, 03 Jul 2011 23:45:02 GMT) Full text and rfc822 format available.

Message #32 received at 6413 <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 6413 <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Mon, 4 Jul 2011 01:44:33 +0200
On Mon, Jul 4, 2011 at 01:29, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> On Mon, Jul 4, 2011 at 01:19, Lennart Borgman <lennart.borgman <at> gmail.com> wrote:
>
>> Hm, that was what I gave above.
>
> Sorry, you're right, this bug report is really about a bug, or at
> least a crash. I was mixing bug reports :-)

That is common when you try to fix a lot of things ;-)

> But still, you have said: "It might be that I have fixed this in my
> patched version where I did the change I suggested."
>
> The only change you've suggested in this thread is adding a debug
> macro. If that really changed things, that would mean that memory is
> getting overwritten or some such thing, and without additional
> information there's not much to be done.
>
> I think you run Emacs under GDB. If so, when such a crash happens
> please don't exit GDB after reporting the bug. Leave it open so
> someone knowledgeable can ask you about it.

I can't do that at the moment, but I will do it again when I have time
to set it up.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6413; Package emacs,w32. (Mon, 04 Jul 2011 00:36:02 GMT) Full text and rfc822 format available.

Message #35 received at 6413 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 6413 <at> debbugs.gnu.org
Subject: Re: bug#6413: What does ntdll!DbgUiConnectToDbg mean? (on w32)
Date: Mon, 4 Jul 2011 02:34:44 +0200
On Mon, Jul 4, 2011 at 01:44, Lennart Borgman <lennart.borgman <at> gmail.com> wrote:

> I can't do that at the moment, but I will do it again when I have time
> to set it up.

Thanks.

    Juanma




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 01 Aug 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.