Re: KDE apps fail start due to socket connect error

2017-07-17 Thread Beeblebrox
Hi
> So can you confirm that the issues in dolphin/konqueror were fixed by
> installing kde-runtime?

First I wrote this:
No, there's a misunderstanding there.
x11/kde4-runtime install made no difference
The baseapps (dolphin/konqueror) started working when built as WITH_DEBUG
which is not unusual, I have seen other apps behave sanely when built w/ debug.

Then I decided to re-build kde-baseapps without the WITH_DEBUG setting and
un-installed x11/kde4-runtime. The apps started normally.
I think it was a fix in ports for some dependent that worked.
So closed for baseapps, not x11/kde4-runtime dependent.

PS: Not sure I did gdb debugging for silence correctly. I used
sudo gdb silence
but "chmod root /var/tmp/kde*" so that app would get needed perms
However, root user has no xorg session, so that might not have been correct 
method if process subsequently looks for xorg connection through dbus.

PPS: I delayed sending message until I had kde-baseapps rebuilt for testing.

Regards

-- 
HardenedBSD_amd64_12-Current_RadeonKMS
Please CC my email when responding, mail from list is not delivered.


Re: KDE apps fail start due to socket connect error

2017-07-15 Thread Beeblebrox
I was able to get a backtrace for deskutils/silence after all

Starting program: /usr/local/bin/silence 
then: then/endif not found.
Program received signal SIGSEGV, Segmentation fault.
0x0106f23e in ?? ()

(gdb) trace
Tracepoint 1 at 0x106f23e

(gdb) backtrace
#0  0x0106f23e in ?? ()
#1  0x00080365d88e in QAbstractProxyModel::canFetchMore(QModelIndex const&) 
const () from /usr/local/lib/qt4/libQtGui.so.4
#2  0x000803664d65 in QSortFilterProxyModel::canFetchMore(QModelIndex 
const&) const () from /usr/local/lib/qt4/libQtGui.so.4
#3  0x0008035dfeec in ?? () from /usr/local/lib/qt4/libQtGui.so.4
#4  0x0008040616bc in QObject::event(QEvent*) ()
   from /usr/local/lib/qt4/libQtCore.so.4
#5  0x0008031206f9 in QWidget::event(QEvent*) ()
   from /usr/local/lib/qt4/libQtGui.so.4
#6  0x0008034c9f2d in QFrame::event(QEvent*) ()
   from /usr/local/lib/qt4/libQtGui.so.4
#7  0x0008035dbcc5 in QAbstractItemView::event(QEvent*) ()
   from /usr/local/lib/qt4/libQtGui.so.4
#8  0x0008030d20e3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() from /usr/local/lib/qt4/libQtGui.so.4
#9  0x0008030d357f in QApplication::notify(QObject*, QEvent*) ()
   from /usr/local/lib/qt4/libQtGui.so.4
#10 0x000802671a39 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/local/lib/libkdeui.so.5
#11 0x00080404d9e3 in QCoreApplication::notifyInternal(QObject*, QEvent*)
() from /usr/local/lib/qt4/libQtCore.so.4
#12 0x00080407ce47 in ?? () from /usr/local/lib/qt4/libQtCore.so.4
#13 0x00080407ae2d in ?? () from /usr/local/lib/qt4/libQtCore.so.4
#14 0x00080619c85b in g_main_context_dispatch ()
   from /usr/local/lib/libglib-2.0.so.0
#15 0x00080619cb8e in ?? () from /usr/local/lib/libglib-2.0.so.0
#16 0x00080619cc14 in g_main_context_iteration ()
   from /usr/local/lib/libglib-2.0.so.0
#17 0x00080407a79f in 
QEventDispatcherGlib::processEvents(QFlags) () 
from /usr/local/lib/qt4/libQtCore.so.4
#18 0x00080317114d in ?? () from /usr/local/lib/qt4/libQtGui.so.4
#19 0x00080404afbe in 
QEventLoop::exec(QFlags) () from 
/usr/local/lib/qt4/libQtCore.so.4
#20 0x00080404e014 in QCoreApplication::exec() ()
   from /usr/local/lib/qt4/libQtCore.so.4
#21 0x01062a41 in ?? ()
#22 0x0105f180 in ?? ()
#23 0x0008010b8000 in ?? ()
#24 0x in ?? ()

Regards.


Re: KDE apps fail start due to socket connect error

2017-07-15 Thread Beeblebrox
Hi Tobias,

> Could you install x11/kde-runtime, and see whether that helps

