Windows error 0x00000038, 56

Detailed Error Information

TOO_MANY_CMDS[1]

MessageThe network BIOS command limit has been reached.
Declared inwinerror.h

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

SERIAL_DRIVER_INTERNAL[2]

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

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 Code56 (0x0038)

Questions

5votes
1answer

"Anomaly" in signed integer in C

I'm currently writing a lecture on ARM optimization, specifically on vector machines such as NEON as the final target. And since vector machines don't fare well with if-else slaloms, I'm trying to demonstrate how to get rid of them by bit-hacking. I picked the "saturating absolute" function as an example [...] read more
c
optimization
integer
arm
bit-manipulation
4votes
1answer

How can I make my Java-generated zip file identical to a WinZip-generated one

I have a class that is zipping a directory's contents into a zip file. The code I'm using is below. The problem I'm having is that the zip file generated by me cannot be read by the application I'm loading it into. However, if I unzip the zip file that's [...] read more
java
zip
3votes
0answers

How to debug with tiered compilation enabled?

I want to attach to java process with gdb with tiered compilation enabled. To attach at the specific instruction number by address I use print compilation as follows: java -XX:-TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:CompileCommand=print,Main.m Main It prints something like this: CompilerOracle: print Main.m Java HotSpot(TM) 64-Bit Server VM warning: printing of assembly [...] read more
java
debugging
jvm
jit
3votes
1answer

Change display format of DirectX "Object Table"

While debugging with VS 2012 Graphic's Debugger, I want to look at an index buffer, but the format that is showing it in is as float. This means the numbers are different than they would be with an int or short format. Does somebody know how to change this? Here [...] read more
visual-studio-2012
hlsl
directx-11
3votes
2answers

Please help correct this bug: reading integers line by line from a file using fscanf in c

I tried using this code: int index = 0; int value; int IntegerArray[MAXARRAYSIZE]; while(fscanf(fp, "%d", &value) == 1){ IntegerArray[index++] = value; } but I received this error: > Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: > KERN_PROTECTION_FAILURE at address: 0x00000038 0x98a7c1ea in __svfscanf_l () fp is of type [...] read more
c
arrays
scanf
2votes
1answer

how to correctly store the address of a procedure in a register x86_64 nasm?

I want to store the address of a procedure in a register as follows : extern _printf section .text global _foo _foo : mov rax, [rel _printf] call rax ret but i get this error when compiling with a main written in C : ld: warning: PIE disabled. Absolute addressing [...] read more
nasm
linker-errors
2votes
2answers

Segmentation fault using pthread and arm-linux-gnueabihf-gcc

I have been trying all day to fix a segmentation fault that only occurs on one device. But from the beginning... #include <string.h> #include <stdio.h> #include <stdlib.h> #include "pthread.h" void* start_rtn(void* param); int main(int argc, char **argv) { printf("Hallo World\n"); pthread_t tid; int err = pthread_create(&tid, NULL, start_rtn, NULL); pthread_join(tid, [...] read more
c
linux
gcc
pthreads
cross-compiling
2votes
0answers

How can I use LD to place ARM reset vectors in a program segment

I have an ARM A5 Microprocessor with 2 major segments of memory. When it boots up, a hardware bootloader (see page 64) loads a 64k software bootloader that I wrote into sram. The software bootloader then reads an .elf file from a flash memory chip and loads it into ddram. [...] read more
c
linker
arm
linker-scripts
2votes
0answers

Protobuf-net serializer used in Unity gives Invalid IL code IL_0035: call 0x06000001

Using Unity 5.0.1f1, protobuf-net r668. I've set up a protobuf serializer dll using Visual Studio 2013, set to framework "Unity .Net 3.5 Subset Base Class Libraries" (I've also tried .Net 3.5 with same result). I have 4 parent data types to serialize: two rather simple ones, and two a tad [...] read more
c#
unity3d
protobuf-net
2votes
1answer

Using sed and awk together to create replacement maps

I'm attempting to reverse engineer some software to gain a better understanding the lower-level workings of the OS. I want to replace the raw address dumps from objdump -d with the corresponding values from objdump -t, something that even the -Dslx option seems to miss. the output from objdump -t [...] read more
bash
shell
sed
awk
objdump
2votes
6answers

a C program crashes, using a double-type variable length array

I am reading C Primer Plus these days and here is the code I wrote for the programming practice No.4 in Chapter 10, finding the index of the largest number in a double-typed array. I used variable length array in order to manually specify the array size: #include <stdio.h> int [...] read more
c
arrays
floating-point
double
variable-length
1vote
3answers

Disassemble instruction set for 8051 microcontroller

I have the following hex opcode sequence for a 8051 microcontroller 785679107A247BFD7C347D407E51745568F869F96AFA6BFB6CFC6DFD6EFE I found this repo that converts hex to instruction sequences https://github.com/anarcheuz/8051-disassembler. Using that I was able to get the following assembly instructions x00000000: 37 38 MOV 38 (R0,#immed) 0x00000002: 35 ANL A,@R0 0x00000004: 37 39 MOV 39 (R1,#immed) [...] read more
assembly
reverse-engineering
microcontroller
disassembly
8051
1vote
0answers

How to link with binary using mingw32 in wine

I have made this minimal project to reproduce my link problem using mingw32 in wine32: CMakeLists.txt cmake_minimum_required(VERSION 3.13) set(CMAKE_CXX_STANDARD_REQUIRED ON) project("tst" VERSION 1.1.0) add_executable("tst" "main.cpp") add_library("resource" "text.o") set_target_properties("resource" PROPERTIES LINKER_LANGUAGE CXX) add_custom_command(OUTPUT "text.o" MAIN_DEPENDENCY "text" COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/text" "text" COMMAND ${CMAKE_LINKER} -r -b binary "text" -o "text.o" ) [...] read more
c++
binary
linker
mingw32
wine
1vote
1answer

Is it legal to have statically-allocated pure-virtual-parent-class references to statically-allocated child class objects?

UPDATE: I am not asking people to try this out & see if the code works for them. I am asking whether the code pattern is legal C++, regardless of whether it works for you. I am investigating what I believe is a bug in the IAR C++ compiler for [...] read more
c++
c++03
1vote
0answers

C - Get File Bytes as Unsigned Int

I need the bytes of a BIN file converted to a unsigned int, in this format (JavaScript): p.write4(shellcode.add32(0x00000000), 0x00000be9); p.write4(shellcode.add32(0x00000004), 0x90909000); p.write4(shellcode.add32(0x00000008), 0x90909090); p.write4(shellcode.add32(0x0000000c), 0x90909090); p.write4(shellcode.add32(0x00000010), 0x0082b955); p.write4(shellcode.add32(0x00000014), 0x8948c000); p.write4(shellcode.add32(0x00000018), 0x415741e5); p.write4(shellcode.add32(0x0000001c), 0x41554156); p.write4(shellcode.add32(0x00000020), 0x83485354); p.write4(shellcode.add32(0x00000024), 0x320f18ec); p.write4(shellcode.add32(0x00000028), 0x89d58949); p.write4(shellcode.add32(0x0000002c), 0x64b948c0); p.write4(shellcode.add32(0x00000030), 0x77737069); p.write4(shellcode.add32(0x00000034), 0x49000000); p.write4(shellcode.add32(0x00000038), 0x4120e5c1); p.write4(shellcode.add32(0x0000003c), 0x000200bc); p.write4(shellcode.add32(0x00000040), [...] read more
c
1vote
2answers

Memory leak due to marshalling managed delegate?

I seem to be experiencing a memory leak in some code that's been in production for a while now (I see the Process\Private Bytes counter rising over time in PerfMon for my process). Note the code works without issue other than the leaking. The code that seems to be responsible [...] read more
c#
c++
1vote
0answers

IIS - w3wp.exe crashes on loading the web service

I have a simple web service which loads and OCX. On calling a method of this OCX, which essentially makes a connection with remote server causing w3wp.exe to crash. I have no clue why this happens. In my assumption this could be a security issue because when I run the [...] read more
iis
w3wp
0votes
0answers

Hard drive slow down suddenly

My hard drive has become very very slow and I don't know why. You can see the performance here: sudo hdparm -t /dev/sda /dev/sda: Timing buffered disk reads: read(2097152) returned 28672 bytes How can I diagnostic my Hard Drive and fix it? I don't lose any data. The Hard Drive [...] read more
hard-drive
performance
speed
0votes
0answers

dwarfdump output with overlapping ranges

I am using the dwarfdump command with these options -fFpPEo against a binary file. The output looks like this: fde: < 7><0x00000000:0x00000092><clear><fde offset 0x00005d70 length: 0x00000030><eh offset none> 0x00000000: <off cfa=00(r13) > 0x00000004: <off cfa=24(r13) > <off r4=-24(cfa) > <off r5=-20(cfa) > <off r6=-16(cfa) > <off r7=-12(cfa) > <off r8=-8(cfa) [...] read more
dwarf
0votes
0answers

What is a better way to turn a user-inputted hexadecimal string into a binary in MIPS?

I'm taking a computer architecture class, and they're having us use MIPS assembly. Our current assignment is asking us to take a user-inputted hex string, and turn it into a binary one. The code I've written "works", but it's horrible, to say the least. What would be a better approach [...] read more
assembly
mips
mars-simulator
0votes
0answers

According to the standard PCI bus scan but the result is abnormal

This is scanning code uint32_t pci_read_configd(uint8_t bus, uint8_t dev, uint8_t func, uint8_t offset) { uint32_t address; uint32_t lbus = (uint32_t)bus; uint32_t ldev = (uint32_t)dev; uint32_t lfunc = (uint32_t)func; address = (uint32_t)((lbus << 16) | (ldev << 11) | (lfunc << 8) | (offset & 0xfc) | ((uint32_t)1 << 31)); out_port32(0xcf8, [...] read more
c
operating-system
qemu
pci
pci-bus
0votes
0answers

C Structs mnemonics in Linux Socket Filter. trying to make sense

I am trying to discover details about C Linux Socket filter or C Linux BPS sockets. The network filter for socket on this link and other places on this link https://www.kernel.org/doc/Documentation/networking/filter.txt is something like this /* From the example above: tcpdump -i em1 port 22 -dd */ struct sock_filter code[] [...] read more
c
linux
networking
firewall
raw-sockets
0votes
1answer

MIPS Exception 6 [Bad instruction address] for Newton's Method of finding Square Roots

I'm trying to implement Newton's Method for calculating integer square roots of a given k ($a0 here). I get the correct output but it is followed by an infinite series of Exception 6 errors like the following: sqrt(32) = 5 sqrt(33) = 5 sqrt(34) = 5 sqrt(35) = 6 sqrt(36) [...] read more
exception
assembly
mips
qtspim
0votes
0answers

How to implement poll function into Linux kernel module?

I'm trying to implement polling functionality into my simple Linux kernel module called gpio_driver for my Raspberry Pi which should notify the user space poll function about the change of state of one of the GPIO pins (button push). What I did in my gpio_driver is set the internal pull [...] read more
c
linux-kernel
linux-device-driver
polling
gpio
0votes
1answer

Z3 Equation Solver - Bitmask Operation

After reverse engineering a program, I found the constraints. I have to find two unsigned numbers such that: x + y = 0xC0ED91BD and x * y = Z In the original program, the multiplication of the numbers is performed using imul instruction. Z should be such that when only [...] read more
python
z3
z3py
0votes
0answers

Storing value in int array from mysql of type mediumint

I am new to C and working on a project at the moment but I am having an issue. I have a int array which is defined as below: int* SwitchIDs = malloc(sizeof(int)); int* SeizeUTC = malloc(sizeof(int)); int* CorrelationIDs = malloc(sizeof(int)); I run a query which retrieves values from the [...] read more
c
arrays
malloc
realloc
0votes
0answers

Android admob viewpager Fatal error

I have a not pretty nice problem with Admob and my android application. Let's explain: I use an AdView Banner in fragment 1 inside a ViewPager. When i switch to fragment 2 , viewpager keep fragment 1 as usual but the AdView inside Fragment 1 still refresh itself and cause [...] read more
android
android-fragments
android-viewpager
admob
0votes
1answer

Sort of an event driver

I am trying to make a Linux Kernel driver in the Raspberry pi 3 that turns on a led when a button in a joystick es pressed(Sets GPIO as an Output and then sets it on) and also reads the status of that GPIO port. My driver for turning on [...] read more
c
linux
linux-kernel
linux-device-driver
raspberry-pi3
0votes
1answer

c++ resize 2D vector memory error

I have a small class: header file - Grid.h: class Grid { public: Grid(); ~Grid(); bool WriteGridToDSGrdFile(char* FileName); bool SetGrid(float *noisearray, int nx, int ny); private: std::vector<std::vector<float>> GridData; }; implementation - Grid.cpp bool Grid::SetGrid(float* noisearray, int nx, int ny) { for (size_t ix = 0; ix < nx; ix++) { [...] read more
c++
vector
0votes
1answer

Memory access violation when using Boost::Serialization

I'm trying to do serializations using Boost's serialization library, but they always fail with the same unhelpful runtime error. Say, for example, I have a simple struct: struct test { unsigned int value; template<class Archive> void serialize(Archive & ar, unsigned int const version) { ar & BOOST_SERIALIZATION_NVP(value); } }; This [...] read more
c++
serialization
boost
0votes
2answers

Renderscript Fatal Signal 11 (code = 1)

In my project I am taking a 15x15 bitmap of random colors and determining how distinct each is from each other pixel. When Distinct.start() is called, I get the following error: A/libc(18416): Fatal signal 11 (SIGSEGV) at 0x00000038 (code=1), thread 18538 (AsyncTask #1) From what I've been able to find, [...] read more
android
renderscript
0votes
2answers

Crash in png_set_read_fn() on Windows 7

I'm cross-compiling some C code for Windows 7 and linking to libpng12.dll found here. Unfortunately, the line below causes a crash (GDB says segmentation fault): png_structp png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); I'm not sure where to start to debug this--that function seems very straightforward and unrelated to the rest [...] read more
c
windows
gdb
libpng
-1votes
1answer

Need assistance Systick handler not getting called

I am trying to use the systick handler in MSP432 controller for context switching but the systick handler is never called. I'm not sure what I doing wrong I set the interrupt priority to the highest and set PendSV to the lowest. I do disable interrupts but always re enable [...] read more
c
arm
embedded
msp430
rtos
-1votes
1answer

C++ Access violation writing location in for loop

I was trying to make a Bounding Box work in order to implement frustrum culling in my engine. But as soon as i run the solution, an Access violation run time error appears in the transform function of the Bounding Box. void BoundingBox::Transform(D3DXVECTOR3 pos, D3DXVECTOR3 rot, D3DXVECTOR3 sca) { D3DXQUATERNION [...] read more
c++
directx

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