pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/29547: centericq+sparc64+gcc3 = boom



The following reply was made to PR pkg/29547; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
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
 



Home | Main Index | Thread Index | Old Index