I’m having an issue with a program crashing on mono, I have an idea why but I can not confirm it as I can not find the log location for mono on ubuntu. I’m developing on windows however I’m deploying to a ubuntu server. So my question is, where is the standard log location for mono on ubuntu? Answer I
Tag: c++
[Linux | Cscore]avutil-55 DllNotFoundException
I am trying to run my application which uses cscore (https://github.com/filoe/cscore) and its sub namespace “CSCore.Ffmpeg” I’ve already tried what the author explained in “https://github.com/filoe/cscore/blob/master/CSCore.Ffmpeg/Readme.md” (‘LD_LIBRARY_PATH=./ mono MyApp.exe’) without success. My question would be how to get it working on Debian 9 using mono. Additionally i would be grateful if anyone could tell me where i could get the required
C fork and pipe multiple process
I’m trying to implement this command cat /etc/passwd | grep 1000 | cut -d: -f1 in C using system calls fork and pipe. When I use only two commands cmd1 | cmd2 so 1 fork it works fine but when I’m using more than 2 process the problem occurs Here is my code, I think the problem is in the
How to pass run time arguments to a function in c through a shell script
I have a shell script which has to take arguments from the command line and pass it to a function in C. I tried to search but didn’t find understandable solutions. Kindly help me out. Should the arguments be passed via an option as a command in the shell script? I have a main function like this: How to pass
Debugging segmentation fault with backtrace in cpp
In my code (written in cpp) I am getting a segmentation fault with following backtrace: So is there a way to debug this and get on which line segfault occurs? (I could not find any posts like this here, if it’s duplicate I will delete this). The code itself is pretty big so typing it here would not be correct
How do I download a package from the command line with .NET Core from nuget?
Microsoft packages .NET Core on Linux for Ubuntu. I’m currently using that. I now want to install Json.NET which instructs me to use the Package Manager console and run, I’m wondering how I do that Linux. I see that there is a Nuget CLI, but it doesn’t seem like that’s available on .NET Core. Moreover the docs say On Mac
Part of the code in the child process spawned by fork() is skipped
I use fork() to spawn a child process to run some code, but I found that in the child process, some code like printf(“child is running”); below will not run, and when I remove the sentences in switch(), it will run rightly, I can’t understand why this will happen. Answer Like I said in the comment, change your printf line
What is the expected behaviour if file is written/altered while sendfile() is in progress
One thread writes to a file (or even delete it), another one calls sendfile() for that file simultaneously for overlapping positions. What is the expected behaviour here? Also, If my understanding is correct, sendfile call will just add a record to socket (file description, position, length) and return to caller. (no copy to socket’s buffer yet?), so even sendfile() returns
Get filesystem creation date in C
I need to know the creation datetime of the filesystem on a disk (in a Linux machine) with C. I would like to avoid using shell commands, such as and make a parser. Thanks Answer From a program coded in C (or in any language capable of calling C routines) you would use the stat(2) system call (or, with recent
Segmentation fault in my Assembly implementation
I am new to assembly language programing, and here I am trying to call C standard library function puts from my assembly code, but I am continuously getting segmentaion fault. Please help; Operating system : LINUX 16.04 Assembler : nasm Machine : intel x86 – 64bit Answer to explain Comments More, start with x86 calling convention and your code. x86