General discussion. Use one of the other rooms if appropriate.
People
Repo info
Activity
Marcin Konarski
@AmokHuginnsson
@DennisMitchell I think i would be easier if I setup a VM and build proper packages.
DennisMitchell
@DennisMitchell
RPMs for Fedora? That would be great.
Marcin Konarski
@AmokHuginnsson
Regarding "yaal" error, the interpreter consists of two parts (projects) runner (project called huginn) and library (project called yaal) that provides interpreter itself. yaal must be built and installed first, than huginn. But like I said I will setup Fedora 26 VM and provide packages for it.
DennisMitchell
@DennisMitchell
@AmokHuginnson I managed to install the RPMs directly (breaking dependencies), but I can't seem to figure out how to write a simple Hello World program. pow.hgn works just fine, but main(argv_) errors for a program that doesn't rely on arguments (Variable `argv_' is never used (did you mean `real'?).) and main() just segfaults.
Marcin Konarski
@AmokHuginnsson
huginn --no-argv
so argv_ is not required
huginn -i gives interactive mode
what precisely did you do to segv?
Ok, I got segv reproduced :(
DennisMitchell
@DennisMitchell
main() { return(0); } without --no-argv segfaults.
Doesn't matter for TIO, but out of curiosity: how do you run Huginn programs as root?
Marcin Konarski
@AmokHuginnsson
Well, you cannot.
DennisMitchell
@DennisMitchell
Why?
Marcin Konarski
@AmokHuginnsson
I do not trust myself enough to allow it :)
I do not want to trash whole system because I made some stupid bug.
DennisMitchell
@DennisMitchell
Understandable, but there are scenarios where this would be perfectly safe (e.g., in a sandbox).
Marcin Konarski
@AmokHuginnsson
yes, unfortunately not everyone is cautious enough to sandbox untrusted programs that would be executed with administrative privileges.
gotta fix that pesky segv
DennisMitchell
@DennisMitchell
Let me know when you have a Fedora 26 RPM. Symlinking libgcrypt.so.20 to libgcrypt.so.11 works well enough for Hello World, but I doubt it's robust.
Marcin Konarski
@AmokHuginnsson
I will.
Marcin Konarski
@AmokHuginnsson
@DennisMitchell Hello. I think I made it. I created new repo for Fedora and I put new instructions on how to use repos from my server. If you could try if it works for you that would be awesome :)
DennisMitchell
@DennisMitchell
OK, I'll take a look tonight.
DennisMitchell
@DennisMitchell
@AmokHuginnsson Installation worked perfectly, but I can't seem run programs within the sandbox. This is the error I'm getting: syscall failure - bailing out: Permission denied
@AmokHuginnsson From my audit logs, it appears that the problem is a call to setrlimit. For security reasons, the sandbox doesn't permit modifying the resource limits.
_
Marcin Konarski
@AmokHuginnsson
@DennisMitchell By any chance, do you know which limit it is?
and if that resource is limited already?
DennisMitchell
@DennisMitchell
Don't know which limit it is, no. I only see the action, but not the details.
My servers already use rather conservative limits for number of processes, memory usage, file size, etc.
Marcin Konarski
@AmokHuginnsson
@DennisMitchell Could you please tell me if you have limit set on all of those resources: data seg size, max memory size, open files, stack size, max user processes, virtual memory?