[RESOLVED] urxvt spawns extra process

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

[RESOLVED] urxvt spawns extra process

Unread post by dkeg » Fri Dec 27, 2013 2:44 pm

Can anyone verify if this is also happening to them?

When I use urxvt, from anyway (dmenu, config file, terminal), I get this, an extra process. So in htop I have 2 processes per one terminal session.
urxvt_pstree.png
But using xterm, I don't get the same.
xterm_pstree.png
I logged into my bloat spin. It doesn't happen there. I haven't upgraded, so that is still on 3.12-5. Thinking possibly related to 3.12-6, went back to colin, used an older kernel, but no change.

This is definitely new, as in the last week.

Work hard; Complain less

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: urxvt spawns extra process

Unread post by DebianJoe » Fri Dec 27, 2013 3:05 pm

Code: Select all

 └─urxvt─┬─urxvt
         └─zsh───pstree
Me too. -_-

Edit: I don't recall seeing this before, but I haven't even looked at a process tree in months. I couldn't tell you when it started.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: urxvt spawns extra process

Unread post by dkeg » Fri Dec 27, 2013 3:39 pm

last week when I posted the dmenu 'fix' in the suckless tools thread, it wasn't happening. So something happened b/t then and the other day (at least for me). I had noticed a few days ago, just ignored it.

Work hard; Complain less

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: urxvt spawns extra process

Unread post by xaos52 » Fri Dec 27, 2013 5:28 pm

Well spotted, dkeg.
You are absolutely right.
I have a waldorf install upgraded to sid and last updated Nov 18.
pstree shows only one process per urxvt instance.

My up-to-date sid shows 2 processes per urxvt instance.
Connected. Take this REPL, brother, and may it serve you well.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: urxvt spawns extra process

Unread post by dkeg » Fri Dec 27, 2013 5:35 pm

ocd payoff :D

I have done some searching, but can't find anything. I tried to purge and re-install, and also tried to install just rxvt-unicode as opposed to rxvt-unicode-256 just for due diligence sake, also no change.

Work hard; Complain less

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: urxvt spawns extra process

Unread post by xaos52 » Fri Dec 27, 2013 5:42 pm

I have now upgraded rxvt-unicode-256color from version 9.18-3 to 9.19.1 on the waldorf system, and that version has the 2 urxvt processes per launched urxvt instance.

Seems like rxvt-unicode-256colors changed an 'exec' system call to to a 'fork' system call somewhere between version 9.18-3 (not included) and 9.19-1.
Last edited by xaos52 on Fri Dec 27, 2013 7:42 pm, edited 1 time in total.
Connected. Take this REPL, brother, and may it serve you well.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: urxvt spawns extra process

Unread post by dkeg » Fri Dec 27, 2013 6:14 pm

looks like 9.19-1 was published on Dec 22.

Work hard; Complain less

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: urxvt spawns extra process

Unread post by xaos52 » Fri Dec 27, 2013 7:55 pm

No other versions were available after 9.18-3, so the new behaviour
came with version 9.19-1 - the current version, and was introduced by upstream. ( I suspect correcting the utmp behaviour )

See http://snapshot.debian.org/package/rxvt-unicode/
Connected. Take this REPL, brother, and may it serve you well.

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: urxvt spawns extra process

Unread post by pidsley » Fri Dec 27, 2013 8:32 pm

FWIW, I do not see this behavior on Arch, CRUX, Gentoo, or Void running urxvt 9.19-1, or on Debian running rxvt-unicode 9.19-1 built from source, only on Debian running the standard Debian rxvt-unicode (or rxvt-unicode-256color) package.

I built the source from here: http://dist.schmorp.de/rxvt-unicode/

(edit) using "apt-get source" to get the source from Debian and building it also produces an executable that works properly.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: urxvt spawns extra process

Unread post by dkeg » Sat Dec 28, 2013 12:22 am

Great pids, that does in fact work. That was going to be my next step. Thanks for the motivation. I did have problems with perl, the .configure err'd out. So instead I built as

