Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I find the cause of dwm auto restart?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hariskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2017
Posts: 129
Location: Greece/Kavala

PostPosted: Tue Sep 15, 2020 3:30 pm    Post subject: How can I find the cause of dwm auto restart? Reply with quote

lastly dwm behaves like I have pressed [Shift]+[Alt]+[q]
It closes and restarts automatically and randomly and then x loads again. It happens often, about 4-5 times in an hour..
How can I find the cause of this?

~ $ emerge --info
Portage 3.0.7 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop, gcc-10.2.0, glibc-2.32-r1, 5.8.9-gentoo x86_64)
=================================================================
System uname: Linux-5.8.9-gentoo-x86_64-Intel-R-_Core-TM-_i3-4330_CPU_@_3.50GHz-with-gentoo-2.7
KiB Mem: 16336204 total, 12920332 free
KiB Swap: 5857276 total, 5857276 free
Timestamp of repository gentoo: Tue, 15 Sep 2020 12:30:01 +0000
Head commit of repository gentoo: 17c1ae52bd56daf43bb4ab86e9245130c6160593
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
ccache version 3.7.11 [enabled]
app-shells/bash: 5.0_p18::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.30.3-r1::gentoo
dev-lang/python: 2.7.18-r3::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo
dev-util/ccache: 3.7.11::gentoo
dev-util/cmake: 3.18.2::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.7::gentoo
sys-apps/openrc: 0.42.1::gentoo
sys-apps/sandbox: 2.20::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake: 1.16.2::gentoo
sys-devel/binutils: 2.34-r2::gentoo
sys-devel/gcc: 10.2.0-r1::gentoo
sys-devel/gcc-config: 2.3.2::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc: 2.32-r1::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: no
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:

localrepo
location: /usr/local/portage
masters: gentoo

crossdev
location: /usr/local/portage-crossdev
masters: gentoo
priority: 10

jorgicio
location: /var/lib/layman/jorgicio
masters: gentoo
priority: 50

pf4public
location: /var/lib/layman/pf4public
masters: gentoo
priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=haswell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
nubiocicarini
n00b
n00b


Joined: 20 Feb 2019
Posts: 71
Location: Brazil

PostPosted: Wed Sep 16, 2020 3:36 am    Post subject: Re: How can I find the cause of dwm auto restart? Reply with quote

hariskar wrote:
ACCEPT_KEYWORDS="amd64 ~amd64"

Your ACCEPT_KEYWORDS is inappropriate, you must choose whether you want a stable or unstable world system, respectively amd64 or ~ amd64. This may be causing some conflict between the installed packages. After deciding for one, you can still choose a different package definition in /etc/portage/package.accept_keywords. I, for example, use the stable world system (ACCEPT_KEYWORDS) and eventually release a trial version in package.accept_keywords. I am currently using a suckless test suite (~ amd64) without a problem so far.
_________________
Workers of the world, unite!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15809

PostPosted: Wed Sep 16, 2020 3:43 am    Post subject: Reply with quote

Specifying both values is fine, and will accept unstable keywords wherever available.

hariskar: is dwm terminating due to a signal or due to an internal consistency check?
Back to top
View user's profile Send private message
coderanger
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2018
Posts: 144

PostPosted: Wed Sep 16, 2020 8:28 am    Post subject: Reply with quote

There's a chance that you have .xsession-errors log file somewhere in your ${HOME}
Code:
find ~ -type f -name '.xsession-errors'
Back to top
View user's profile Send private message
nubiocicarini
n00b
n00b


Joined: 20 Feb 2019
Posts: 71
Location: Brazil

PostPosted: Wed Sep 16, 2020 1:12 pm    Post subject: Reply with quote

Hu wrote:
Specifying both values is fine, and will accept unstable keywords wherever available.

I understand the logic of what you said, but the official recommendation posted on the wiki, section "Stable and unstable keywords", is to put only one definition globally and the opposite per package. Perhaps this may be conflicting with the structure of the system.

https://wiki.gentoo.org/wiki/ACCEPT_KEYWORDS
_________________
Workers of the world, unite!
Back to top
View user's profile Send private message
hariskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2017
Posts: 129
Location: Greece/Kavala