deskutils/silence compiled WITH_DEBUG and per suggestion x11/kde4-runtime was 
installed. KDE debug dialog shows:
Application: Silence (silence), signal: Segmentation fault (11)

Using "$ gdb silence"
(gdb) run
Starting program: /usr/local/bin/silence 
then: then/endif not found.
KCrash: Application 'silence' crashing...
KCrash: Attempting to start /usr/local/lib/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/user/.kde4/socket-bsd.me/kdeinit4_unix_0
ptrace: Operation not permitted.
/tmp/kde-rsb/drkonqiC95638.tmp:2: Error in sourced command file:
No thread selected
During startup program exited with code 253.

Can't backtrace because kernel is built without debug options.

I already had a PR filed on FreeBSD bugzilla for deskutils/silence, so I'll 
just work from there on this issue. The other apps (dolphin, Konqueror) are 
working, so initial topic of my question has now changed I think.

Let me know if you need any other info.

Regards.

-- 
HardenedBSD_amd64_12-Current_RadeonKMS
Please CC my email when responding, mail from list is not delivered.


Re: KDE apps fail start due to socket connect error

2017-07-14 Thread Tobias C. Berner
So can you confirm that the issues in dolphin/konqueror were fixed by
installing kde-runtime?

mfg Tobias

On 14 July 2017 at 12:24, Beeblebrox  wrote:

> Hi Tobias,
>
> > Could you install x11/kde-runtime, and see whether that helps
>
> deskutils/silence compiled WITH_DEBUG and per suggestion x11/kde4-runtime
> was installed. KDE debug dialog shows:
> Application: Silence (silence), signal: Segmentation fault (11)
>
> Using "$ gdb silence"
> (gdb) run
> Starting program: /usr/local/bin/silence
> then: then/endif not found.
> KCrash: Application 'silence' crashing...
> KCrash: Attempting to start /usr/local/lib/kde4/libexec/drkonqi from
> kdeinit
> KCrash: Connect sock_file=/home/user/.kde4/socket-bsd.me/kdeinit4_unix_0
> ptrace: Operation not permitted.
> /tmp/kde-rsb/drkonqiC95638.tmp:2: Error in sourced command file:
> No thread selected
> During startup program exited with code 253.
>
> Can't backtrace because kernel is built without debug options.
>
> I already had a PR filed on FreeBSD bugzilla for deskutils/silence, so
> I'll just work from there on this issue. The other apps (dolphin,
> Konqueror) are working, so initial topic of my question has now changed I
> think.
>
> Let me know if you need any other info.
>
> Regards.
>
> --
> HardenedBSD_amd64_12-Current_RadeonKMS
> Please CC my email when responding, mail from list is not delivered.
>


Re: KDE apps fail start due to socket connect error

2017-07-14 Thread Tobias C. Berner
Hi there

Could you install x11/kde-runtime, and see whether that helps with the
issue?

mfg Tobias

On 13 July 2017 at 12:40, Beeblebrox  wrote:

> Hello, thanks for the answer.
>
> > Just to be sure, is the dbus service running?
> Yes dbus is running but not HAL. ps shows:
>
> 66343  -  I0:00.00 dbus-launch --autolaunch .
> 66344  -  Is   0:00.26 /usr/local/bin/dbus-daemon --fork --print-pid
> 
>
> Additionally, Konqueror was segfaulting & gdb showed
> "then: then/endif not found."
> To be able to further analyse it w/ gdb, I re-compiled baseapps using
> "WITH_DEBUG_PORT" setting. Now both dolphin & Konq start, terminal output
> attached, but gdb not giving much info (gdb may be the wrong tool for KDE
> apps perhaps).
>
> deskutils/silence for example still has same problem
>
> Regards
>
> --
> HardenedBSD_amd64_12-Current_RadeonKMS
> Please CC my email when responding, mail from list is not delivered.
>


Re: KDE apps fail start due to socket connect error

2017-07-14 Thread Beeblebrox
Hello, thanks for the answer.

> Just to be sure, is the dbus service running?
Yes dbus is running but not HAL. ps shows:

66343  -  I0:00.00 dbus-launch --autolaunch .
66344  -  Is   0:00.26 /usr/local/bin/dbus-daemon --fork --print-pid 

Additionally, Konqueror was segfaulting & gdb showed
"then: then/endif not found."
To be able to further analyse it w/ gdb, I re-compiled baseapps using 
"WITH_DEBUG_PORT" setting. Now both dolphin & Konq start, terminal output 
attached, but gdb not giving much info (gdb may be the wrong tool for KDE apps 
perhaps).

deskutils/silence for example still has same problem

Regards

