[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: stupid debug error.
From: Cristian Tibirna <ctibirna () total ! net>
Date: 1999-07-05 16:45:37
[Download RAW message or body]
Hi
kcontrol segfaults on a heck of a iconloader use at
kdebase/kcontrol/kcontrol/mainwidget.cpp#20
So, I changed the code in order to use the new kstddirs:
pmap = ICON(locate("icon", "kdekcc.xpm"));
It still dumps core.
The traceback shows that it breaks in
kdelibs/kdecore/kiconloader.cpp%loadInternal(),
but it shouldn't. The QString constructor there gets a constant char* as
argument and has NO reason to segfault. Anyways, if it had, it should
segfault on all loadIcon() calls, which is not the case. What the heck? I
start to have had enough of this.
(gdb) back
#0 chunk_alloc (ar_ptr=0x407a1580, nb$) at malloc.c:2777
#1 0x40710b8a in __libc_malloc (bytes ) at malloc.c:2616
#2 0x4068c006 in __builtin_new (sz )
#3 0x4034a28f in QString::QString ()
#4 0x401ac9a1 in KIconLoader::loadInternal ()
#5 0x401ac24a in KIconLoader::loadIcon ()
#6 0x8052aa0 in mainWidget::mainWidget ()
#7 0x8051d28 in TopLevel::TopLevel ()
#8 0x80514de in standalone ()
#9 0x805178c in main ()
#10 0x406d0cb3 in __libc_start_main (main=0x8051578 <main>, argc=1,
argv=0xbffff8d4, init=0x804db70 <_init>, fini=0x8053c20 <_fini>,
rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffff8cc)
at ../sysdeps/generic/libc-start.c:78
(gdb)
Cristian
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic