Windows error 0x0000006D, 109

Detailed Error Information

BROKEN_PIPE[1]

MessageThe pipe has been ended.
Declared inwinerror.h

This appears to be a raw Win32 error. More information may be available in error 0x8007006D.

SESSION1_INITIALIZATION_FAILED[2]

This is a Blue Screen of Death stop code. More information is available in the Knowledge Base article Bug Check 0x6D: SESSION1_INITIALIZATION_FAILED.

HRESULT analysis[3]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[3][1]
DescriptionThe default facility code.[3][1]
Error Code109 (0x006d)

Possible solutions

1

.NET application handle leak, how to locate the source?

windows
performance
memory-leaks
windbg

WinDbg isn't the ideal tool for memory leaks, especially not without preparation in advance.

There's a GFlags option (+ust) which can be enabled for a process to record the stack trace for handle allocations. If you don't have this flag enabled, you'll probably not get more info out of your dump. If you have it, use !htrace to see the stack.

You can also try UMDH (user mode dump heap), which is a free tool. Or get something like memory validator which has certainly a better usability, so it might pay off in the long run.

answered on Stack Overflow Dec 21, 2016 by Thomas Weller
0

Unhandled exception

c
compilation
char depature[8][8] = { "08:00 am" ,"09:43 am","11:19 am","12:47 am", "02:00pm" ,"03:45 pm","07:00 pm","09:45 pm" };
char arrival[8][8] = { "10:16 am", "11:52 am", "01:31 pm", "03:00 pm", "04:08 pm", "05:55 pm", "09:20 pm", "11:58 pm" };

Leave a space for '\0' as you may want to print them using %s. Size of both should be -

char departure[8][9]= // initialization 
char arrival[8][9]=  // initialization

Also this -

 scanf("%s", &str3);   
             ^ & is not needed ,remove &

simply write -

scanf("%9s",str3);
answered on Stack Overflow Oct 16, 2015 by ameyCU • edited Oct 16, 2015 by ameyCU
0

Unhandled exception

c
compilation

depature[j][7] and arrival[j][7] are invalid as pointer, so you mustn't pass them to %s in printf.

the line

printf("closest departure time is %s,arriva at %s \n",depature[j][7],arrival[j][7]);

should be

printf("closest departure time is %s,arriva at %s \n",depature[j],arrival[j]);

This will free you from getting Segmentation fault.

Note that there are more warnings:

prog.c: In function 'jabs':
prog.c:6:16: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
     if (th < 0); {
                ^
prog.c: In function 'main':
prog.c:30:5: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10]' [-Wformat=]
     scanf("%s", &str3);
     ^
prog.c:22:9: warning: variable 'index' set but not used [-Wunused-but-set-variable]
     int index;
answered on Stack Overflow Oct 16, 2015 by MikeCAT

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2
  3. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0