Debian Bug report logs - #493168
gpm: Segfaults on boot.

version graph

Package: gpm; Maintainer for gpm is Axel Beckert <abe@debian.org>; Source for gpm is src:gpm (PTS, buildd, popcon).

Reported by: Kurt Roeckx <kurt@roeckx.be>

Date: Thu, 31 Jul 2008 21:48:01 UTC

Severity: serious

Tags: patch

Found in version gpm/1.20.4-2

Fixed in version gpm/1.20.4-3

Done: Guillem Jover <guillem@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
New Bug report received and forwarded. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Kurt Roeckx <kurt@roeckx.be>
To: submit@bugs.debian.org
Subject: gpm: Segfaults on boot.
Date: Thu, 31 Jul 2008 23:46:03 +0200
Package: gpm
Version: 1.20.4-2
Severity: serious

Hi,

After a reboot (with the same kernel) gpm suddenly started to segfault
on startup:
gpm[2435]: segfault at 0000000000000058 rip 000000000040c7d0 rsp 00007fff273c5fd0 error 4

I'm seeing this with both a 2.6.22 and 2.6.26 kernel on amd64.


Kurt





Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Kurt Roeckx <kurt@roeckx.be>
To: 493168@bugs.debian.org
Subject: Re: gpm: Segfaults on boot.
Date: Thu, 31 Jul 2008 23:56:30 +0200
Hi,

It seems this is triggered by running
/etc/init.d/console-screen.sh start


When starting gpm again, it works, until console-screen.sh is started
again.


Kurt





Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #15 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
To: Kurt Roeckx <kurt@roeckx.be>
Cc: 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Fri, 1 Aug 2008 03:23:25 +0200
[Message part 1 (text/plain, inline)]
Can you try the following:

- install debugging symbols for gpm
- install gdb
- start console-screen
- start gpm in non forking mode (-D) and run it under gdb
- send the backtrace, where it crashes

Nico

Kurt Roeckx [Thu, Jul 31, 2008 at 11:56:30PM +0200]:
> Hi,
> 
> It seems this is triggered by running
> /etc/init.d/console-screen.sh start
> 
> 
> When starting gpm again, it works, until console-screen.sh is started
> again.
> 
> 
> Kurt
> 
> 
> 
> 
> _______________________________________________
> pkg-gpm-devel mailing list
> pkg-gpm-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-gpm-devel

-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #20 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Kurt Roeckx <kurt@roeckx.be>
To: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
Cc: 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Fri, 1 Aug 2008 19:58:07 +0200
On Fri, Aug 01, 2008 at 03:23:25AM +0200, Nico Schottelius wrote:
> Can you try the following:
> 
> - install debugging symbols for gpm

It's not like there is a -dbg package.

> - install gdb

> - start console-screen
> - start gpm in non forking mode (-D) and run it under gdb

Those 2 need to be reversed.

> - send the backtrace, where it crashes

It segfaults here in src/daemon/old_main.c:
         /* and notify clients */
         for(i=0; i<MAX_VC+1; i++) {
            Gpm_Cinfo *ci;
            for (ci = cinfo[i]; ci; ci = ci->next) kill(ci->data.pid,SIGWINCH);
         }

The problem is that <linux/vt.h> has:
./linux/vt.h:#define MAX_NR_CONSOLES    63      /* serial lines start at 64 */

While src/headers/daemon.h has:
#ifndef MAX_NR_CONSOLES
#  define MAX_NR_CONSOLES 64 /* this is always sure */
#endif

#define MAX_VC    MAX_NR_CONSOLES  /* doesn't work before 1.3.77 */

Some files, like gpm.c that defines cinfo think that cinfo contains
64 elements, while others like old_main.c thinks it has 65.  And
so cinfo[64] is really the address of an other variable (maxx).

I suggest you add an #include <linux/vt.h> in daemon.h.


Kurt





Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #25 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
To: Kurt Roeckx <kurt@roeckx.be>
Cc: 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Mon, 4 Aug 2008 10:53:50 +0200
[Message part 1 (text/plain, inline)]
Hello Kurt!

I fixed it in the gpm-2-dev tree and put up a tarfile containing the
change:

http://home.schottelius.org/~nico/temp/gpm-1.99.7-1-g9771509.tar.bz2