PostPosted: Wed Sep 16, 2020 2:02 pm    Post subject: Reply with quote

My make.conf just has
Code:
ACCEPT_KEYWORDS="~amd64"



I think chromium causes the restarts, I used -Firefox today and I had zero restarts.

No luck with
Code:
find ~ -type f -name '.xsession-errors'


Hu wrote:

hariskar: is dwm terminating due to a signal or due to an internal consistency check?


I don't know. I am usually (or maybe always) browsing when this happens, that is why I though of chromium as the cause.


Last edited by hariskar on Wed Sep 16, 2020 5:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15809

PostPosted: Wed Sep 16, 2020 4:55 pm    Post subject: Reply with quote

nubiocicarini wrote:
Hu wrote:
Specifying both values is fine, and will accept unstable keywords wherever available.
I understand the logic of what you said, but the official recommendation posted on the wiki, section "Stable and unstable keywords", is to put only one definition globally and the opposite per package. Perhaps this may be conflicting with the structure of the system.

https://wiki.gentoo.org/wiki/ACCEPT_KEYWORDS
The official recommendation on the Wiki goes on to explain that this recommendation is because specifying both is unnecessary:
Quote:
One should not specify the stable keyword (amd64) when adding the testing keyword (~amd64) because ACCEPT_KEYWORDS is an incremental variable.
As an incremental variable, the default stable keyword is not replaced by the user's definition, so everyone who writes ACCEPT_KEYWORDS="~amd64" should get the results that the OP showed.
Code:
# grep KEYWORD /etc/portage/make.conf
ACCEPT_KEYWORDS="~amd64"
# emerge --info | grep KEYW
ACCEPT_KEYWORDS="amd64 ~amd64"
Code:
# grep KEYWORD /etc/portage/make.conf
ACCEPT_KEYWORDS="-amd64 ~amd64"
# emerge --info | grep KEYW
ACCEPT_KEYWORDS="~amd64"
This latter shows how incremental variables can be overridden. You almost certainly do not want to do this for ACCEPT_KEYWORDS though.
Back to top
View user's profile Send private message
nubiocicarini
n00b
n00b


Joined: 20 Feb 2019
Posts: 71
Location: Brazil

PostPosted: Wed Sep 16, 2020 8:25 pm    Post subject: Reply with quote

Hu wrote:
As an incremental variable, the default stable keyword is not replaced by the user's definition, so everyone who writes ACCEPT_KEYWORDS="~amd64" should get the results that the OP showed.
Code:
# grep KEYWORD /etc/portage/make.conf
ACCEPT_KEYWORDS="~amd64"
# emerge --info | grep KEYW
ACCEPT_KEYWORDS="amd64 ~amd64"
Code:
# grep KEYWORD /etc/portage/make.conf
ACCEPT_KEYWORDS="-amd64 ~amd64"
# emerge --info | grep KEYW
ACCEPT_KEYWORDS="~amd64"
This latter shows how incremental variables can be overridden. You almost certainly do not want to do this for ACCEPT_KEYWORDS though.

I'm sorry, I misinterpreted the wiki and ate a fly, like a frog. :)
_________________
Workers of the world, unite!
Back to top
View user's profile Send private message
hariskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2017
Posts: 129
Location: Greece/Kavala

PostPosted: Thu Sep 17, 2020 4:29 am    Post subject: Reply with quote

Chromium is casing my problems, I had no restart yesterday the whole day with Firefox.
Code:

$ emerge -av chromium

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] www-client/chromium-86.0.4240.30::gentoo [86.0.4240.22::gentoo] USE="cups js-type-check (pic) proprietary-codecs suid system-ffmpeg system-icu tcmalloc widevine (-component-build) -custom-cflags -hangouts (-headless) -kerberos -official -ozone -ozone-wayland% -pulseaudio (-selinux) (-system-libvpx) (-wayland%)" L10N="-am -ar -bg -bn -ca -cs -da
-de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk
-vi -zh-CN -zh-TW" 0 KiB


Any idea how to solve it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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