I’m writing a device driver (for Linux kernel 2.6.x) that interacts directly with physical RAM using physical addresses. For my device’s memory layout (according to the output of cat /proc/iomem), System RAM begins at physical address 0x80000000; however, this code may run on other devices with di…
Strange pointer position in the stack
I wrote this simple code: and I’ve disassembled it to see what the compiler does. Using objdump I obtain: I can understand everything except for the mov QWORD PTR [rbp-0x10],0x0, this correspond (I think)to p=NULL; but from mov QWORD PTR [rbp-0x8],rax I know that my pointer is on rbp-0x8 and it seems co…
Creating “background running” children with fork() and kill each of them with signals
I need to create n children from the same parent, and have them running while the parent asks infinitely for a signal to send to some child. I made the parent create those n children, but they finished executing, so I made them enter a while(1) loop. The problem is, when I try to kill any child, it becomes a
Pcregrep include file extension bug
I’m using pcregrep to search for a multiline pattern, and I only want pcregrep to search through files with specific file extensions, i.e. pcregrep -Mrl –include=*.sv -e ‘<my_multi-line_pattern>’ /path/to/search However, this throws an error: pcregrep: Error in ‘includeR…
How to run npm or angular 2 ng serve command from Bash Script?
I am looking to create an interactive bash script for our development team (never did this before) as our project has various needs and due to future growth on the team I want this to be easy as pi. Normally for my work on the team I would change directory to the angular folder and run ng serve which kicks
Stop timesyncd from polling hard coded Debian timeservers
The systemd-timesyncd daemon repeatedly tries to contact the following hard coded (compiled) time servers if neither an NTP server is specified manually nor one received via DHCP: Since I’m operating behind a corporate proxy, it will never be successful to reach these servers. Is there a way to prevent …
ODBC Error Connecting Teradata
I have installed Teradata ODBC driver on Debian via alien. Dependencies checked via ldd and are fufiled.. But when attempting to connect to the DB I am getting following errors (with Debug) Any idea how to get rid of those errors? It seems to be a root cause of failing connections Architecture X64 OS Debian 7…
“vagrant halt” dies with error “The SSH connection was unexpectedly closed by the remote end…” But the machine successfully shuts down. (
I have 6 VM’s running Ubuntu 16.04, the host is also Ubuntu 16.04. Vagrant version 1.8.1 When I run vagrant halt, I get the error: Watching the VirtualBox GUI I see the VM shuts down. But the vagrant script stops and does not try and shut down the other VMs. I have to run “vagrant halt” once…
Scrapy FakeUserAgentError: Error occurred during getting browser
I use Scrapy FakeUserAgent and keep getting this error on my Linux Server. I keep getting this error on the Linux server when I run multiple spiders concurrently. This error rarely happens on my own laptop. What should I do to avoid that? Do I have to raise the RAM or something? The server’s spec is 512…
Using MySQL INTO OUTFILE not writing to tmp
I’ve recently moved a project to a live VM instance, it worked perfectly during development and testing on my macOS box using XAMPP. Essentially the web app has 3 export options: XML, PDF and CSV. XML works fine and is created using a SELECT statement then looping through the results and pushing that in…