Code: Select all

./configure --prefix=/usr --disable-xft --disable-perl --enable-256-color && make
sudo make install
I'll look into the perl error another time

Work hard; Complain less

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: [SOLVED] urxvt spawns extra process

Unread post by pidsley » Sat Dec 28, 2013 12:46 am

I solved that perl config error with "sudo apt-get build-dep rxvt-unicode" -- probably not the most elegant solution, but I did it on a test machine. Disabling perl makes more sense; I never use the perl extensions.

I do wonder what's different in the Debian package, but not enough to do much more digging.

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: [SOLVED] urxvt spawns extra process

Unread post by DebianJoe » Sat Dec 28, 2013 1:50 am

Thanks for the solution.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: [SOLVED] urxvt spawns extra process

Unread post by xaos52 » Sat Dec 28, 2013 10:42 am

Thanks pids.
I could not find anything at a first glance in the debian patches that hinted it might be
causing this.

Filed a bug report against rxvt-unicode-256color in Debian.
Will post the bug number as soon as I get it myself.
(edit) using "apt-get source" to get the source from Debian and building it also produces an executable that works properly.
Not for me. Building any of the rxvt-unicode* packages from source and
installing them gives the errorneous behaviour. On a fully upgraded
Debian sid that is.
Connected. Take this REPL, brother, and may it serve you well.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: [SOLVED] urxvt spawns extra process

Unread post by dkeg » Sat Dec 28, 2013 1:11 pm

I only d/l'd the tar package, did not use apt-get source. Would there, should there be any difference? Did you try just with extracting the tarball and building? Also wasn't limited to rxvt-unicode-256-color, same issue with plain rxvt-unicode too.

Work hard; Complain less

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: [SOLVED] urxvt spawns extra process

Unread post by xaos52 » Sat Dec 28, 2013 1:39 pm

apt-get source downloads the upstream tarball, untars it and adds the
debian subdir, containing the "debianization' of the package.
To rebuild the debian way, cd to the package dir, so that you have the
'debian' subdir in the current dir and launch:

Code: Select all

dpkg-buildpackage -us -uc
This will apply the debian patches to the upstream sources and create one or more .deb files in the parent dir, which you
can then install with

Code: Select all

sudo dpkg -i <path-to-the-.deb-file>
Make sure you remove eventually installed package first.
Connected. Take this REPL, brother, and may it serve you well.

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: [SOLVED] urxvt spawns extra process

Unread post by pidsley » Sat Dec 28, 2013 2:36 pm

xaos52 wrote: Not for me. Building any of the rxvt-unicode* packages from source and
installing them gives the errorneous behaviour. On a fully upgraded
Debian sid that is.
Sorry, I should have been more clear. I did not build the Debian package and install it. I only built the executable and ran it (from the "src" directory). Given that urxvt worked on all my other machines, and worked built from original source, I assumed it was something in the Debian patches that was causing the problem, and I stopped looking.

In any event, if you built the Debian package and are seeing the error, this confirms that it's a problem in a Debian patch. It will be interesting to see how they respond to the bug report. Thank you for filing it.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: [SOLVED] urxvt spawns extra process

Unread post by dkeg » Sat Dec 28, 2013 3:15 pm

^ yes that its what i did. And thank you doc for opening the bug report. When you post the bug # I'll open a thread in our forums bug section.

Work hard; Complain less

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: [RESOLVED] urxvt spawns extra process

Unread post by xaos52 » Sat Dec 28, 2013 4:13 pm

Here is that bug report.
Connected. Take this REPL, brother, and may it serve you well.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: [RESOLVED] urxvt spawns extra process

Unread post by dkeg » Sat Dec 28, 2013 4:44 pm

Great, Thank you, I'll do it when i get home.

Work hard; Complain less

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: [RESOLVED] urxvt spawns extra process

Unread post by pidsley » Sun Dec 29, 2013 12:29 am

They closed the bug. I switched to aterm.

Post Reply