This is probably not the correct interpretation of this error.
The Win32 error above is more likely to indicate the actual problem.
Flags
Severity
Success
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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