Can you give it a try and report if it works?

Sincerly,

Nico

-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #30 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Kurt Roeckx <kurt@roeckx.be>
To: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
Cc: 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Mon, 4 Aug 2008 18:51:09 +0200
On Mon, Aug 04, 2008 at 10:53:50AM +0200, Nico Schottelius wrote:
> Hello Kurt!
> 
> I fixed it in the gpm-2-dev tree and put up a tarfile containing the
> change:
> 
> http://home.schottelius.org/~nico/temp/gpm-1.99.7-1-g9771509.tar.bz2
> 
> Can you give it a try and report if it works?

I get the following error:
cc1: warnings being treated as errors
src/drivers/twid/twiddler.c: In function 'twiddler_rest_to_value':
src/drivers/twid/twiddler.c:503: error: cast to pointer from integer of different size

twiddler_escape_sequence() returns an int, which is probably a char.
I'm guessing that you want to put that into ptr or something, and return
that.

I've commented that part out.

I can start it, I can run the console-tools init script and it keep
running, but I don't see a cursor.


Kurt





Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #35 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
To: Kurt Roeckx <kurt@roeckx.be>, 493168@bugs.debian.org
Cc: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Tue, 5 Aug 2008 12:28:14 +0200
[Message part 1 (text/plain, inline)]
Kurt Roeckx [Mon, Aug 04, 2008 at 06:51:09PM +0200]:
> On Mon, Aug 04, 2008 at 10:53:50AM +0200, Nico Schottelius wrote:
> > Hello Kurt!
> > 
> > I fixed it in the gpm-2-dev tree and put up a tarfile containing the
> > change:
> > 
> > http://home.schottelius.org/~nico/temp/gpm-1.99.7-1-g9771509.tar.bz2
> > 
> > Can you give it a try and report if it works?
> 
> I get the following error:
> cc1: warnings being treated as errors
> src/drivers/twid/twiddler.c: In function 'twiddler_rest_to_value':
> src/drivers/twid/twiddler.c:503: error: cast to pointer from integer of different size

I guess you are on 64bit linux?
The cast is pretty much a hack, which should be rewritten anyway...

> twiddler_escape_sequence() returns an int, which is probably a char.

That's it. But twiddler_rest_to_value returns a char *...

> I'm guessing that you want to put that into ptr or something, and return
> that.

As said above, want to rewrite the whole hack.

> I can start it, I can run the console-tools init script and it keep
> running, but I don't see a cursor.

Hmm, strange. Can you try attaching the client programs:

- display-buttons (and click some buttons, attach output)
- display-coords (and move the mouse, attach output)
- get-versions (to verify we've the correct daemon / lib, attach output)

Also the output of strace -Ff gpm -D >LOG 2>&1 could be helpful.

Nico

-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #40 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Kurt Roeckx <kurt@roeckx.be>
To: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
Cc: 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Tue, 5 Aug 2008 18:46:02 +0200
[Message part 1 (text/plain, inline)]
On Tue, Aug 05, 2008 at 12:28:14PM +0200, Nico Schottelius wrote:
> Kurt Roeckx [Mon, Aug 04, 2008 at 06:51:09PM +0200]:
> > On Mon, Aug 04, 2008 at 10:53:50AM +0200, Nico Schottelius wrote:
> > > Hello Kurt!
> > > 
> > > I fixed it in the gpm-2-dev tree and put up a tarfile containing the
> > > change:
> > > 
> > > http://home.schottelius.org/~nico/temp/gpm-1.99.7-1-g9771509.tar.bz2
> > > 
> > > Can you give it a try and report if it works?
> > 
> > I get the following error:
> > cc1: warnings being treated as errors
> > src/drivers/twid/twiddler.c: In function 'twiddler_rest_to_value':
> > src/drivers/twid/twiddler.c:503: error: cast to pointer from integer of different size
> 
> I guess you are on 64bit linux?

Yes.

> > I can start it, I can run the console-tools init script and it keep
> > running, but I don't see a cursor.
> 
> Hmm, strange. Can you try attaching the client programs:
> 
> - display-buttons (and click some buttons, attach output)

	p=pressed (0=release)
	l=left
	m=middle
	r=right
[1217953499] delta: 1217953499s: p=4, l=4, m=0, r=0, clicks=0
[1217953499] delta: 0s: p=0, l=4, m=0, r=0, clicks=0
[1217953500] delta: 1s: p=4, l=4, m=0, r=0, clicks=0
[1217953500] delta: 0s: p=0, l=4, m=0, r=0, clicks=0
[1217953500] delta: 0s: p=4, l=4, m=0, r=0, clicks=1
[1217953500] delta: 0s: p=0, l=4, m=0, r=0, clicks=1
[1217953502] delta: 2s: p=4, l=0, m=0, r=1, clicks=0
[1217953502] delta: 0s: p=0, l=0, m=0, r=1, clicks=0
[1217953504] delta: 2s: p=4, l=0, m=0, r=1, clicks=0
[1217953504] delta: 0s: p=0, l=0, m=0, r=1, clicks=0
[1217953505] delta: 1s: p=4, l=4, m=0, r=0, clicks=0
[1217953506] delta: 1s: p=0, l=4, m=0, r=0, clicks=0


> - display-coords (and move the mouse, attach output)

[1217953549] delta: 1217953549s: x=45, y=26, dx= 0, dy= 0
[1217953550] delta: 1s: x=45, y=26, dx= 0, dy= 0
[1217953550] delta: 0s: x=47, y=26, dx= 2, dy= 0
[1217953550] delta: 0s: x=50, y=27, dx= 3, dy= 1
[1217953551] delta: 1s: x=54, y=29, dx= 4, dy= 2
[1217953551] delta: 0s: x=59, y=30, dx= 5, dy= 2
[1217953551] delta: 0s: x=64, y=30, dx= 5, dy= 1
[1217953551] delta: 0s: x=70, y=30, dx= 6, dy= 2
[1217953551] delta: 0s: x=76, y=30, dx= 6, dy= 1
[1217953551] delta: 0s: x=80, y=30, dx= 6, dy= 2
[1217953551] delta: 0s: x=80, y=30, dx= 6, dy= 2
[1217953551] delta: 0s: x=80, y=30, dx= 6, dy= 1
[1217953551] delta: 0s: x=80, y=30, dx= 6, dy= 1
[1217953551] delta: 0s: x=80, y=30, dx= 7, dy= 1
[1217953551] delta: 0s: x=80, y=30, dx= 6, dy= 1
[1217953551] delta: 0s: x=80, y=30, dx= 6, dy= 1
[1217953551] delta: 0s: x=80, y=30, dx= 6, dy= 0

> - get-versions (to verify we've the correct daemon / lib, attach output)

lib: 2.1.0, 20100
srv: 1.99.7-1-g977150, 19907

> Also the output of strace -Ff gpm -D >LOG 2>&1 could be helpful.

See attachment.

Everything seems to work, it's just that I don't see I don't see the
cursor, nor do I see it paste any output.



Kurt

[log.txt.gz (application/octet-stream, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #45 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
To: Kurt Roeckx <kurt@roeckx.be>
Cc: 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Tue, 5 Aug 2008 20:50:54 +0200
[Message part 1 (text/plain, inline)]
Kurt Roeckx [Tue, Aug 05, 2008 at 06:46:02PM +0200]:
> On Tue, Aug 05, 2008 at 12:28:14PM +0200, Nico Schottelius wrote:
> > Kurt Roeckx [Mon, Aug 04, 2008 at 06:51:09PM +0200]:
> > > On Mon, Aug 04, 2008 at 10:53:50AM +0200, Nico Schottelius wrote:
> > > > Can you give it a try and report if it works?
> > > 
> > > I get the following error:
> > > cc1: warnings being treated as errors
> > > src/drivers/twid/twiddler.c: In function 'twiddler_rest_to_value':
> > > src/drivers/twid/twiddler.c:503: error: cast to pointer from integer of different size
> > 
> > I guess you are on 64bit linux?
> 
> Yes.

Will fix that issue in the next time.


> > > I can start it, I can run the console-tools init script and it keep
> > > running, but I don't see a cursor.
> > 
> > Hmm, strange. Can you try attaching the client programs:
> > 

Indeed, they look good.

Can you please test it using
   http://home.schottelius.org/~nico/temp/gpm-1.99.7-2-g86f8b28.tar.bz2
and gpm -D ... >LOG 2>&1 and send this log to me?

I do not expect this version to display the cursor, but at least to get
some impression, why selection_copy() does not enable the cursor.


Sincerly,

Nico

-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #50 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Kurt Roeckx <kurt@roeckx.be>
To: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
Cc: 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Tue, 5 Aug 2008 22:35:26 +0200
On Tue, Aug 05, 2008 at 08:50:54PM +0200, Nico Schottelius wrote:
> > > 
> > > Hmm, strange. Can you try attaching the client programs:
> > > 
> 
> Indeed, they look good.
> 
> Can you please test it using
>    http://home.schottelius.org/~nico/temp/gpm-1.99.7-2-g86f8b28.tar.bz2
> and gpm -D ... >LOG 2>&1 and send this log to me?
> 
> I do not expect this version to display the cursor, but at least to get
> some impression, why selection_copy() does not enable the cursor.


It still looks the same to me like before.  I've also attached gdb and
set a breakpoint in selection_copy and never got there.  The problem
seems to be that in old_main.c line 236, event.vc is 1, and cinfo[1] is
NULL.  In fact, cinfo is completly filled with NULL.

PS: The new tar has a src/daemon/selection_copy.c~ in it.


Kurt





Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #55 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
To: Kurt Roeckx <kurt@roeckx.be>
Cc: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>, 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Wed, 6 Aug 2008 10:31:50 +0200
[Message part 1 (text/plain, inline)]
> It still looks the same to me like before.  I've also attached gdb and
> set a breakpoint in selection_copy and never got there.  The problem
> seems to be that in old_main.c line 236, event.vc is 1, and cinfo[1] is
> NULL.  In fact, cinfo is completly filled with NULL.

Ha! Found the bug! This was a real good hint :-)

I reorded a three level if-clause wrongly in some cleanup commit
(old_main.c).

Fixed that in 1.99.7-4-gb4dddd7, which is available at

http://home.schottelius.org/~nico/temp/gpm-1.99.7-4-gb4dddd7.tar.bz2

Can you test it, if it works as expected now?

> PS: The new tar has a src/daemon/selection_copy.c~ in it.

Thanks, removed it. It's a left-over from the indent_script.

I'll backport the fix to 1.20.x and make a new release soon.
As soon as the compile error on 64 Bit Linux is fixed, there
will also be a new 1.99.x release.

Expect both before the end of August.

Sincerly,

Nico


-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #60 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Kurt Roeckx <kurt@roeckx.be>
To: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
Cc: 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Wed, 6 Aug 2008 19:43:45 +0200
On Wed, Aug 06, 2008 at 10:31:50AM +0200, Nico Schottelius wrote:
> > It still looks the same to me like before.  I've also attached gdb and
> > set a breakpoint in selection_copy and never got there.  The problem
> > seems to be that in old_main.c line 236, event.vc is 1, and cinfo[1] is
> > NULL.  In fact, cinfo is completly filled with NULL.
> 
> Ha! Found the bug! This was a real good hint :-)
> 
> I reorded a three level if-clause wrongly in some cleanup commit
> (old_main.c).
> 
> Fixed that in 1.99.7-4-gb4dddd7, which is available at
> 
> http://home.schottelius.org/~nico/temp/gpm-1.99.7-4-gb4dddd7.tar.bz2
> 
> Can you test it, if it works as expected now?

Yes, seems to work perfectly.


Kurt





Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (Tue, 07 Oct 2008 21:24:13 GMT) (full text, mbox, link).


Acknowledgement sent to Samuel Thibault <samuel.thibault@ens-lyon.org>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (Tue, 07 Oct 2008 21:24:14 GMT) (full text, mbox, link).


Message #65 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>, 493168@bugs.debian.org, control@bugs.debian.org
Cc: Kurt Roeckx <kurt@roeckx.be>
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Tue, 7 Oct 2008 23:15:56 +0200
[Message part 1 (text/plain, inline)]
tags 493168 + patch
thanks

Hello,

Nico Schottelius, le Wed 06 Aug 2008 10:31:50 +0200, a écrit :
> I'll backport the fix to 1.20.x and make a new release soon.
> As soon as the compile error on 64 Bit Linux is fixed, there
> will also be a new 1.99.x release.

Here is a packport of the patch. Kurt, could you test it?

Nico, note that I actually had to fix your patch: it was
letting applications connect to vc MAX_NR_CONSOLES (the check
was request->vc>MAX_NR_CONSOLES), while the array is only
0..MAX_NR_CONSOLES-1.  Since VT number MAX_NR_CONSOLES indeed does
exist, I've extended the array to 0..MAX_NR_CONSOLES and fixed the for
loops accordingly.

Samuel
[patch (text/plain, attachment)]

Tags added: patch Request was from Samuel Thibault <samuel.thibault@ens-lyon.org> to control@bugs.debian.org. (Tue, 07 Oct 2008 21:24:24 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#493168; Package gpm. (Sun, 12 Oct 2008 09:12:02 GMT) (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (Sun, 12 Oct 2008 09:12:02 GMT) (full text, mbox, link).


Message #72 received at 493168@bugs.debian.org (full text, mbox, reply):

From: Kurt Roeckx <kurt@roeckx.be>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>, 493168@bugs.debian.org
Subject: Re: Bug#493168: gpm: Segfaults on boot.
Date: Sun, 12 Oct 2008 11:06:26 +0200
On Tue, Oct 07, 2008 at 11:15:56PM +0200, Samuel Thibault wrote:
> tags 493168 + patch
> thanks
> 
> Hello,
> 
> Nico Schottelius, le Wed 06 Aug 2008 10:31:50 +0200, a écrit :
> > I'll backport the fix to 1.20.x and make a new release soon.
> > As soon as the compile error on 64 Bit Linux is fixed, there
> > will also be a new 1.99.x release.
> 
> Here is a packport of the patch. Kurt, could you test it?

Yes, it works.


Kurt





Tags added: pending Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Wed, 22 Oct 2008 04:24:02 GMT) (full text, mbox, link).


Reply sent to Guillem Jover <guillem@debian.org>:
You have taken responsibility. (Sun, 26 Oct 2008 03:52:00 GMT) (full text, mbox, link).


Notification sent to Kurt Roeckx <kurt@roeckx.be>:
Bug acknowledged by developer. (Sun, 26 Oct 2008 03:52:00 GMT) (full text, mbox, link).


Message #79 received at 493168-close@bugs.debian.org (full text, mbox, reply):

From: Guillem Jover <guillem@debian.org>
To: 493168-close@bugs.debian.org
Subject: Bug#493168: fixed in gpm 1.20.4-3
Date: Sun, 26 Oct 2008 03:32:06 +0000
Source: gpm
Source-Version: 1.20.4-3

We believe that the bug you reported is fixed in the latest version of
gpm, which is due to be installed in the Debian FTP archive:

gpm_1.20.4-3.diff.gz
  to pool/main/g/gpm/gpm_1.20.4-3.diff.gz
gpm_1.20.4-3.dsc
  to pool/main/g/gpm/gpm_1.20.4-3.dsc
gpm_1.20.4-3_i386.deb
  to pool/main/g/gpm/gpm_1.20.4-3_i386.deb
libgpm-dev_1.20.4-3_i386.deb
  to pool/main/g/gpm/libgpm-dev_1.20.4-3_i386.deb
libgpm2_1.20.4-3_i386.deb
  to pool/main/g/gpm/libgpm2_1.20.4-3_i386.deb
libgpmg1-dev_1.20.4-3_i386.deb
  to pool/main/g/gpm/libgpmg1-dev_1.20.4-3_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 493168@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover <guillem@debian.org> (supplier of updated gpm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 26 Oct 2008 04:36:14 +0200
Source: gpm
Binary: gpm libgpm2 libgpm-dev libgpmg1-dev
Architecture: source i386
Version: 1.20.4-3
Distribution: unstable
Urgency: low
Maintainer: Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>
Changed-By: Guillem Jover <guillem@debian.org>
Description: 
 gpm        - General Purpose Mouse interface
 libgpm-dev - General Purpose Mouse - development files
 libgpm2    - General Purpose Mouse - shared library
 libgpmg1-dev - transitional dummy package which can be safely removed
Closes: 469933 479474 479824 480070 488053 490895 492954 493168 494924
Changes: 
 gpm (1.20.4-3) unstable; urgency=low
 .
   * Remove myself from Uploaders.
   * Group related patches:
     - debian/patches/030_daemon_quit: Rename to ...
     - debian/patches/020_daemon_quit_noverbose.patch: ... this.
   * Demote syslog message when the gpmctl node cannot be opened to debugging
     output, that's the case when gpm is not running. And change libgpm to not
     log into syslog debugging messages. (Closes: #469933, #479474, #479824)
     (Closes: #480070, #488053, #490895, #492954, #494924)
     Thanks to Jonathan Nieder <jrnieder@uchicago.edu>.
     - debian/patches/015_libgpm_noverbose.patch: Replace with ...
     - debian/patches/021_libgpm_dev_gpmctl_debug_msg.patch: ... this.
     - debian/patches/022_libgpm_no_log_debug_msg.patch: New file.
   * Fix a segfault on startup produced by an off-by-one error when accessing
     the console information array due to a missmatch between some files
     using the kernel and others the gpm definition for the number of
     supported consoles. (Closes: #493168)
     Thanks to Nico Schottelius <nico-debian-pkg-gpm-devel@schottelius.org>
     and Samuel Thibault <samuel.thibault@ens-lyon.org>.
     - debian/patches/031_max_consoles.patch: New file.
   * Update Catalan debconf translation.
Checksums-Sha1: 
 bc1cf9990239ac35da47900344b2ef760e173157 1247 gpm_1.20.4-3.dsc
 bc7f8928f88fd9bcda4f9dcffdd0112379607ca4 86782 gpm_1.20.4-3.diff.gz
 4503ef8718964735a2df0433dae5ce5f824f6c41 212924 gpm_1.20.4-3_i386.deb
 55e17380dc3d818a6643931a7a025aa85408817f 33800 libgpm2_1.20.4-3_i386.deb
 12483925d276bb033fa524a8a9c3220ff94ac562 37040 libgpm-dev_1.20.4-3_i386.deb
 f4fde889dcde28128eebc03e4f11d5ed2fc16b69 23606 libgpmg1-dev_1.20.4-3_i386.deb
Checksums-Sha256: 
 a461a870e9649f5dca08ed4558f4c4c939e13f938711ea058b3974b77a391623 1247 gpm_1.20.4-3.dsc
 fdf9bc3148fd3a5808baaac3ca71076b733d40e783dd37c10942e8db6333f37d 86782 gpm_1.20.4-3.diff.gz
 750434d0c597d7109bd31eab75c882e2e680a735d85d1f35966f4fd609c8d77d 212924 gpm_1.20.4-3_i386.deb
 20cfaf7552d0174abbeed2af770342948a4f44dd13de6799b37d4dcbd2c0138f 33800 libgpm2_1.20.4-3_i386.deb
 c2dcdd0ebac4a9cf6a1d10e6d31f65e2f5b737ceea3213531509c6ffdae07827 37040 libgpm-dev_1.20.4-3_i386.deb
 60bff7c913900bc6eccf0b4886cb92685129622da23524bd195ff91d53e5a7f6 23606 libgpmg1-dev_1.20.4-3_i386.deb
Files: 
 0267566bb88d3c0fbf7afa48433f711f 1247 misc optional gpm_1.20.4-3.dsc
 a090a82338ad95df105eac11387f025b 86782 misc optional gpm_1.20.4-3.diff.gz
 1444faeb547c5237112e36cf7ec5773f 212924 misc optional gpm_1.20.4-3_i386.deb
 367db1166570d63ede0811f4001c6543 33800 libs standard libgpm2_1.20.4-3_i386.deb
 1a17057e54a8f7da8826a0513acd95b4 37040 libdevel optional libgpm-dev_1.20.4-3_i386.deb
 bda0a3c1f49065d436a2ac65e72228f3 23606 oldlibs extra libgpmg1-dev_1.20.4-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkkD2RsACgkQuW9ciZ2SjJvphwCfdtjPV4S21Pb9wSP1Z6qSumfm
sq0Anils1KpqHAvd+A82Vuc20Mixnzjq
=Oz/f
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 04 Dec 2008 07:26:28 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 15:29:25 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.