My Hackergotchi

Updated: Never — Philip's Blog

Now featuring regular updates!

Wed, 23 Apr 2008

14:44 – gpm considered harmful

Today I finally figured out why on my RedHat box at work applications like vim and w3m sometimes hang on startup for no particular reason.

It turns out that autocrap causes these applications to link with libgpm if that happens to exist on the system. Why autocrap believes that the presence of a library on the system in any way implies that I'd like to link with it is entirely beyond me.

The linking in itself is not the problem though.

gpm communicates with clients using pipes. When you stick an application in the background for a long time (I sometimes have vim or w3m instances sitting in the background for days at a time), its pipe will fill up. When one pipe fills up, all applications hang.

Two bugs: autocrap causes unrequested linkage and gpm allows random applications linked with it to cause other applications to hang by simply sitting in the background for a while.

This sucks.

Autotools doesn't cause unrequested linkage.  The configure script of the project that possibly could link to gpm is written such that it will use it if present.

If you consider this a bug, you should complain to the project's author (though I doubt they will consider a bug, most software is written such that it takes advantage of libraries that they have code for by default, and usually allow you to disable it with a configure option, which you should use in this case), but it's not the fault of autotools.

Posted by Thomas Vander Stichele at Wed Apr 23 20:38:29 2008
While the human detection questions are cute, they could use some work.

Which bit is 128 ?

Well, where do you start counting ?

My answer of 0 was considered wrong.

Also, it's not clear on the page you get after giving a wrong answer that your comment was rejected.

Losing your comment because of it is annoying - decent software remembers what the user already typed.

Posted by Thomas Vander Stichele at Wed Apr 23 20:41:20 2008
128 is always bit 8. Whether you start from the left or the right, it's still bit 8.

Posted by Bram at Wed Apr 30 14:18:32 2008

Name:

Email:

URL:

Comment:


Prove that you are not a spammer: