Always get three *.core files in my home, when you shutdown or reboot in kde plasma5

yyangdid

New Member

Reaction score: 2
Messages: 9

I'm using FreeBSD12.2 in VMware, and use KDE plasma 5.20 desktop environment.
Everything is ok except this one thing ---> When you shutdown or reboot using the kickoff application launcher menu, always get three *.core files (baloo_file_extracto.core, drkonqi.core, kglobalaccel5.core) in my home directory, sometimes I also get a plasmashell.core file.
I don't know what happened, how to fix it?
Is it just me?
 
Last edited by a moderator:

George

Aspiring Daemon

Reaction score: 204
Messages: 512

In PR 230726 someone mentions that you can disable baloo with the command balooctl disable. I dont know what baloo does, though. ;D

sysutils/plasma5-drkonqi is apparently a crash handler. It should be able to handle a crash, and not crash itself. 😅
 
OP
Y

yyangdid

New Member

Reaction score: 2
Messages: 9

Find something.
create ~/.config/plasma-workspace/shutdown/kill-plasmashell.sh with
Code:
#!/bin/sh
killall plasmashell
baloo_file_extracto.core, kglobalaccel5.core, plasmashell.core will not be generated, but drkonqi.core file still.
 
OP
Y

yyangdid

New Member

Reaction score: 2
Messages: 9

I use lldb(1):
Code:
$ lldb -c drkonqi.core
(lldb) target create --core "drkonqi.core"
Core file '/home/yyangdid/drkonqi.core' (x86_64) was loaded.
(lldb) thread backtrace all
* thread #1, name = 'drkonqi', stop reason = signal SIGABRT
  * frame #0: 0x00000008023e3c2a
    frame #1: 0x00000008023e2084
I've never debugged a program, anyone can help me?
 
OP
Y

yyangdid

New Member

Reaction score: 2
Messages: 9

Ok, solved!
create /usr/local/etc/polkit-1/rules.d//51.shutdown.rules with:
Code:
polkit.addRule(function (action, subject) {
  if ((action.id == "org.freedesktop.consolekit.system.restart" ||
      action.id == "org.freedesktop.consolekit.system.stop")
      && subject.isInGroup("PUTYOURGROUPHERE")) {
    return polkit.Result.YES;
  }
});
create /usr/local/etc/polkit-1/rules.d//52.resume.rules with:
Code:
polkit.addRule(function (action, subject) {
  if (action.id == "org.freedesktop.consolekit.system.suspend"
      && subject.isInGroup("PUTYOURGROUPHERE")) {
    return polkit.Result.YES;
  }
});
and run:
chown -R polkitd /usr/local/etc/polkit-1/
reboot:p
 

rhsbsd

Member

Reaction score: 12
Messages: 73

Worked like a charm. Thanks. You can disable file indexing in plasma5 system settings (SEARCH) and that will eliminate the balloo monster. It has always had detrimental effects in all my desktop configurations with kde. It is supposed to be a relational database. Kill it, mainly because even if it did work it is a waste of resources. FreeBSD offers so many high speed search options it would be a task just to list them all. AND yes, exact same behavior on KDE 5.20.4 FreeBSD 12.1 release>>> box stock using packages only. I build ports using poudriere on my other machine and have never seen this on that machine.

Thanks again
 
Top