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've heard of Lucene.Net and I've heard of Apache Tika. The question is - how do I index these documents using C# vs Java? I think the issue is that there is no .Net equivalent of Tika which extracts relevant text from these document types. UPDATE - Feb 05 2011 [...] read more
I bought a new Alienware and they won't provide support for Windows Update (why should they, really). I go and try to run the IE 10 update like so: enter image description here [https://i.stack.imgur.com/EvMph.gif] And, it hangs a bit on the screen above. Then, it shows this error: enter image [...] read more
I am trying to build a proof-of-concept android application which uses OpenSSH code to establish a SSH session with a server. For that I am using android sources to build the required libraries and then pull them up to an AndroidStudio native project where everything should be packed and installed [...] read more
An application is generating a core file. Here is the core info. The error stack was obtained and the objective is to check the data content within the myStruct variable as this is what gets passed into myFunction when the core occurs. (gdb) where #0 0x000000000041bba1 in myFunction (myStruct=0x7ffff9dd0c20) at [...] read more
I came across this useful feature in ELF binaries -- Build ID. "It ... is (normally) the SHA1 hash over all code sections in the ELF image." One can read it with GNU utility: $ readelf -n /bin/bash ... Displaying notes found at file offset 0x00000274 with length 0x00000024: Owner [...] read more
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 am trying to make a usable setup for gcc-linaro-arm-linux-gnueabihf-4.8-2013.11 on windows. Something happens at dynamic link: $(CC)-gcc -o test main.c -Wall -lc The program compiles fine, but when deployed to ARM shows: "No such file or directory" Searching the issue, seems that static build works but executable is huge: [...] read more
I'm trying to read a png file using libpng 1.2.10 in vs2013. I downloaded the latest zlib and compiled pnglib, which worked fine. Now I'm trying to load a file: int *w = &width; int *h = &height; const char* name = file.c_str(); FILE *png_file = fopen(name, "rb"); if (!png_file) [...] read more
I've been using WSUS to roll out IE11, there's a few stranglers that IE11 will not install and I've started looking into. Here's what I've done. 1. Confirmed all prerequisite updates have been done. 2. I'm using the x64 bit package of ie11 and only using x64 servers and workstations. [...] read more
Sorry if there are other questions like this one, but I tried almost everything with no results. I have an assembly file calling the main function of a cpp file(I'm making a kernel entry) kerne.asm [bits 32] [extern _main] jmp _main cli hlt main.cpp void a() { //a } void [...] read more
I have a UIViewController. In this controller I programmatically create a UITextView and set its delegate as my controller. I do this because I dont want to start editing the textView when I tap it. ViewDidLoad method UITextView* textView = [[UITextView alloc] initWithFrame:CGRectMake(9, 10, 302, 200)]; [textView setDelegate:self]; [self.view addSubview:textView]; [...] read more
I'm trying to upgrade Internet Explorer my Windows 7 (x64) development VM from IE8 to IE11. Both the online and offline installers fail with a bland error message: enter image description here [https://i.stack.imgur.com/0dueo.png] The troubleshooter tells me nothing, but the IE11_main.log reveals: 00:04.524: INFO: Download for KB2834140 initiated. Downloading http://go.microsoft.com/fwlink/?LinkID=303935 [...] read more
I use grub to load my kernel. Although I specified .=0x100 0000 in the linker script, I can only find a valid MultiBoot2 header at 0x10 0000. After comparing them one by one, I found that it is not my kernel. And use gdb to debug Found that qemu's RIP [...] read more
JSCRIPT UNEXPECTED EXCEPTIONS After Windows Server patch Vulnerability (CVE-2019-1367) released in 23. September * Windows Server 2019 (KB4522015) https://support.microsoft.com/en-us/help/4522015/windows-10-update-kb4522015 * Windows Server 2016 (KB4522010) * Windows Server 2008 R2 for x64-based Systems Service Pack 1 (KB4522007) * Windows Server 2012 (KB4522007) * Windows Server 2012 R2 (KB4522007) Updated 07.10.2019 Also [...] read more
Unhandled exception at 0x777745BA (ntdll.dll) in MASM1.exe: 0xC0000005: Access violation writing location 0x00000014. I'm using x86 assembly in visual studios 2017 and it keeps returning this error I have included all of the libraries and installed windows 10 sdk. I am basically stumped as of why this is returning this [...] read more
So I recently started working on my binary which is vulnerable to Use-After-Free. I found it too easy to just jump to secret(). So I added a variable to the _DATA section and set its value to 0. and then I added a hard coded check in secret: if(check == [...] read more
I've created project using CMake in VS. Later I've add boost and gmock usage. GMock forced me to set /MT flag on all project in solution (main exe, plugins, dll, UT). Now I'm facing strange problem. Log4Qt is my logging library. During startup when loggers are created deep inside this [...] read more
I'm trying to test classic BPF for packet filtering by attaching it to raw socket. I want to catch TCP packets with first byte of source port == 8 (tcpdump 'tcp[1:1] = 0x50'), but I see no incoming packets on the socket. Without filter my code works OK. Here is [...] read more
I'm building a library that I can reuse for multiple devices to save me setting up the same functions in my code over and over again. I'm having issues when trying to publish a message, and I'm hoping you can help! The code is targeting an ESP32 with BLE and [...] read more
I'm trying to extract the DateTime from a JPEG file's Exif header. I did a quick hex dump to try and locate the Tiff entry. Here's a snippet of the hex dump: 00000000 ff d8 ff e1 27 19 45 78 69 66 00 00 4d 4d 00 2a |....'.Exif..MM.*| [...] read more
I'm debugging a problem with a composite device that I'm creating, and have recreated the issue in freshly-CubeMX-generated HID-only code, to make it easier to resolve. I've added small amount of code to main() to let me send USB HID mouse-clicks, and flash an LED, when the blue-button is pressed. [...] read more
I am trying to figure out how to access the build-id generated by the linker at runtime. From this page, https://linux.die.net/man/1/ld When I build a test program like: % gcc test.c -o test -Wl,--build-id=sha1 I can see that the build ID is present in the binary: % readelf -n test [...] read more
I am builing a Python Application that decompiles Android APK makes some modifications and recompiles it. Here is the code: from shutil import copyfile # Copy the APK to the output directory. copyfile('./source/rat.apk', './output/rat.apk') # Decompiles the APK. subprocess.call(['apktool','d','./output/rat.apk','-f'], stdout=FNULL, stderr=subprocess.STDOUT) # Modifies address and port. with open('./output/RAT/app/src/main/res/values/strings.xml','w+') as netaddress: [...] read more
Completely stuck on linking stage, when migrating group of projects to C++Builder XE10.2. Win32 target, clang compiler. The module, which causes ilink32 to fail with abovementioned error, uses boost::spirit classic. What is puzzling, is that another project from the same group passes linking OK, while using boost::spirit as well, with [...] read more
I have a massive C/C++ library that I'm trying to use through JNI for an Android project. It's comprised of several classes that were originally written for MFC and we've ported them over for execution on the Android environment. The library builds fine (at least according to ndk-build). The size [...] read more
I have little to no understanding how low-level programming languages work, so please bear with me. I need to load compiled C (.so file) library into android 6.0+ (SdkVersion: 23+) Using: static { System.loadLibrary("dsdrv"); } I get an error: FATAL EXCEPTION: main Process: com.logicants.scanner3, PID: 11415 java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.logicants.scanner3-1/lib/arm/libdsdrv.so" [...] read more
I'm trying to use Windows RPC for communcation between two processes (C/C++, 32bit, Win7). I've followed the example here Instruction to RPC and successfully got RPC to work. Now I have difficulties getting the proxy / stub thing to work too. The IDL file looks like this: [ uuid(3cb112c0-688a-4611-83b6-31d33d87ea28), object [...] read more
I am attempting to tweak Hyper-V Core Server 2019 (host) power thresholds, however my attempts have failed so far. Scenario The newly created Hyper-V 2019 Server (part of Workgroup, not yet a Domain) has been attached to an external UPS. Battery status is provided through a USB cable. The UPS [...] read more
I have Mellanox MT27500 dual port card which is installed on HP SL250s. Ubuntu 14.04.5 with 3.13.0-24-generic kernel is running on the server. Both port1 type and port 2 type are defined as eth. I have connected port 1 and port 2 to switch with same type of cable but [...] read more
I've built an RPM using redline rpm library for java. When I try to uninstall the rpm it says it was removed but when I do a list it is still there and says it is still installed. Here is the results of my uninstall with as much debug as [...] 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
As the title suggests, my Esp32 panics every other HTTP Post request. The first one it works fine, the second one i get a 400 error, the Esp panics and then restarts itsself. This wouldnt be this much of an issue if the Esp didnt power any other things, however [...] read more
I'm programming an ESP32 via ArduinoIDE and stumble upon a strange problem. It operates as WiFi access point, the code is quite simple and straight-forward: IPAddress apIP(192,168,1,1); WiFi.mode(WIFI_AP); WiFi.softAP("MyESP32"); WiFi.softAPConfig(apIP,apIP,IPAddress(255,255,255,0)); Now when a client connects to this AP, it often prints out these error messages: dhcps: send_nak>>udp_sendto result 0 dhcps: [...] read more
I have a problem loading a texture using SDL library. Usually I make programs on Linux but I try to create a code that is compatible with Visual Studio also. On Linux are everything OK but on Visual Studio it crashes in "GL_UNSIGNED_SHORT_5_6_5" in the glTexImage2D(...) function. Below is a [...] read more
I'd like to check the library under investigation what flags and options were built with? I'm trying to use gcc compiler with option -frecord-gcc-switches to understand on my simple shared library but with no luck. The following is the piece of code that form a shared library : #include "shared.h" [...] read more
I tried several iterations of this code using methods, schedules and others. I managed to get over "access violation writing error" but "access violation reading error" is still present no matter what I try. Here is the code: import pyglet window = pyglet.window.Window() window.set_caption('First Pyglet Experiment') player = pyglet.media.Player() player.queue(pyglet.resource.media('test [...] read more
I am using FBSDKShareKit to share video and images on facebook. Here is the code:- if self.postObject.videoUrl.count > 0 { let content = ShareMediaContent() for VideoData in self.postObject.postedMedia { let video = ShareVideo.init(data: VideoData) content.media.append(video) } for thumb in self.postObject.postedVideoThumb { let photo = SharePhoto(image: thumb, userGenerated: true) content.media.append(photo) } [...] read more
I have been trying to build the iOS version using Nativescript sidekick for two days now without luck. It used to build just fine in the past. Environment information 1. Sidekick Version: 1.19.2-v.2019.11.18.2 (latest) 2. NativeScript CLI version: 6.2.2 3. CLI extension nativescript-cloud version: 1.19.3 4. CLI extension nativescript-starter-kits version: [...] read more
Dear stackoverflow community. I'm cross-compiling Qt 5.12 for my Beaglebone Black with EGL support. The host OS is Ubuntu 18.04.1 LTS (x64) running in a VM. I have installed any possible dependcies (I could find in different posts) on the target (and some on the host as well) and copied [...] read more
I run (debug) my program about stereo vision and get this error. I also re-install Visual Studio 2010 Ultimate, but this issue still appeared. > Unhandled exception at 0x77081d76 (ntdll.dll) in Stereo Vision.exe: > 0xC0000005: Access violation writing location 0x00000014. I know something wrong with my dll or location of [...] read more
I have a cd , dvd. book media program. Currently, i am trying to add book information to a set. I am getting a nasty crash. error: Unhandled exception at 0x00449d76 in a04xc.exe: 0xC0000005: Access violation reading location 0x00000014. So, obviously its trying to access memory its not suppose to? [...] read more
run this code i got some error like this ' Exception thrown at 0x778D7FCB (ntdll.dll) in Project1.exe: 0xC0000005: Access violation reading location 0x00000014.' This error occurs in this line ~UnivStudnet() { delete[]major; // error } #include <iostream> #include <cstring> using namespace std; class Person { private: char * name; public: [...] read more
I want to add some controls to the tab page in tabcontrol but it seems that it will be added to all pages and there is not tab page in tabcontrol by default. I have read these links below but they did not help me and in some parts of [...] 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 keep getting an error when call std::getline, the debugger shows a break in a fstream function """virtual void __CLR_OR_THIS_CALL _Lock()""" Here is my code (Read File function): string GetFile(const string& fileName) { string line; string output; ifstream myfile (fileName); myfile.open(fileName);//.c_str()); if (myfile.is_open()) { while ( getline (myfile,line) ) { [...] read more
Background "OS": Stripped down Linux, very customized, no internet access (no yum, apt-get, etc) Kernel: 2.6.19.1 Target: 32-bit, armv5te Current LibC: 2.3.6 Target LibC: 2.6.1 Issue Received an .ipk from a 3rd party vendor containing an updated version of glibc. Started by investigating the compatibility of the shared objects contained [...] read more
I have a .NET application running in production environment (WINDOWS XP + .NET 3.5 SP1) with a stable handle count around 2000, but in some unknown situation, its handle count will increase extremely fast and finally crash itself(over 10,000 which monitored by PerfMon tool). I've made a memory dump from [...] read more
I am on win7 64bit home edition. All of my projects are set to build in a 32bit environment using C++. I have successfully built libpng in debug mode using MDd runtime. I have two active projects. My first project is in VS2010 and my second is in VS2012. Within [...] read more
I'm trying to open an OggVorbis file using the Vorbis SDK/DLLs. ov_open() throws an Access Violation exception 0x00000014. I have checked the file exists: I've opened it with fopen and printed the contents to the console just to check - all went fine! Might not make a difference, but the [...] read more
I want get the row number of data, but the pointer CvMat* data, CvMat* responses get nothing in main(). The minimal, complete and varifiable example is showed as follow: #include "opencv2/core/core_c.h" #include "opencv2/ml/ml.hpp" #include <cstdio> #include <fstream> #include <iomanip> #define ATTRIBUTES_PER_SAMPLE 9 #define NUM_OF_ALL_SAMPLES 950 using namespace std; int read_data( [...] read more
Today I upgraded to Xcode 7.3, and I also started getting odd behavior from NSUserDefaults. I don't know if they're related. String values I store in defaults are not visible upon retrieval but they have length and support substring extraction: (lldb) po [[NSUserDefaults standardUserDefaults] objectForKey:UDEmail] (lldb) po [[[NSUserDefaults standardUserDefaults] objectForKey:UDEmail] [...] read more
I have an Ubuntu 14.04 HTPC for quite some time. It's connected by toslink to a logitech z5500. Sound was working, but suddenly stopped... I've followed almost every guide and how-to to fix my sound, but it won't seem to help. Some information: !!################################ !!ALSA Information Script v 0.4.63 !!################################ [...] 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 created a simple, recursive factorial() function which calls a recursive multiplication function called mul_alt() whenever it evaluates n * factorial(n-1). So instead of return n * factorial(n-1) (in C notation), the factorial() function executes return mul_alt(n, factorial(n-1)), where the called function would add n + n + ... factorial(n-1) [...] read more
I'm using the new Project Reunion 0.5/WinUI3 Preview 5. And after my upgrade from Preview 4, I started to get this error: Exception thrown at 0x76C5A8B2 in ReunionTest.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x00D7E290. The Output shows: Exception thrown at 0x76C5A8B2 (KernelBase.dll) in ReunionTest.exe: 0x40080202: WinRT transform error [...] read more
I am struggling with a problem in Unity3D Android game. It is very hard to repeat Crash. It happens sometimes after 1 hour, sometimes 2 hours of playing every time in different situations and I can't find any reason. I have tried different versions of Unity: * 2020.2.1f1 * 2019.3.12f1 [...] read more
I am trying to inject a Frida gadget into an Android App which is already installed on an emulated (MEmu) Android 7.1 rooted system. When I connect to the device using adb, I can see that the files are store here: ASUS_Z01QD:/data/app/com.turtle.foo.bar-1 # ls base.apk lib oat split_config.armeabi_v7a.apk The MEmu [...] read more
I'm using IBM-MQ, and I want to get the number of subscribers for a specific topic using PCFMessage MQQueueManager qmgr = null; PCFMessageAgent agent = null; Hashtable<String, Object> hashtable = new Hashtable<String,Object>(); hashtable.put(MQConstants.HOST_NAME_PROPERTY,"HOST NAME"); hashtable.put(MQConstants.PORT_PROPERTY,1414); hashtable.put(MQConstants.CHANNEL_PROPERTY,"CHANNEL NAME"); hashtable.put(MQConstants.USER_ID_PROPERTY, "USER_ID"); hashtable.put(MQConstants.PASSWORD_PROPERTY, "PASSWORD"); agent = new PCFMessageAgent(qmgr); PCFMessage request = new PCFMessage(MQConstants.MQCMD_INQUIRE_TOPIC_STATUS); [...] 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
Hardware: Board: ESP32 Dev Module, node32, ttgo Core Installation version: not sure IDE name: Arduino IDE Flash Frequency: 40Mhz PSRAM enabled: not Upload Speed: 115200 Computer OS: Windows 10 Hi, I am working on a project, which is to use GSM to connect MQTT, and send instant data such as [...] read more
I'm running qemu on an Ubuntu 18.04 x64 host and trying to do user emulation of dynamic binaries built for Android (for aarch64 or i386) using the Android NDK, but I always get a segfault. For example: Build $ i686-linux-android28-clang hello_world.c -o hello_world Check dependecies and paths $ file ./hello_world [...] read more
I need to modify a build-id in the notes section of the ELF file. I see there are plenty of tools to read elf but not to modify them. I found elfedit but it doesn't seem to do what I need. Is it even possible? Here is the output of [...] read more
Working with Python 3.8, I am trying to call the following function of a C dll: extern void* __stdcall Reentrante_CreerNouvelleIdentification ( int NumeroDuCapteur , DetectorType_t DetectorType, float DetectorVolume, float Resolution, float ResolutionCzt, float C1 , float C2 , float C3 , float C4 , unsigned char CustomLibrary[NB_ISOTOPES_CANDIDAT], float FeThick, float [...] read more
I've already cleaned my project , Rebuild was done...but still no use. Then invalidated caches and restarted the project that too didn't helped me. I still receive this error from my logcat 2020-06-18 01:36:13.602 16501-16501/com.example.androiddata I/monsterLogging: Selected item: Grade 2 2020-06-18 01:36:13.737 16501-16501/com.example.androiddata I/monsterLogging: Selected Grade level: Grade 2 2020-06-18 [...] read more
I'm trying to install OpenGL in CLion on MacOS. My program compiles but when I run it I get this crashreport: Time Awake Since Boot: 6200 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination [...] read more
The following code illustrates: #include <stdio.h> #define NUMBER_1 1 int main(void) { int a; a = NUMBER_1; printf("Output: %d\r\n", a); return 0; } Changing the define to 2 causes the 20 bytes to change completely. I'm using gcc version 7.5.0 under ubuntu version 18.04. I suspect this is some sort [...] read more
i recently set up required software for development for the Microsoft HoloLens(1st. gen) with the newest version of the HoloLens(1st. gen) emulator (followed the MRTK-Guide: https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/GettingStartedWithTheMRTK.html#get-the-latest-mrtk-unity-packages). I already tested some example scenes from the MRTK on the emulator and everything works as expected. However, when i test the SpatialAwarenessMeshDemo, the [...] read more
I am hoping someone may be able to help explain why I am receiving access violations when running my code below. As a disclaimer: this is a homework assignment I have been troubleshooting and working on for several days without much progress. I do not intend on turning in without [...] read more
I'm trying to OTA update the ESP32 by letting it make a get request to a file on Azure blob storage. For some unknown reason it won't let me use the WifiClient.connect() function, since it always returns a 0. So now I'm using the HTTPClient library to make a get [...] read more
Since MacOS 10.13 I have the following problem. 1. /usr/bin/hdiutil attach "target/MyDrive-tmp.dmg" -mountroot /tmp /dev/disk3 GUID_partition_scheme /dev/disk3s1 Apple_APFS /dev/disk4 EF57347C-0000-11AA-AA11-0030654 /dev/disk4s1 41504653-0000-11AA-AA11-0030654 /private/tmp/MyDrive 2. /usr/bin/hdiutil detach -force -debug "/tmp/MyDrive" or diskutil eject "/tmp/MyDrive" process_detach: entry with "/tmp/MyDrive" util_verify_dev_entry: entry with "disk4s1". process_detach_deventry: about to unmount_and_eject disk4s1 unmount_and_eject(disk4s1) LetDIDriverSettleDown: calling IOServiceWaitQuiet... [...] read more
Update 1: Here's the simplified version: So I have a special fixed-size child window that I want to make it stay at the right side of the resizable main window. When users resize the main window by dragging the left/right edge of it, WM_WINDOWPOSCHANGED is sent, the child window will [...] read more
I have a Sparc processor which stores data in big endian by 32 bits and an Intel processor which stores little endian. How can i send the value 20 from the Sparc processor to the little endian? I am thinking that 20 is represented by 0x00000014 in hexadecimal so the [...] 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
I ran into an integer overflow problem, which I managed to solve, but only by trial and error. Since it's an integer overflow problem, I've wrote some code to print out the buffer. The beginning of the buffer is the address where array[0] is stored. Then, I started to pass [...] read more
First I follow the DS-5 start demo and can debug my code correctly on the ARM FVP -> VE_Coretex_A9x1. Then I follow the link to enable NEON and it needs to set CPU target in the build, the axf file has been built correctly but the debugger stops to work. [...] read more
I'm trying to compile the same lib on two x86 separate machines. Both use the same toolchain (exactly same set of files) but have different Glibc versions. When I run command LD_DEBUG=libs /lib64/ld-linux-x86-64.so.2 --list ./libl2ps.so I notice the following discrepancy between the 2 Linux loaders: Machine 1 (with Glibc 2.12): [...] read more
I am currently writing a compiler (http://curly-lang.org if you're curious), and have been encountering a strange bug when trying to run the generated ELF binaries on the latest Linux kernel. The same binaries run fine on older kernels (I've tried on several Ubuntu boxes, uname 4.4.0-1049-aws), but on my updated [...] read more
So I'm writing a simple ETW logger to provide a trigger-event state machine to wake up whenever a new USB device is connected. Using microsoft's Messages analyzer I managed to trace and receive USB "new usb device information" traces using the following filter Microsoft_Windows_USB_USBHUB3.Summary == "New USB Device Information" However, [...] read more
I am testing some simple code running in the ARM7TDMI, since I haven't found ARM7TDMI simulator on QEMU, I use Cortex-a8 instead (I am not sure if this will lead to bug, total newbie). This is how I run QEMU: qemu-system-arm -machine realview-pb-a8 -cpu cortex-a8 -nographic -monitor null -serial null [...] read more
I want to split an image into h,s and v channels. But an error occured every time and the reason seems to be that opencv split function does not work properly. My code: Mat src, srcHSV; Mat srcH; vector<Mat> channels; VideoCapture cap(0); for(int frame = 0; ; frame++) { cap [...] read more
Trying to use cJSON parser with STM32F103C8T6 and KEIL IDE The problem is that the parser works pretty well with up to 4 elements of the JSON string, when trying to add the fifth element it gives up. This code seems to be OK: #include "cJSON.h" const char * my_json_string [...] read more
This code generates an error: -------------------------------------------------------------------------------- DEBUGGER EXCEPTION NOTIFICATION PROJECT PROJECT3.EXE RAISED EXCEPTION CLASS $C0000005 WITH MESSAGE 'ACCESS VIOLATION AT 0X7757E12C: WRITE OF ADDRESS 0X00000014'. if Fowner_draw then begin canvas.CopyRect(ClientRect, FOD_canvas, ClientRect); end I found the solution by deleting pasteBmp.free; line from the code below. It seems like each time [...] read more
I have a i.MX7S board (WARP7) which has extension (Mikrobus standard) and an OLED C Click display (Mikrobus standard). I try many ways but still failed to enable & display something on OLED screen. Here are steps that I did: 1. Plug them together (with Mikrobus standard) 2. Bitbake and [...] read more
I'm configuring the RCC to activate clock for peripherals. However, when I use the SFRs to check registers, it doesn't match what I programmed. RCC->AHBENR = (uint32_t) 0x000C0004; When I check the AHBENR,the value is 0x14 I previously had only 0x00000014, so I am not sure if I'm compiling a [...] read more
I am trying to find an exception by comparing the t0 value. I must have something wrong on the hex numbers that i compare the t0 value..do anyone know? sw $v0 save0 mfc0 $t0 $13 srl $t0 $0 2 andi $t0 $t0 0x7c beq $t0 0x00000008 bad_address_load beq $t0 0x0000000a [...] read more
I have problem, got access violation when trying to use QTextStream for data reading or writing to console: > First-chance exception at 0x77BD1D76 (ntdll.dll) in ApplicationStub.exe: > 0xC0000005: > Access violation writing location 0x00000014. > > Unhandled exception at 0x77BD1D76 (ntdll.dll) in ApplicationStub.exe: > 0xC0000005: > Access violation writing location [...] read more
When I was trying to run the rails application following segmentation error has occurred: > => Booting Thin > => Rails 4.2.6 application starting in development on http://localhost:4000 > => Run `rails server -h` for more startup options > => Ctrl-C to shutdown server > Thin web server (v1.7.0 codename [...] read more
So I have this ifStream and it reads alright from the file. I read one line in order to check the type of item I am reading in. Then After I have read in that i pass the stream to another class which reads some more but when it gets [...] read more
I'm making some exercises on assembly MIPS(32 bit) and I don't really understand how the left shift by 2 works. I'll add a couple of examples just to explain it better. * Instruction is 0x91050014 I have to take the last 16 bits and then extend them to 32 bits. [...] read more
I wanted to try using the class CImage, which comes from GDI+, to load an image and draw it at some place in my Graphical User Interface. However, the programm crashes as soon as I call CImage's constructor, it seems, displaying the error: Unhandled exception at 0x7757D968 (ntdll.dll) in myProgramm.exe: [...] read more
Given this code: [0x00000000] arraycopy: lw $t0, 0($a0) [0x00000004] addi $a0, $a0,4 [0x00000008] addi $a1, $a1,4 [0x0000000C] sw $t0, -4($a1) [0x00000010] bne $t0,$0,arraycopy [0x00000014] Nop ( means no operation ) Now I'm interested to translate the bne command line to machine code: What I got: 0001 0100 0000 1000 - [...] read more
I have to decode this assembly language for the bomb lab: Dump of assembler code for function phase_5: 0x08048e79 <+0>: push %ebx 0x08048e7a <+1>: sub $0x28,%esp 0x08048e7d <+4>: lea 0x1c(%esp),%eax 0x08048e81 <+8>: mov %eax,0xc(%esp) 0x08048e85 <+12>: lea 0x18(%esp),%eax 0x08048e89 <+16>: mov %eax,0x8(%esp) 0x08048e8d <+20>: movl $0x804a9de,0x4(%esp) 0x08048e95 <+28>: mov 0x30(%esp),%eax [...] read more
I am writing a program for a project at school that requires us to create a Binary Search Tree based on data read from a file (in this case strings). The tree should allow for duplicates by incrementing an integer value when a duplicate string is entered. The TreeNode is [...] read more
i've successfully cross compiled a c++ library to the android plateform using the android ndk standalone toolchain. i've created a new android application project into Eclipse with a jni dolder and Android.mk file and when i do an ndk-build the building goes well and it adds mylib.so to libs/armeabi folder [...] read more
We have a PInvoke as follows: [DllImport(DllName, EntryPoint = "ExternalName", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr ExternalFunction(IntPtr state, IntPtr inputData, int inputIndex, int inputLength, int tailLength); With the C declaration as follows: void * __cdecl ExernalName(void* state, void* inputData, int32_t inputIndex, int32_t inputLength, int32_t tailLength); When [...] read more
I am currently making a small c++ engine using opengl and glfw and I get a weird error while trying to call the glfwWindowShouldClose(window) function here is my code : #include "Engine\Window.h" #include <iostream> using namespace std; int main() { GLFWwindow* window = 0; Window::InitGLFW(); Window::CreateWindow(window,640,480,"1"); while (true) { if [...] read more
I'm attempting to use fopen to open a file. I'm using an absolute path, the file does exist, and it's not corrupt. Also, all system users have full access to read/write the file. const char* filename = "absolute\\path\\to\\file.something"; const char* mode = "rb"; FILE* file = fopen(filename, mode); std::cout << [...] read more
win 7 python 2.7 In python, I call a function in dll using ctype to read flash value in a MCU. But I got the access violation writing 0x00000014 error. dll function: int get_flash_value(int addr, int readlen, char *data) { unsigned char read_data[4096]; int ret; int i; const unsigned int [...] read more