Windows error 0x80000001, -2147483647

Detailed Error Information

E_NOTIMPL[1]

MessageNot implemented
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[2][1]
DescriptionThe default facility code.[2][1]
Error Code1 (0x0001)

Questions

42votes
4answers

I updated my CentOS 7 system. Why is Meltdown/Spectre only partially mitigated?

Like many of us, I spent yesterday updating a whole lot of systems to mitigate the Meltdown and Spectre attacks. As I understand it, it is necessary to install two packages and reboot: kernel-3.10.0-693.11.6.el7.x86_64 microcode_ctl-2.1-22.2.el7.x86_64 I have two CentOS 7 systems on which I've installed these packages and rebooted. According [...] read more
security
centos7
rhel7
vulnerabilities
13votes
4answers

Android Hello GridView Tutorial Will Not Display Images

First time poster! I am new to Android development and have been following Google's HelloView tutorials without problems... until the HelloGridView tutorial. For some reason I cannot get any images to display, only a black background. I originally followed this tutorial: http://developer.android.com/resources/tutorials/views/hello-gridview.html but moved on to this nearly identical one: [...] read more
android
android-layout
textview
android-gridview
10votes
1answer

papi_avail: No events available

I want to get into PAPI. I have Version 5.3.2.0 on Debian GNU/Linux. papi_avail just tells me that no hardware events are available: $ papi_avail Available events and hardware information. -------------------------------------------------------------------------------- PAPI Version : 5.3.2.0 Vendor string and code : GenuineIntel (1) Model string and code : Intel(R) Core(TM) i3-5010U [...] read more
papi
9votes
1answer

Should using MOV instruction to set SS to 0x0000 cause fault #GP(0) in 64-bit mode?

This question is inspired by a Reddit question in r/osdev except that this question focuses on the SS register. One may say RTFM (ISA entry for MOV), but when this question comes up it can get varying answers even among OS developers. -------------------------------------------------------------------------------- Question: Should using the MOV instruction to [...] read more
assembly
64-bit
x86-64
nasm
osdev
6votes
1answer

Linking two or more assembly files

I am developing a simple and small 64bit OS. Until now I've used a single file and compile it with NASM: nasm -f bin os.asm -o os.bin Then tested the .bin file with qemu. Now I need to use multiple files so in my os.bin file. I've inserted this line: [...] read more
assembly
x86
nasm
bootloader
osdev
6votes
3answers

libvirtError: internal error Cannot find suitable CPU model for given data

