Bug 207310 - deskutils/silence can't start - socket error
Summary: deskutils/silence can't start - socket error
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Rene Ladan
URL:
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2016-02-18 18:48 UTC by Beeblebrox
Modified: 2018-12-31 10:20 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (syncer)
koobs: merge-quarterly?


Attachments
The exact version(s) of relevant software running (1.64 KB, text/plain)
2017-07-14 11:17 UTC, Beeblebrox
no flags Details
gdb tace file (2.32 KB, text/plain)
2017-07-14 11:20 UTC, Beeblebrox
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Beeblebrox 2016-02-18 18:48:58 UTC
starting silence from the command line gives

$ silence
KCrash: Application 'silence' crashing...
KCrash: Attempting to start  from kdeinit
KCrash: Connect sock_file=/home/myuser/.kde4/socket-some.com/kdeinit4_unix_0
Warning: connect() failed: : Connection refused
KCrash: Attempting to start  directly
KCrash failed to exec(), errno = 2

I had to create the sym-link to /tmp/ksocket-myuser in ~/.kde4 manually, so that current contents of ~/.kde4:
lrwxr-xr-x  1 myuser wheel socket-some.com -> /tmp/ksocket-myuser
lrwxr-xr-x  1 myuser wheel cache-some.com -> /var/tmp/kdecache-myuser
lrwxr-xr-x  1 myuser wheel tmp-some.com -> /tmp/kde-myuser
drwx------  5 myuser wheel share

Other KDE applications start normally.
Any ideas?
Comment 1 Beeblebrox 2016-02-18 18:59:29 UTC
Sorry, the first output is when there's no other KDE app running (which means silence fails to initialize/start kdeinit if not already running). If I start some other KDE app, then start silence, the problem message is one of "cannot find executable":

Could this error have anything to do with missing data folder (like config/slim)?

$ /usr/local/bin/silence
KCrash: Application 'silence' crashing...
KCrash: Attempting to start  from kdeinit
KCrash: Connect sock_file=/home/myuser/.kde4/socket-some.com/kdeinit4_unix_0
Could not find '' executable.
KCrash: Attempting to start  directly
KCrash failed to exec(), errno = 2

$ pkg list silence
/usr/local/bin/silence
/usr/local/share/icons/hicolor/128x128/apps/silence.png
/usr/local/share/icons/hicolor/16x16/apps/silence.png
/usr/local/share/icons/hicolor/22x22/apps/silence.png
/usr/local/share/icons/hicolor/32x32/apps/silence.png
/usr/local/share/icons/hicolor/48x48/apps/silence.png
/usr/local/share/icons/hicolor/64x64/apps/silence.png
/usr/local/share/licenses/silence-0.2_7/GPLv2
/usr/local/share/licenses/silence-0.2_7/LICENSE
/usr/local/share/licenses/silence-0.2_7/catalog.mk
Comment 2 Ed Maste freebsd_committer freebsd_triage 2016-03-03 02:10:50 UTC
Can you please confirm that this occurred on arm64 hardware, or update the Hardware dropdown if not?
Comment 3 Beeblebrox 2016-03-12 16:49:28 UTC
Hi, Ed & sorry for late response.

Hardware is amd64, system: 11-Current, #6 96b33bc Sat Mar 12 2016
Regards.
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2017-03-04 14:55:19 UTC
Hi,

Is this PR still relevant?
Comment 5 Beeblebrox 2017-07-14 09:56:04 UTC
This issue is still valid

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.

I can't backtrace because kernel is built without debug options

Regards.
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-14 10:05:07 UTC
If there is anything different with running gdb as root, please include the output as an attachment. Please also (re)confirm:

- The exact version of freebsd currently running (uname -a)
- The exact version(s) of relevant software running (pkg version -v as attachment)
- Whether you are using ports, packages or a combination of both
- Include the (sanitized if necessary) contents of /etc/make.conf if using ports
Comment 7 Beeblebrox 2017-07-14 11:17:45 UTC
Created attachment 184344 [details]
The exact version(s) of relevant software running
Comment 8 Beeblebrox 2017-07-14 11:20:58 UTC
Created attachment 184345 [details]
gdb tace file

- The exact version of freebsd currently running (uname -a)
FreeBSD 12.0-CURRENT #0  91c0252b994(hardened/current/drm-next): Thu Jul 13 07:55:59 2017
When I initially reported, I was on FreeBSD, not HBSD. Hardened sysctls are turned of & secadm is flushed for testing.

- Whether you are using ports, packages or a combination of both
Ports built in Poudriere

- The exact version(s) of relevant software running
Relevant packages list attached

* I was able to figure out how to run gdb as root and managed to get a backtrace
* Not using KDE desktop & HAL is not enabled.
* Separate but possibly related: From kde-baseapps, dolphin was giving the same message described for silence, while konqueror was segfaulting without any message. Compile of baseapps as WITH_DEBUG has now allowed these 2 apps to start normally.

- Include contents of /etc/make.conf if using ports
#_PORTS_SETTINGS
WITH_CPUFLAGS=yes
BUILD_OPTIMIZED=yes

#_PORT_WITH_WITHOUT
NO_PROFILE=yes
OPTIONS_UNSET=          DOCS EXAMPLES NLS IPV6 HAL
QT4_OPTIONS=            CUPS QGTKSTYL

#_DEBUG_OPTS
WITH_DEBUG_PORTS= graphics/cairo x11-toolkits/pango graphics/py-cairo \
	graphics/cairomm x11/kde4-baseapps deskutils/silence
WINE_CROSS_BUILD=yes

#_DEFAULT_PORT_VERs
DEFAULT_VERSIONS+= mysql=100m lua=5.2 php=7.0 bdb=6 linux=c7 \

WITH_BDB_HIGHEST=yes
WITH_BDB6_PERMITTED=yes
JAVA_OS=               native
JAVA_VENDOR=           openjdk
JAVA_DEFAULT?=          1.8+
JAVA_VERSION?=         1.8+
Comment 9 Rene Ladan freebsd_committer freebsd_triage 2018-12-31 10:20:25 UTC
Expired port removed.