227,588 questions
2
votes
1
answer
92
views
Is it possible to load a function symbol from an executable
I have 2 files:
foo.c:
#include <stdio.h>
int Main(int a) {
printf("A%dB",a);
}
int main() {
return Main(1);
}
bar.c:
extern int Main(int);
int main() {
return Main(2);
}
...
Advice
0
votes
1
replies
22
views
How to set physical machine access when mount to docker container?
I'm trying to run postgresql. after checking their document, I added this volume mount
/path/to/data:/var/lib/postgresql/18/docker
my container failed immedeately,
chmod: changing permissions of '/var/...
-1
votes
0
answers
36
views
My GPU is not working, it is MSI RTX 5070 [closed]
My gpu is not detected in my computer. I have installed 580.105.08.run, cuda 13.0. I confirmed everything installed successfully but still problem persists.
0
votes
0
answers
32
views
How can I connect to HFSQL C/S using python on Linux?
I am trying to connect to a legacy HFSQL (HyperFileSQL) Client/Server database using Python (pyodbc) on a Linux Ubuntu machine.
I have followed the official documentation to install the specific ODBC ...
-3
votes
0
answers
66
views
Write FPDMA Queued Error: Minecraft Server
A friend and I have been running a Minecraft server on an Ubuntu server, and its been going great. For the last month everything has been running smoothly, until just last week we started getting this ...
0
votes
0
answers
56
views
Why Does Trying to Load rJava Keep Resulting in an Error?
I am trying to run r5r for a transit network based analysis.
I am using R 4.4.3 in Positron on Fedora 41.
Some context for me is that I have a couple years of R underneath my belt, but I am absolutely ...
0
votes
0
answers
31
views
Monitor sigprocmask calls with Syscall User Dispatch?
I'm using prctl(PR_SET_SYSCALL_USER_DISPATCH, ...) to enable Syscall User Dispatch with a SIGSYS handler that gets called when the application issues any syscall. The prctl() call also marks the code ...
-3
votes
0
answers
25
views
How to handle crontab across multiple users on the same virtual machine? [closed]
Me and my team are working on a RHEL virtual machine and we were wondering how to handle the same crontabs from multiple users.
When one of the users does set a crontab no one but the user itself can ...
-1
votes
0
answers
31
views
How to fix terminal on linux? [closed]
I was using the root directory for exploring the file system and i look for some dev, bin , sbin and so on and after sometime i open my terminal and saw this : zsh compinit: insecure files, run ...
3
votes
1
answer
190
views
Why does sequential array access have a high cache miss rate?
I have the following C code that I am testing to understand perf and caching. It sequentially accesses an array of doubles.
// test.c
#include <stdio.h>
#include <stdlib.h>
#include <...
2
votes
0
answers
81
views
+100
In-Order Delivery of UIO Interrupts for Userspace Driver
I have multiple UIO interrupts defined. I am using Linux 6.12 without the realtime config (so, using the default scheduler, CFS).
My userspace driver is using poll in a loop to watch these interrupts ...
-1
votes
0
answers
67
views
i686-elf-gcc "Error: invalid instruction suffix for 'push'/'pop'" [closed]
I'm following the barebones guide on OSDev Wiki and I'm trying to compile my kernel.c file with
i686-elf-gcc -ffreestanding -O2 -m32 -c kernel.c -o kernel.o
but I constantly get the following ...
Tooling
0
votes
7
replies
105
views
One liner to get distinct values of all columns of a tsv
I am looking for a one liner that could be run in a linux terminal that does the below.
Takes as input a tab separated file (tsv) with many columns (~100) and creates a two column tsv output with ...
3
votes
2
answers
105
views
Handling Buffer Size Errors in strftime: ERANGE vs EOVERFLOW
I have an application where I need to generate date and time based on the locale using the strftime function provided by C's time.h:
#include <stdio.h>
#include <time.h>
#include <...
1
vote
0
answers
96
views
Is it possible to set stdin of a process to a pipe and the rest to a TTY device?
I am trying to spawn a process so that I can do the following:
Send text to its standard input and specify EOF by closing the stdin pipe.
Connect the process' stdout and stderr to a TTY device so ...
Advice
0
votes
2
replies
32
views
How to manage patches on a Debian Host with Apache2 as Webserver
I have set up a Debian 12 (Bookworm) host and went through some basic steps to install Apache2 and activate SSL/HTTPs on the backend. Http disabled.
As far as I know the usual tool for managing/...
0
votes
0
answers
76
views
How to disable automatic radiotap header insertion in raw sockets?
I’m working on a tool using raw system sockets.
The tool needs to send packets with low-level protocols such as IEEE 802.1X.
When I inspect the packets in Wireshark, I notice that the radiotap header ...
Advice
0
votes
0
replies
73
views
Design review: ntfy-based remote unlock for Vaultwarden without exposing .env passphrase on a compromised host?
(If you want to skip to the part I ask the question, scroll down to the last section with the heading "Concrete question".)
I’m working on a home lab / learning project and would appreciate ...
-5
votes
0
answers
58
views
How do I uninstall R completely to fix install.packages() function problem? [closed]
I am running R on linux mint 22.2 Cinnamon and my install.packages() command is not functionning. So I tried to uninstall R a first time, but apparently all of my R data was not uninstalled. So I ...
3
votes
1
answer
114
views
Inconsistent behavior of DELETE_ON_CLOSE between platforms [duplicate]
Let's run this straightforward piece of code:
import java.io.*;
import java.nio.file.*;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException {
...
-5
votes
0
answers
67
views
Go -race tests fail on GitHub Actions Ubuntu with ThreadSanitizer ENOMEM (works on macOS) [closed]
Post body (StackOverflow / Reddit / etc.)
I’m running Go tests with the race detector in GitHub Actions via Nix, and I always hit a ThreadSanitizer allocation error on Linux runners. On macOS runners ...
0
votes
0
answers
34
views
QEMU Webcam Passthrough Issue: Webcam detected but showing nothing [closed]
I'm currently running a QEMU/KVM Virtual Machine on my Linux(Debian) host and using Ubuntu as the guest operating system (VM).
I'm trying to pass through a USB webcam to the VM using the USB Host ...
Best practices
2
votes
1
replies
49
views
How to properly obtain info on current user session lock using PAM
I have a C application that uses pam to reauthenticate a user on a system with faillocks configured. Imagine something that would work similar to login on the outside.
However, it only does basic ...
0
votes
0
answers
31
views
Ubuntu recongnition of a 3Dconnexion mouse using spacenavd service [closed]
I'll speak about something that could possibly impact absolutely no one on stack ... So I just hope my problem is enough "generic" to be considered.
Ok, so I have this old 3D mouse, a ...
-1
votes
0
answers
38
views
How do I configure idmapd properly? [closed]
I have a nfs4 server where the uids of two users are flipped against the client.
(Both machines are running debian trixie)
server name=jupiter
karl 1000
alice 2001
bob 3001
client name=saturn
...
0
votes
0
answers
28
views
qemu-system-mips kernel loops indefinitely on serial output [closed]
I'm exploring qemu system emulation with custom-built Linux kernels, starting with mips. To start, I'm trying to get to the point of the kernel simply panicking before I add a rootfs, but I can't ...
-2
votes
0
answers
40
views
Kali linux Faild to fetch mirror [closed]
Im trieng to install "VIEL" but at the end of installing it outputs this
Error: Failed to fetch http://mirror1.sox.rs/kali/kali/pool/main/g/gcc-mingw-w64/gcc-mingw-w64-x86-64_15.2.0-7+28_all....
-2
votes
0
answers
50
views
Fatfinger / random mouse click made emacs ctrl & meta no longor work., how to recover [closed]
I must have fat-fingered or random clicked with the mouse on screen. Now in Emacs the ctrl and meta keys no longer function.
I hold down ESC and type % and expect text replacement to come. But instead ...
-2
votes
0
answers
34
views
Fedora loses connectivity to intranet VPN domain after connection expires [closed]
Fedora 42.
I use the following script to connect to my work VPN using Cisco AnyConnect Secure Mobility Client 4.10.08029
echo -e "$USER\n$(pass company/domain)\n$(pass otp company/mfa)\ny" &...
-1
votes
0
answers
87
views
Issues installing ArchR [closed]
I'm trying to install ArchR to replicate Step 2 in this GitHub repo
I am following the Installation of ArchR steps, but when I execute this line:
devtools::install_github("GreenleafLab/ArchR"...
2
votes
0
answers
76
views
Devtool with/without running bitbake first
I don't understand how to use devtool properly for my Yocto project. I started using it in order to patch the kernel as suggested by the Yocto Project. I just don't understand why it behaves ...
0
votes
1
answer
48
views
Set dotnet version to use for debugging
Is there a way I can set the dotnet version to use for the debugger. I am using the one (debugger) that comes with C# Dev Kit. I currently have dotnet 8 and dotnet 2.2 installed but the debugger ...
8
votes
1
answer
188
views
If I start two strictly CPU bound threads bound to the same CPU, and one is SCHED_IDLE, why does it ever schedule?
If I start two threads bound to CPU 0, where one is SCHED_IDLE, then why is it ever scheduled when the other thread is CPU bound at either normal priority, or at SCHED_FIFO?
For SCHED_FIFO I get it, ...
0
votes
2
answers
79
views
How to reliably map glibc dynamic symbols (e.g., open@glibc) to kernel syscalls (e.g., openat)?
I am trying to build a mapping between the dynamic symbols in ELF files (from glibc) and the actual kernel syscalls they invoke.
My environment is x86_64 Ubuntu 22.04.
What I've Tried
Parsing man 2 ...
Advice
0
votes
1
replies
48
views
Swap full but all process terminated : does Linux free "orphans" pages when needed?
this is the first time I encounter a swap issue, I'm lost about how Linux is supposed to behave. I have a RHEL virtual machine running a batch processing RAM intensive application (100+GB RAM, 1GB ...
0
votes
1
answer
33
views
redirectUri mismatch with linux broker
I am trying to authenticate my app again my Azure tenant using the Intune broker under Linux:
app = PublicClientApplication(
client_id=...,
authority=...,
enable_broker_on_linux=True,
)
...
2
votes
1
answer
43
views
terminals don't open in the new workspace, instead open in current workspace | i3 window tiling [closed]
i create a script that is supposed to create a new workspace and that workspace launch four terminal each in given position with a command ran in it.
this is the script.sh
#!/usr/bin/env bash
WS='9:...
0
votes
0
answers
52
views
Problem installing the Hyphen package in Quarto / R Studio
I'm using Quarto 1.6.42 in R Studio (R 4.5.2) on a Linux Ubuntu 24.04 environment to generate a PDF document.
When I try to render the document to generate the PDF file, I receive the error message ...
Tooling
0
votes
3
replies
61
views
How to send still image of screen to external monitor via software on Linux?
I seem to be the only person that wants to freeze a screen on purpose. My use case is that I want to keep the image on the external monitor frozen while I switch windows or do other things on the ...
0
votes
0
answers
53
views
No app icon on Linux app with electron-builder, but shown when electron is used directly
i am programming an app with vite, svelte@4, electron and electron-builder. if i run electron ./start-electron.js the logo is shown, but after many days of trial and error i still don't get it in the ...
0
votes
0
answers
29
views
buildroot foces adding hash file in BR2_GLOBAL_PATCH_DIR?
I'm using buildroot 2024.02.
I set BR2_GLOBAL_PATCH_DIR+="$(BR2_EXTERNAL_MY_PATH)/patches". Its contents:
% tree /home/admin/buildroot-external-my/patches
/home/admin/buildroot-external-my/...
3
votes
1
answer
117
views
Deleted function compiler errors using thrust::remove in C++
I am currently attempting to use the thrust::remove function on a thrust::device_vector of structs in my main function as shown bellow:
#include <iostream>
#include <thrust/device_vector.h>...
Tooling
1
vote
4
replies
151
views
How can I programmatically perform a system board (motherboard) diagnostic test on Linux?
I’m working on a C++ backend tool that performs system diagnostics for various hardware components on Linux.
So far, I’ve implemented tests for:
Memory — using memtester
CPU — using stress-based ...
1
vote
0
answers
36
views
How do I disable blink-and-insert upon entering closing bracket in mg editor c-mode?
I use the mg MicroGNUEmacs editor, a small emacs clone, and encountered a problem upon using c-mode. Whenever I type "}", ")", or "]", the cursor is taken to the matching ...
0
votes
0
answers
47
views
AXI DMA Linux Driver on ZynqMP
I have a ZynqMP board with 4GB of PS RAM and 2GB of PL RAM. I have to write stream data to PL RAM using the AXI DMA s2mm channel and transmit it through 1G Ethernet. I've done this in a bare metal ...
-2
votes
1
answer
79
views
CMake configure_file() permissions issue when run by multiple users
When trying to rebuild a CMake project as a different Linux user, it generates Operation not permitted despite having read and write access through group permissions. The only way to solve it is to ...
Advice
1
vote
3
replies
75
views
C++ get full controll of any keypress in Linux Gnome terminal
I already can get keypresses in my c++ app.
I want to get any keypress when running in a terminal on Linux. The terminal is the gnome terminal app running on the Cinnamon desktop.
For example,
I want ...
2
votes
2
answers
119
views
How do I operate on continuous piped output from a bash command?
I'm trying to write a small bash script that will take values from my mouse's horizontal scroll wheel to change my system's volume.
Using this guide, I've come up with the following command to ...
2
votes
1
answer
122
views
Sending raw packets back to host's networking stack
I'm writing a TCP/IP stack for embedded systems, but I wanted to test it on my host system.
Originally I tried with tap0 + a bridge. But I quickly realized it would make the most sense to bind to the ...
1
vote
0
answers
85
views
cuda & cpp - compilation and linking using cmake
I want to create a skeleton for a project in which there are multiple cuda and cpp files. They will be compiled individually and then linked together to form a single executable.
Currently I have the ...