View previous topic :: View next topic |
Author |
Message |
spidark Tux's lil' helper
Joined: 01 Sep 2011 Posts: 147
|
Posted: Wed Aug 22, 2018 5:22 pm Post subject: A question about Kdenlive behavior [SOLVED] |
|
|
Hi Guys,
Its been a while for me, but back on Gentoo.
I installed Kdenlive, and hit the menu icon, and nothing happened.
So next move was to installed strace, to try to figure out what was going on.
I'm not a developer , but I noticed the Permission Denied at the end of strace.
Code: | mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fa4befff000
mprotect(0x7fa4bf000000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7fa4bf7fef30, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fa4bf7ff9d0, tls=0x7fa4bf7ff700, child_tidptr=0x7fa4bf7ff9d0) = 3686
futex(0x5625696a3830, FUTEX_WAKE_PRIVATE, 1) = 1
getcwd("/home/bigmike", 4096) = 14
getcwd("/home/bigmike", 4096) = 14
write(14, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x5625696e8b84, FUTEX_WAIT_PRIVATE, 0, NULLmprotect failed in ExecutableAllocator::makeExecutable: Permission denied
*** stack smashing detected ***: <unknown> terminated
) = ?
+++ killed by SIGABRT +++
Aborted
|
So it hit me, it could have something to do with the way i mount my home directory.
Code: | /home ext4 nodev,nosuid,noexec,relatime,discard 0 2 |
So i changed it to
Code: | /home ext4 defaults,relatime,discard 0 2 |
Kdenlive starts op after a reboot , which is good.
My question is, is this normal behavior ?
Or do i need to Sandbox the Cr@p out of Kdenlive ?
Thanks in advanced. _________________ Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Last edited by spidark on Thu Aug 23, 2018 3:45 pm; edited 1 time in total |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Wed Aug 22, 2018 5:40 pm Post subject: |
|
|
kdenlive does a fair bit of work via scripts, so noexec might be a problem. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
spidark Tux's lil' helper
Joined: 01 Sep 2011 Posts: 147
|
Posted: Wed Aug 22, 2018 6:23 pm Post subject: |
|
|
bunder wrote: | kdenlive does a fair bit of work via scripts, so noexec might be a problem. |
Hi Bunder,
yes it seems like that indeed.
Maybe further investigation to see if it worth sandboxing kdenlive.
Thanks for your answer Bunder. _________________ Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz |
|
Back to top |
|
|
leonid n00b
Joined: 23 May 2003 Posts: 15 Location: Moscow Russia
|
Posted: Sun Oct 21, 2018 10:24 am Post subject: |
|
|
Hello!
I've the same problem. But my fs is btrfs mounted as
Code: | UUID="ddf39d97-d07c-4d5a-b2ec-6f0a806e0e48" /home btrfs subvol=@home,defaults,noatime,nodiratime 0 1 |
So it is no flags like noexec. No ideas what the reason of crash? _________________ Leonid Kolesnik |
|
Back to top |
|
|
leonid n00b
Joined: 23 May 2003 Posts: 15 Location: Moscow Russia
|
Posted: Sun Oct 21, 2018 10:39 am Post subject: |
|
|
The reason was I had /tmp mounted with no exec option.
Solved. _________________ Leonid Kolesnik |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Sun Oct 21, 2018 6:09 pm Post subject: |
|
|
leonid wrote: | The reason was I had /tmp mounted with no exec option. | As all systems should. In my opinion, it is wrong for programs to fail when /tmp is noexec. |
|
Back to top |
|
|
leonid n00b
Joined: 23 May 2003 Posts: 15 Location: Moscow Russia
|
Posted: Sun Oct 21, 2018 7:01 pm Post subject: |
|
|
I think so. But turn off noexec let's chance to run.
I suppose kdenlive produce a lot of scripts in /tmp for processing. As for me it could do it somewhere in ~/ _________________ Leonid Kolesnik |
|
Back to top |
|
|
spidark Tux's lil' helper
Joined: 01 Sep 2011 Posts: 147
|
Posted: Sun Oct 21, 2018 8:53 pm Post subject: |
|
|
leonid wrote: | I think so. But turn off noexec let's chance to run.
I suppose kdenlive produce a lot of scripts in /tmp for processing. As for me it could do it somewhere in ~/ |
Yes it does, tested this behaviour on another distro, same issue.
If /tmp is mounted with noexec, you get a stack smashing detected error.
Code: | NULLmprotect failed in ExecutableAllocator:makeExecutable"permission denied |
_________________ Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|