-- 
HardenedBSD_amd64_12-Current_RadeonKMS
Please CC my email when responding, mail from list is not delivered.
$ dolphin
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kbuildsycoca4 running...
realPath called with a relative path '.config/fontconfig/menus/', please fix
dolphin(41707)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "No such object path '/modules/ktimezoned'" 

dolphin(41707)/kdecore (K*TimeZone*): No time zone information obtained from ktimezoned 
virtual QStringList Solid::Backends::Hal::HalManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown" 

virtual QStringList Solid::Backends::Hal::HalManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown" 

virtual QStringList Solid::Backends::Hal::HalManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown" 

virtual QStringList Solid::Backends::Hal::HalManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown" 

virtual QStringList Solid::Backends::Hal::HalManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown" 

virtual QStringList Solid::Backends::Hal::HalManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown" 

virtual QStringList Solid::Backends::Hal::HalManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown" 

virtual QStringList Solid::Backends::Hal::HalManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown" 

dolphin(41707) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /usr/local/etc/smb4.conf
Unknown parameter encountered: "announce version"
Ignoring unknown parameter "announce version"
Unknown parameter encountered: "SO_RCVBUF"
Ignoring unknown parameter "SO_RCVBUF"
WARNING: Ignoring invalid value 'CUPS' for parameter 'printing'
Error loading services.
" 
dolphin(41707) KSambaSharePrivate::getNetUserShareInfo: We got some errors while running 'net usershare info' 
dolphin(41707) KSambaSharePrivate::getNetUserShareInfo: "Unknown parameter encountered: "announce version"
Ignoring unknown parameter "announce version"
Unknown parameter encountered: "SO_RCVBUF"
Ignoring unknown parameter "SO_RCVBUF"
WARNING: Ignoring invalid value 'CUPS' for parameter 'printing'
Can't load /usr/local/etc/smb4.conf - run testparm to debug it
" 
dolphin(41707)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
gdb konqueror
Reading symbols from konqueror...done.
(gdb) run
Starting program: /usr/local/bin/konqueror 
then: then/endif not found.
konqueror(24161)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "No such object path '/modules/ktimezoned'" 

konqueror(24161)/kdecore (K*TimeZone*): No time zone information obtained from ktimezoned 
During startup program exited normally.


Re: KDE apps fail start due to socket connect error

2017-07-13 Thread Tobias C. Berner
Hi there

Just to be sure, is the dbus service running?


mfg Tobias

On 12 July 2017 at 09:42, Beeblebrox  wrote:

> Hello. I'm using non-KDE desktop, but would like to use KDE apps. Starting
> KDE based apps throws out this error:
>
> *  dolphin
> KCrash: Application 'dolphin' crashing...
> KCrash: Attempting to start  from kdeinit
> KCrash: Connect sock_file=/home/rsbsd/.kde4/so
> cket-rsbsd.me/kdeinit4_unix_0
> Warning: connect() failed: : No such file or directory
> KCrash: Attempting to start  directly
> KCrash failed to exec(), errno = 2
>
> * Has no effect:
> mkdir socket-rsbsd.me && ln -s kdeinit4_unix_0 -> /var/tmp/kdeinit4_unix_0
>
> * ~/.kde4 recursively owned by my user
>
> * Some apps do start, but grunt:
> $ okular
> Connecting to deprecated signal QDBusConnectionInterface::
> serviceOwnerChanged(QString,QString,QString)
> QDBusConnection: session D-Bus connection created before QCoreApplication.
> Application may misbehave.
> QDBusConnection: session D-Bus connection created before QCoreApplication.
> Application may misbehave.
> kbuildsycoca4 running...
> realPath called with a relative path '.config/fontconfig/menus/', please
> fix
> okular(61837)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
> okular(61837)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
> okular(61837)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
> okular(61837)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
> okular(61837)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
>
> * uname: FreeBSD 12.0-CURRENT #2  e294122ba60(hardened/current/drm-next)
> amd64
> But above errors also existed on FreeBSD before I had switched to HBSD
>
> * Installed KDE dependents:
> x11/kde4-baseapps
> graphics/kdegraphics4-mobipocket
> x11/kdelibs4
> deskutils/kdepimlibs4
> x11/kf5-kded
> x11/kf5-kdelibs4support
> x11-toolkits/kf5-kdesignerplugin
> www/kf5-kdewebkit
>
>
> Would appreciate any pointers where to look next
> Regards
>
> --
> HardenedBSD_amd64_12-Current_RadeonKMS
> Please CC my email when responding, mail from list is not delivered.
>