I am trying to run a simple instance after a fresh installation of OpenStack. The instance cannot start and in the log I found "libvirtError: internal error Cannot find suitable CPU model for given data". Please help. Some info: libvirt.x86_64 0.10.2.6-5.el6.centos.alt qemu-kvm.x86_64 2:0.12.1.2-2.355.0.1.el6.centos.6 CentOS release 6.4 (Final). (Linux 3.4.54-8.el6.centos.alt.x86_64 #1 [...] read more
openstack
kvm
libvirt
5votes
1answer

From Raku/Perl6, how to read this registry key?

Windows With Raku/Perl6, how do I use NativeCall to read the value of [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ "EnableLUA"] with RegQueryValueExW? https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regqueryvalueexw Many thanks, -T edit 12-27-2019 #1: removing bad code and inserting new code This is how far I have gotten. Test run string: K:\Windows\NtUtil>perl6 -I. -e "use WinMount :GetLUA; say GetLUA();" RegOpenKeyExW [...] read more
winapi
raku
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
5votes
2answers

iOS CloudKit crash on completion block for -fetchUserRecordIDWithCompletionHandler:

I'm writing an initialization method for CloudKit. The problem I'm having occurs while fetching the user id/account status. I'm calling [[CKContainer defaultContainer] fetchUserRecordIDWithCompletionHandler:]. It crashes a little while later and the debugger points me to the "Queue: com.apple.cloudkit.operation.callback (serial) queue" thread. This method is the only CloudKit related method with [...] read more
ios
objective-c
multithreading
objective-c-blocks
cloudkit
4votes
2answers

Android Mediarecorder setNextOutputFile IllegalStateException

I am trying to split my audio recording with android mediarecorder into multiple files, but whenever I set the next output file, I got an illegalstate exception. Here's the code: private void getMediaRecorderReady(String filePath, FileDescriptor nextFile) { bufferSize = 88200; recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); recorder.setAudioEncodingBitRate(64000); recorder.setAudioSamplingRate(44100); recorder.setAudioChannels(1); [...] read more
android
mediarecorder
4votes
2answers

Determining which method is holding a ReaderWriterLockSlim WriteLock

Currently I am analyzing a dump with WinDbg. I ran following commands (following Tess' incredible walkthrough): ~* e !clrstack Which listed me all stacks of all threads. There are 300 running threads with more or less the same stack, so I am just printing the stack of one here ... [...] read more
debugging
windbg
readerwriterlockslim
4votes
1answer

How do you interpret WAKEUP_STAT and WAKEUP_INTx_PEND in exynos SoC kmsg?

I am seeing the following lines in kmsg when my Galaxy S2 device wakes up from suspend. I understand that this is supposed to tell me which interrupts are pending but I can't find a way to figure out which: <1>[40470.716887] PM: SLEEP <6>[40681.900179] WAKEUP_STAT: 0x80000001 <6>[40681.900179] WAKEUP_INTx_PEND: 0x0, 0x0, [...] read more
android
linux-kernel
power-management
3votes
1answer

Using grub in floppy image file to start your own kernel inside bochs

Basically I've followed the instructions here http://sig9.com/bochs-grub to create a bare image file which does nothing but lets the BIOS start GRUB. The problems are: * The kernel I am writing will be 32-bit, using http://www.jamesmolloy.co.uk/tutorial_html/index.html for a start, but my host (physical) machine is x86_64 with bochs configured like [...] read more
assembly
x86
osdev
grub
bochs
3votes
1answer

How do you detect the CPU architecture type during run-time with GCC and inline asm?

I need to find the architecture type of a CPU. I do not have access to /proc/cpuinfo, as the machine is running syslinux. I know there is a way to do it with inline ASM, however I believe my syntax is incorrect as my variable iedx is not being set [...] read more
c
gcc
cpu
detection
inline-assembly
3votes
1answer

Second stage bootLoader not loading in bochs, LINUX (ubuntu 16.04), Brokenthorn osdev series

I am following brokenthorn OS development series, until now I am able sucessfully run bootloader stage1 but there is some issue with loading second stage bootloader from FAT12 floppy in bochs emulator on linux machine(ubuntu 16.04) (It works fine in virtual box though). Here is my stage1 boot loader: bits [...] read more
assembly
x86
bootloader
osdev
bochs
3votes
2answers

c++ only: unary minus for 0x80000000

This question is supposedly for language-lawyers. Suppose that signed and unsigned int are both 32 bits wide. As stated in the n3337.pdf draft, 5.3.1.8, (-(0x80000000u)) = 0x100000000u-0x80000000u = 0x80000000u But I can not find the answer to the question: what will be unary minus for signed 0x80000000? Is it UB, [...] read more
c++
standards
language-lawyer
unary-operator
2votes
1answer

OSPF: quagga and HP ProCurve not talking

This question is related to a previous one on OSPF routing. Based on the advice give to the previous question, I have now made myself a network diagram, identified the backbone area and all other areas and started configuring OSPF on the various routers. All the HP ProCurve 7102dl routers [...] read more
routing
hp
ospf
quagga
2votes
1answer

Why is paging not working and getting physical address not available error on Bochs

I have the following assembly code to set up paging for long mode. org 0x7e00 bits 32 mov eax, 0x08000008 mov cr3, eax pml4t: mov dword [0x8000], 0x0900000f mov dword [0x8004], 0x0 pdpt: mov dword [0x9000], 0x0a00000f mov dword [0x9004], 0x0 pdt: mov dword [0xa000], 0x0b00000f mov dword [0xa004], 0x0 [...] read more
assembly
x86
paging
bootloader
2votes
3answers

NullPointer Exception in readStringValues method in WinRegistry class

Here is the WinRegistry class I am using to readStringValues for a Key and am getting NullPointerException: public class WinRegistry { public static final int HKEY_CURRENT_USER = 0x80000001; public static final int HKEY_LOCAL_MACHINE = 0x80000002; public static final int REG_SUCCESS = 0; public static final int REG_NOTFOUND = 2; public [...] read more
java
2votes
1answer

How to use stock-objects with GDI+

I was using the following pattern to record an enhanced meta-file for a later playback: POINT pts[] = { //..... }; ::SelectObject(hEnhDC, ::GetStockObject(LTGRAY_BRUSH)); ::Polygon(hEnhDC, pts, _countof(pts)); Now I'm forced to use GDI+ to provide anti-aliasing, so I'm trying to convert that code sample: Gdiplus::Point pts[] = { //... }; Gdiplus::Graphics [...] read more
c++
winapi
gdi+
gdi
2votes
1answer

Structure-bound std::tuple breaks std::stringstream

Consider the following code: #include <iostream> #include <fstream> #include <string> #include <sstream> #include <tuple> auto read_data(std::ifstream& training_file) { if (!training_file) { throw std::runtime_error{"Error: could not open one or more files"}; } std::stringstream training{}; training << training_file.rdbuf(); std::cout << training.str() << '\n'; return std::tie(training); } int main() { std::ifstream input{"input.txt"}; auto [...] read more
c++
stringstream
stdtuple
2votes
2answers

Java Hex Number and Conditionals

I am new to Java so I have a problem with hex numbers usage in conditionals and its sizes. There is some issue about Scanner class too. I have searched java documents for primitive data types. The program is about; take a number and look in which data type it [...] read more
java
types
java.util.scanner
2votes
1answer

Creating a C Buffer From the ARM to the VideoCore on RPi3

I am looking into the the hello world of bare metal on RPi3, which is turning on the ACT LED. There many good resources: 1. Some in assembly for Pi 1 2. David Welch's excellent baremetal tutorial for Pi 1 and 2 3. and his blinker01 example for Pi 1 [...] read more
c
assembly
arm
raspberry-pi3
bare-metal
2votes
1answer

DebugActiveProcess crash

I'm trying to debug a child process while it's in a suspended state. The problem is that when I attempt to do that, the application doesn't start (it starts but exits instantly). That helps against reverse engineering, but however I can't manage doing it. static void DebuggingTest(PROCESS_INFORMATION pi, int imageBase, [...] read more
c#
windows
api
debugging
2votes
1answer

Total Cache misses fewer than data cache misses (PAPI_L1_DCM > PAPI_L1_TCM)

For my application (SpMV) I have more data cache misses (PAPI_L1_DCM) than total cache misses (PAPI_L1_TCM) in level 1 cache. How can that be? For Level 2 the values are ok. That is, what the PAPI counters offer: [PAPI_L1_ICM ][PAPI_L1_DCM ][PAPI_L1_TCM ][PAPI_L2_ICM ][PAPI_L2_DCM ][PAPI_L2_TCM ] 1256 3388225 1442386 1007 2389903 [...] read more
caching
papi
2votes
2answers

Using a multi-character field separator in awk on Solaris

I wish to use a string (BIRCH) as a field delimiter in awk to print second field. I am trying the following command: cat tmp.log|awk -FBirch '{ print $2}' Below output is getting printed: > irch2014/06/23,04:36:45,3,1401503,xml-harlan,P12345-1,temp,0a653356353635635,temp,L,Success Desired output: > 2014/06/23,04:36:45,3,1401503,xml-harlan,P12345-1,temp,0a653356353635635,temp,L,Success Contents of tmp.log file. -bash-3.2# cat tmp.log Dec 05 13:49:23 [...] read more
bash
shell
awk
solaris
2votes
1answer

Rounding point issues when converting to float bitwise

I am working on a homework assignment, where we are supposed to convert an int to float via bitwise operations. The following code works, except it encounters rounding. My function seems to always round down, but in some cases it should round up. For example 0x80000001 should be represented as [...] read more
c
bit-manipulation
rounding
floating
floating-point-conversion
2votes
0answers

What can cause C# optimized code compilation to raise InvalidProgramException?

Running a c# windows app, forced platform target of x86, on a 64 bit host. When the app is compiled using "Optimize code" option get this error during execution. First-chance exception at 0x74F7C41F (KernelBase.dll) in sldotnetsso.exe: 0x02345678 (parameters: 0x80000001). First-chance exception at 0x74F7C41F in sldotnetsso.exe: Microsoft C++ exception: EEException at [...] read more
c#
exception
optimization
2votes
2answers

Why is in OSPF LSA sequence nuber in range 0x80000001 to 0x7FFFFFFF

Why is in OSPF LSA sequence number in range 0x80000001 to 0x7FFFFFFF. I suppose that it is for some historical reasons but cannot google it. read more
routing
lsa
ospf
2votes
3answers

Bootloader crash

I'm currently developing my bootloader, but I have problem. I use Bochs to test bootloader, I compile bootloader and make disk image with: rm disk.bin rm boot.bin rm post.bin nasm bootloader.asm -o boot.bin nasm postmbr.asm -o post.bin cat boot.bin post.bin > disk.bin This is bootloader.asm: [BITS 16] ;Tells the assembler [...] read more
assembly
x86
nasm
osdev
bochs
2votes
3answers

Android NotePad Tutorial 1 : Crash when I click on "Menu"

I am a beginner with Android, and I have a strange bug with the NotePad Tutorial (Exercice 1). http://developer.android.com/resources/tutorials/notepad/index.html I imported the sources and completed the code, but when I run the app, and click on the "Menu" button, it crashes (The application .... has stopped unexpectedly. Please try again.) [...] read more
android
1vote
0answers

Can Bootloaders use custom UEFI MemoryTypes?

I am writing a boot loader for a hobby OS, which targets UEFI. In order to pass some information from the boot loader to the kernel, I make a few memory allocations using BootServices->AllocatePages(). I wanted to create a distinction within the memory map between the traditional EfiLoaderCode, the EfiLoaderData, [...] read more
bootloader
uefi
1vote
1answer

JAVA : ERROR Java.util.prefs.WindowsPreferences.WindowsRegOpenKey

I have to work on an app. This app uses regedit to save preferences. This application must read a file and if it does not exist must write it to the Regedit. Everything has already worked, it is an already existing project. I'm just getting back to work to do [...] read more
java
regedit
1vote
0answers

Why does Bochs crash on simple mov instruction

I'm building a small operating system and was using Qemu before which was working properly. Now I'm stuck on a Windows 10 machine and Qemu doesn't work well with GDB on this machine. I thought I'd try Bochs or Virtual box instead. The problem is that with both of these [...] read more
assembly
x86
qemu
bootloader
bochs
1vote
1answer

Cleanly analyzing and handling integers

I am reverse engineering an old game format. For their textures, they store display type information in a single integer. I initially though the different bits were boolean flags. For example, if bit 1 was set, the texture is transparent. The more I have worked through the different display types, [...] read more
c#
type-conversion
hex
reverse-engineering
1vote
0answers

VMX performance issue with rdtsc (no rdtsc exiting, using rdtsc offseting)

I am working a Linux kernel module (VMM) to test Intel VMX, to run a self-made VM (The VM starts in real-mode, then switches to 32bit protected mode with Paging enabled). The VMM is configured to NOT use rdtsc exit, and use rdtsc offsetting. Then, the VM runs rdtsc to [...] read more
linux
performance
x86
virtualization
rdtsc
1vote
1answer

Export function from dll by ordinal only does not hide function name

In Visual Studio I want to export function from dll by ordinal only. In source I define function to be: int my_function() { return 101; } // without declspec(dllexport) In the .def file: LIBRARY MyDll EXPORTS my_function @ 1 NONAME // NONAME, export directory will not contain function name In [...] read more
windows
dll
export
ordinal
1vote
0answers

How do I create BYTEA from JavaScript array?

How do I create BYTEA from JavaScript array ? According to PL/V8 doc JS arrays should be converted to BYTEA but it's not happening for me. For example consider following function CREATE OR REPLACE FUNCTION test2(input bytea) RETURNS bytea AS $$ var arr = [255, 254]; return arr; $$ LANGUAGE [...] read more
javascript
postgresql
plv8
1vote
0answers

git alias partially stopped working in certain repositories, exception 80000001

This morning I've noted that a few git alias stopped working. I've used these extensivly every day since ~2 years back, most notably (from ~/.gitconfig): [alias] start = checkout -b m = checkout origin/master s = status st = diff --staged co = checkout cm = commit cp = cherry-pick [...] read more
git
cygwin
alias
1vote
1answer

Guard Page Exception - how to raise

A customer that uses our API gets a guard page exception. He uses VirtualAlloc and VirtualProtect. When I run his example everything works fine. I tried this example from Microsoft but VisualStudio does not throw an 0x80000001 exception even if I already turned it on in the exception menu under [...] read more
c++
visual-studio-2010
exception
1vote
0answers

USB Audio on Android 5.1 Samsung S4 Mini

I wanted to test USB Audio on my Samsung S4 Mini GT-I9195 running Android 5.1 (Bliss Pop, which is partly based on Cyanogenmod). I´ve found another thread here and I too can successfully aplay a wav to hw:1,0, but I´m not able play sounds from any app. For me it [...] read more
android
audio
usb
alsa
tinyalsa
1vote
3answers

i have problem with sharing a folder through programming using c#?

here is my code it shares the folder but that does not work correctly when i want to access it , it shows access denied help required, private static void ShareFolder(string FolderPath, string ShareName, string Description) { try { // Create a ManagementClass object ManagementClass managementClass = new ManagementClass("Win32_Share"); // [...] read more
c#
1vote
1answer

I am getting a SIGABRT error when playing background music under viewDidLoad

Here is my code .h file #import <AVFoundation/AVFoundation.h> @interface ViewController : UIViewController { AVAudioPlayer *theAudio; } .m file -(void)viewDidLoad { [self backgroundMusic]; } -(void)backgroundMusic { AVAudioSession *session = [AVAudioSession sharedInstance]; [session setActive:YES error:nil]; [session setCategory:AVAudioSessionCategoryPlayback error:nil]; [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; NSString *path = [[NSBundle mainBundle] pathForResource:@"FirstQuestionGameSoundtrack" ofType:@"m4a"]; NSURL *url = [[NSURL [...] read more
ios
objective-c
1vote
0answers

using raspberry pi usb to communicate with other device

I am trying to using raspberry pi usb to communicate with other devices, however I encountered a problem when trying to open the port. The trace log from console is as follows: 11/24/14 13:56:48.641 + DLSUSBScale: Scale claim 11/24/14 13:56:48.641 + DLSUSBScale: Device claim 11/24/14 13:56:48.641 + DLSObjectFactory: createPort() 11/24/14 [...] read more
java
linux
arm
raspberry-pi
raspbian
1vote
1answer

Only 14 RAPI events are available on Xeon Phi. Why so few?

I'm trying to use RAPI to monitor the performance of my Xeon Phi code. I just compiled and installed a native version of RAPI follwoing the documentation. And the following list is what I get when I execute "rapi_avail" on my Xeon Phi which shall display all available events. Surprisingly, [...] read more
intel
performancecounter
xeon-phi
rapi
1vote
2answers

gcc undeclared identifier "_asm"

I'm trying to understand how memory works, and how every instruction allocates memory. I'm also trying to understand the concept of offset, and base pointers. I am doing this for intel processors and MIPS. I am able to access memory windows in Visual Studio, however when i use gcc and [...] read more
c++
c
unix
gcc
gdb
1vote
1answer

function to convert float to int (huge integers)

This is a university question. Just to make sure :-) We need to implement (float)x I have the following code which must convert integer x to its floating point binary representation stored in an unsigned integer. unsigned float_i2f(int x) { if (!x) return x; /* get sign of x */ [...] read more
c
bit-manipulation
1vote
1answer

C code explanation

There is a following function that is supposed to make a comparison between 2 floating point values, but faster than regular comparison in some specific cases (e.g. on Cortex-A8) int isGreater(float* f1, float* f2) { int i1, i2, t1, t2; i1 = *(int*)f1; // reading float as integer i2 = [...] read more
c
1vote
1answer

java - Need assistance in reading hs_err_pid file

my app crashed every now and then and I get hs_err_pid file in the folder with no other lines in my apache logs. here is the begining of the file An unexpected error has been detected by Java Runtime Environment: java.lang.OutOfMemoryError: requested 512000 bytes for GrET in C:\BUILD_AREA\jdk6_13\hotspot\src\share\vm\utilities\growableArray.cpp. Out of [...] read more
java
1vote
0answers

How to read registry sub keys in Silverlight 4 OOB

I am creating an OOB Silverlight application where I need to read the sub keys from the registry. Although I have tried writing the code, it is not working. How can I read the subkeys from registry in SL4. Below is the screenshot of the code. if (AutomationFactory.IsAvailable) { using [...] read more
c#
silverlight
silverlight-4.0
1vote
0answers

Error in android tetris - getEntry

At the time me and a friend are programming the classic game Tetris, for a school project. I have been programming for an while now and had implemented both a rotate and a moveBlock, and newBlock, draw, etc., methods, so I thought now maybe would be the perfect time to [...] read more
android
surfaceview
tetris
surfaceholder
1vote
0answers

PHP SMPP delivery report deliver_sm_resp not receiving?

<?php /* File : smppclass.php Implements : SMPPClass() Description : This class can send messages via the SMPP protocol. Also supports unicode and multi-part messages. License : GNU Lesser Genercal Public License: http://www.gnu.org/licenses/lgpl.html Commercial advertisement: Contact info@chimit.nl for SMS connectivity and more elaborate SMPP libraries in PHP and other languages. [...] read more
php
0votes
1answer

DX12 Games Crash, DDU in Safe Mode, OS reinstalled, BIOS updated Still no fix

PC Specs: * Ryzen 5 5600x * 16gb Trident Z Neo @ 3600mhz * B550 Aorus Pro AC Wireless (Bios Version 13h) * EVGA - SUPER XC ULTRA GAMING NVIDIA GeForce RTX 2070 Super 8GB GDDR6 * 700w EVGA PSU I've been trying to get DX12 games to run for [...] read more
windows-10
drivers
graphics-card
crash
directx
0votes
1answer

OSPF - default-information originate : multiple routers

basic network [https://i.stack.imgur.com/ibFOc.gif] I receive a default route via iBGP from R1. On both R2 and R3 I have default-information originate configured. On R4 I only see one default route in the OSPF database; either to R2 or R3. When I shutdown one of the links from R2 / R3 [...] read more
networking
cisco
0votes
0answers

Watchguard VPN Connection Issue

I am having problems setting up a BOVPN between an XTM510 and an XTM21-w. I have checked over the settings 3 times for all of the phases, tunnels and gateways on both sides and everything is correct. I checked the log files and did a search VPN and saw the [...] read more
vpn
watchguard
0votes
0answers

KVM CPUID missing "Extended Processor Info and Feature Bits" features

I am trying to use KVM with QEMU. I am missing a lot of features in the QEMU (those features present in the HOST). I checked the code in the QEMU and it check the features exposed by the KVM. I wrote simple .c code that checks if KVM expose [...] read more
linux-kernel
kvm
0votes
1answer

enabling paging leads to triple fault (solved)

In case this helps somebody in the future: * check if the global descriptor table is working * check if the elements of page table entry struct are ordered correctly This code worked for me: gdt.s section .data gdt: .null: dq 0 .code: dw 0xFFFF dw 0x0000 db 0x00 db [...] read more
c
nasm
paging
gdt
0votes
1answer

Error while installing tensorflow(AVX support) and cpuid python

While I was trying to setup tensorflow (both, using venv and without it) on import I got the following error: > ImportError: DLL load failed: A dynamic link library (DLL) initialization > routine failed. I went to the official site's error page and found that possibly AVX and AVX2 instructions [...] read more
python
tensorflow
0votes
3answers

System Error Code 0x32 when trying to attach debugger to calc.exe

I am currently learning how debuggers function and I am trying to program one myself following the book 'Gray Hat Python' by Justin Seitz. I am quite new to python and using the Windows API so any help is appreciated. I am using python 2.7 and Windows 10 64bit (in [...] read more
python
ctypes
0votes
0answers

Striped down kernel take long time to load on Raspberry Pi 4

I'm just trying to customize the kernel configuration for Raspberry Pi 4B, to achieve a compact system image and quick startup, but as we can see in the logs there's approximate ~4.0s to start executing my 4.2MB kernel. * Logs: 23:20:06.198 -> 23:20:06.198 -> PM_RSTS: 0x00001000 23:20:06.198 -> RPi: BOOTLOADER [...] read more
linux-kernel
buildroot
raspberry-pi4
0votes
0answers

papi_avail shows event's, can't access in C

I'm trying to run PAPI on an Odroid-XU4, I've installed PAPI and when I run papi_avail -a I can see 16 events available. I've set perf_event_paranoidto -1. When I try to call PAPI using C, it always says: > Event doesn't exist even though I know the hardware has 16 [...] read more
kernel
perf
papi
0votes
1answer

"Relocation truncated to fit" when attempting to code a barebones 64-bit kernel

I'm trying to follow the OSDev "Higher Half x86 Bare Bones" tutorial (after having done it multiple times) and modify it to send the kernel to the higher half of the PML4 as opposed to the higher half of a 32-bit page table. The reason being because of mixed syntaxes [...] read more
assembly
gnu-assembler
osdev
0votes
0answers

Why does Cygwin gdb have a problem debugging a program with threads?

I am having trouble debugging programs with threads on Cygwin. When the following program gets to the pthread_create() call, the debug session gets an unknown target exception, apparently in a call to ntdll!RtlAllocateHeap(). I know in the past I have been able to debug threads in Eclipse -- are there [...] read more
c
gdb
pthreads
cygwin
0votes
1answer

Is it possible that speculative execution on intel CPU causing EXC_BAD_INSTRUCTION (SIGILL)

I have a hypothesis that speculative execution on Intel Nehalem (1 gen) causing a crash. Is it possible or I completely wrong? If this is possible what can I do to prevent this? Maybe disable speculative execution for just one function or whole translation unit? For the compilation of the [...] read more
speculative-execution
0votes
0answers

PAPI_num_counters() shows the system doesn't have available counters

I have a question regarding PAPI (Performance Application Programming Interface). I downloaded and installed PAPI library. Still not sure how to use it correctly and what additional things I need, to make it work. I am trying to use it in C. I have this simple program: int retval; retval [...] read more
c
caching
x86
papi
0votes
2answers

select/match a Section in Python

I'm trying to match each section of any Link State type from OSPF Database as shown in CLI_Output below using following regex in python: regex = r'\n\n(\s+\S+( \S+)?(.+?)\n\n)(\s+\S+( \S+)?)?' section = re.findall(regex,_original_result, re.M) But I get only (the 1st) one line after the heading line i.e. Router Link States (Area [...] read more
python
regex
match
multiline
findall
0votes
2answers

Unable to query value of CSDVersion

I followed this C# example and am able to query some registry values, but not all of them: How to obtain a registry value from a remote machine if I don't know its type? (C#) I can reliably get registry keys such as the CurrentVersion, the ProductName, etc. But when [...] read more
c#
0votes
0answers

How to delete registry Key value Using java

I need to delete a registry key value under HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist, "3". I need to delete key value. I found a code on http://www.rgagnon.com/javadetails/java-0630.html but when i'm trying to run it it's showing me Exception: Exception in thread "main" java.lang.IllegalArgumentException: rc=5 key=SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist value=3 at Forcast_DataFetch.WinRegistry.deleteValue(WinRegistry.java:253) at Forcast_DataFetch.WinRegistryTest.main(WinRegistryTest.java:12) Code for reference: import [...] read more
java
0votes
1answer

x86 CPUID feature flags in chronological order

Are there comprehensive and accurate sources where I can get x86 CPUID feature flags (leafs 1, 7, and 0x80000001) for Intel and AMD processors sorted in chronological order of their introduction? read more
cpuid
0votes
1answer

Genymotion not showing virtual device

Clean Genymotion 2.12.1 installation in LMDE 2 (64b, Cinnamon 3.4.6, GeForce 210, 16GB RAM), VirtualBox 5.1.32. When I launch a virtual device it shows the window for a few seconds and then disappear. In VirtualBox it shows as Running. I am suspecting video driver problem but IIRC it used to [...] read more
linux-device-driver
nvidia
genymotion
0votes
2answers

iPhone app crashes when coming to foreground

I have an application that is communicating to a device through the accessory port. When the device is spitting data (at a rate of one 13-byte packet every 20 ms, so not very quickly) to the iPhone, if I press the home button to send the app to the background, [...] read more
ios
background
crash
resume
suspend
0votes
0answers

CryptoJS is not defined at

I am trying to use DES encryption/decryption on Google chrome. In my folder I have three files. 1. tripledes.js 2. mode-ecb.js 3. CryptoJS-DES.html The scripts in my html file is defined as follows :- <script type="text/javascript" src="tripledes.js"></script> <script type="text/javascript" src="mode-ecb.js"></script> and another script file which is :- function encryptByDES(message, key) [...] read more
javascript
html
node.js
cryptojs
0votes
1answer

Syslog-ng multiline input over TCP/Network module

We are attempting to capture logs to syslog-ng over tcp connection. The logs looks something like this: 1810717353--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00--<11>Oct 23 16:03:23 HOSTNAME [443-Multiplexer][0x80000001][xsltmsg][error] xmlfirewall(443-Multiplexer): trans(2607607975)[error][ip] gtid(value): 1810717354--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00-- Default rule caught error code ' 1810717355--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00-- 0x00230001 1810717356--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00-- ' 1810717357--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00-- 1810717358--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00--<14>Oct 23 16:03:23 HOSTNAME [443-Multiplexer][value][multistep][info] xmlfirewall(443-Multiplexer): trans(2607607975)[error][ip] gtid(2607607975): Is there any way to [...] read more
tcp
logstash
syslog
syslog-ng
0votes
0answers

(C#) WaitForDebugEvent fails without an exception or reason

Hello fellow engineers. I am writing an anti-debugger that attempts to protect a process that was created through process hollowing. My process is created with CreateProcess and the process creation flag I pass is 0x00000004 (CREATE_SUSPENDED). I manually map the PE's sections and headers in memory and allocate the necessary [...] read more
c#
multithreading
debugging
winapi
memory
0votes
1answer

Why do I need to run an application as a root for the PAPI library to work?

I just upgraded to Ubuntu 16.04 LTS. In my C++ applications I use the PAPI library, so I installed it from http://icl.utk.edu/papi/. However for some reason I can not run my applications anymore without having to type sudo in the beginning. Even just typing papi_avail on the terminal to see [...] read more
c++
ubuntu-16.04
papi
0votes
1answer

Windbg pykd memory breakpoint

I'm trying to make automation scripts with memory breakpoint function by using a pykd on windbg and this is my script in short class MemBpHandler(pykd.eventHandler): def setPageGuard(self, addr, size, guard=0x140): # Set PAGE_GUARD cmdVprotect = "!sdbgext.vprotect %x %x %x" cmdr = pykd.dbgCommand(cmdVprotect % (addr, size, guard)) dbiprintf(cmdr) def onException(self, exceptInfo): [...] read more
windbg
breakpoints
pykd
0votes
1answer

Window Registry create key not working in java

My Laptop configuration is 64-bit window 8. When user select pdf file and do right click at that time i need to add context menu. I googling too much and i found some solution. But no one can solve my problem. I found below link for my problem read/write to [...] read more
java
windows
windows-8
registry
0votes
0answers

Bootloader Page Fault

So today I was creating another bootloader, and thought that it would be nice if I would be able to use power of 64 bit processors. Everything seems to be running fine until my bochs start to restart due to Page Fault. NOTE: parts of code is copied from osdev [...] read more
assembly
nasm
bare-metal
page-fault
0votes
1answer

C++ CPCL Zebra via Motorola PRINT_SendCommand()

I need to create a C++ program that will send data to printer Zebra QLn320 from Motorola PDA (via RS232). Motorola provides some interface (Mobility Development Kit) but something is wrong. When I create standard CPCL command and send it to the printer from VB.NET (via RS232) it works well. [...] read more
zebra-printers
motorola-emdk
0votes
1answer

Identification registers in a processor

recently I came across a term "identification register" related to Intel Processors. It was like key-value pair "IdentificationRegisters": "0x34AC34DC8901274A". Now since I don't know much about these terminologies related to processors(may be to identify them !), can I get some input from this community regarding what this could mean ? [...] read more
intel
cpu-registers
cpu-architecture
processor
0votes
0answers

Weird exception callstack calling a method

I have the following callstak in a crash dump. It is the first time I see something like this and I don't get what it means: ntdll.dll!_RtlCallVectoredExceptionHandlers@8() + 0xa bytes ntdll.dll!_RtlDispatchException@8() + 0x19 bytes ntdll.dll!_KiUserExceptionDispatcher@8() + 0xf bytes ntdll.dll!_RtlUnwind@16() + 0x352e8 bytes MSVCR110_CLR0400.dll!_UnwindNestedFrames() + 0x2a bytes MSVCR110_CLR0400.dll!___DestructExceptionObject() - 0x534 bytes [...] read more
c#
.net
stack-trace
jit
dump
0votes
1answer

genymotion fails on running with "Fatal IO error: client killed" error

I installed genymotion on Ubuntu 14.04 and when I start it I see in console: eizotov@dev-inviuweb-03:~/genymotion$ ./genymotion Logging activities to file: /home/eizotov/.Genymobile/genymotion.log eizotov@dev-inviuweb-03:~/genymotion$ In the log file I see: Feb 16 15:32:55 [Genymotion] [Warning] **** STARTING GENYMOTION **** Feb 16 15:32:55 [Genymotion] [Warning] Genymotion Version: Genymotion 2.3.1 Feb 16 15:32:55 [...] read more
ubuntu
genymotion
0votes
2answers

bit manipulation C allEvenBits

I have to use bitwise manipulations to accomplish something. This is what the question asks of me: /* * allEvenBits - return 1 if all even-numbered bits in word set to 1 * Examples allEvenBits(0xFFFFFFFE) = 0, allEvenBits(0x55555555) = 1 * Legal ops: ! ~ & ^ | + << [...] read more
c
bit-manipulation
0votes
1answer

Issues with regular expression

I have written a script, which polls a log file entries last half an hour only and send an email, if error is found.I have scheduled this script to run in crontab for every half an hr. Below is the script. But this script is not working as I wanted [...] read more
bash
shell
solaris
0votes
2answers

Scanning the log files for last 30 minutes of data

I have to write a shell/perl script to scan a log file for last 30 mins worth Data. The requirement is to schedule this script in Cron to run every 30 minutes and look for a error string. OS: Solaris Shell:Bash I have tried below script, but it has become [...] read more
bash
perl
shell
solaris
perlscript
0votes
1answer

Android app crashes after successfully executing all desired actions

I'm developing with RAD-Studio XE7 an app for Android. Everything is going fine up to the point where the app crashes with seg-fault(11). I retraced this to the "end;" of a procedure, where the system-memory-releases are executed. In System._InstClear the program stops at "ldr.w r1 [r1,#-60]" where the register R1 [...] read more
android
delphi
firemonkey
0votes
1answer

Rounding issues with bitwise C code

I have to following bitwise code which casts a floating point value (packaged in an int) to an int value. Question: There are rounding issues so it fails in cases where input is 0x80000001 for example. How do I handle this? Here is the code: if(x == 0) return x; [...] read more
c
bit-manipulation
0votes
0answers

Debugging heap corruption in windbg (glEnableVertexAttribArray gives access violation)

void TE::Render::APIVertexBufferLayout::Enable() { if (m_hasPosition) { glEnableVertexAttribArray(0); glVertexAttribPointer(0, m_positionValueCount, m_positionValueType, GL_F ALSE, m_stride, (void*)m_positionOffset); } if (m_hasNormals) { glEnableVertexAttribArray(1); glVertexAttribPointer(1, m_normalValueCount, m_normalValueType, GL_FALSE, 0, ( void*)m_normalOffset); } for(unsigned i = 0; i < m_textureCount; ++i) { glEnableVertexAttribArray(2+i); glVertexAttribPointer(2+i, m_textureValueCount[i], m_textureValueType[i], GL_FALSE, m_stride, (void*)m_textureOffset[i]); } } I was getting a access [...] read more
c++
opengl
heap
windbg
0votes
2answers

How to iterator the enum in c++ like java?

> Possible Duplicate: > C++: Iterate through an enum I have following enum in c++; typedef enum { APP_NONE = 0, APP_SESSION = 0x80000001, APP_TITLE = 2, } APP_TYPE; I am writing a test function, which accept a string, get related integer, such as: getEnumByString("APP_NONE") = 0; or vice verse [...] read more
c++
enums
0votes
1answer

StdRegProv .CheckAccess method in JScript - error: Object expected

This script is getting Microsoft JScript runtime error: Object expected on If (out_params.bGranted) line. It seems like this is related to a syntax error, but I can't find it. This code, in its current form, was basically copied from Invoking functions with `out` arguments, passing arguments by reference in JScript. [...] read more
wsh
jscript
0votes
2answers

Android application is not Runnning Error:Resources$NotFoundException: Resource ID #0x7f030004

I'm stuck between some unusual problem.My app was running properly but I did some changes and switch the workspace. Now if I run my project the application closes with "Force to close" dialog. I couldn't understand my log cat error detail. Edit: R File: public static final int main=0x7f030004; Java [...] read more
android
exception
-1votes
2answers

Why (unsigned short) 0x8000 0001 is 1 not 65535?

C 11 6.3.1.3, for cast: > Otherwise, if the new type is unsigned, the value is converted by repeatedly > adding or subtracting one more than the maximum value that can be represented > in the new type until the value is in the range of the new type. When [...] read more
c
casting
-3votes
1answer

Detect SMB1 version via powershell for all OSes

My workflow: * check if server is pingable * find if they are domain connected or not and perform a task accordingly. if Operating system 2012 and/or R2 ,2016 or 2019 newer OSes then I will run Get-SmbServerConfiguration cmdlet. if machine is not a part of default domain then else [...] read more
powershell

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0