Subject: Re: pkg/29547: centericq+sparc64+gcc3 = boom
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: pkgsrc-bugs
Date: 03/18/2005 08:35:01
The following reply was made to PR pkg/29547; it has been noted by GNATS.

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/29547: centericq+sparc64+gcc3 = boom
Date: Fri, 18 Mar 2005 09:34:26 +0100

 This is not a stdlib problem. If you compile a debug version and run it
 in gdb, you see the obvious problem:
 
 In kkconsui-0.1/src/dialogbox.cc there is this function:
 
 bool dialogbox::open(int &menuitem, int &baritem, void **ref)
 
 in line 101 you'll find: if(ref) *ref = r;
 this is where the crash happens. The caller at this point is
 accountmanager.cc:155:
 
    fin = !db.open(n, b, (void **) &citem) || (b == 1);
 
 and looking some pages above you'll find that citem is of type int.
 
 Now sizeof(int) != sizeof(void*). Boom.
 
 Martin