Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A question about Kdenlive behavior [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
spidark
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2011
Posts: 147

PostPosted: Wed Aug 22, 2018 5:22 pm    Post subject: A question about Kdenlive behavior [SOLVED] Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Wed Aug 22, 2018 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
spidark
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2011
Posts: 147

PostPosted: Wed Aug 22, 2018 6:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
leonid
n00b
n00b


Joined: 23 May 2003
Posts: 15
Location: Moscow Russia

PostPosted: Sun Oct 21, 2018 10:24 am    Post subject: Reply with quote

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
View user's profile Send private message
leonid
n00b
n00b


Joined: 23 May 2003
Posts: 15
Location: Moscow Russia

PostPosted: Sun Oct 21, 2018 10:39 am    Post subject: Reply with quote

The reason was I had /tmp mounted with no exec option.

Solved.
_________________
Leonid Kolesnik
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sun Oct 21, 2018 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
leonid
n00b
n00b


Joined: 23 May 2003
Posts: 15
Location: Moscow Russia

PostPosted: Sun Oct 21, 2018 7:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
spidark
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2011
Posts: 147

PostPosted: Sun Oct 21, 2018 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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