[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: Bug#1110: Acknowledgement (BUG: KPM)
From: Daniel Bach <daniel.bach () utoronto ! ca>
Date: 1999-03-31 9:13:10
[Download RAW message or body]
The problem has been further isolated.
GDB has shown the problem to be at proc.C at line 200.
gdb output:
Core was generated by `/home/dante/kdeutils-1.1/kpm/kpm'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /opt/kde/lib/libkdeui.so.2...done.
Reading symbols from /opt/kde/lib/libkdecore.so.2...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/lib/libqt.so.1...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/lib/libstdc++.so.2.8...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
#0 0x4049dd99 in _IO_str_init_static (fp=0xbffff6e8, ptr=0x6 " ", size=0,
pstart=0x0)
at strops.c:66
strops.c:66: No such file or directory.
(gdb) b Procinfo::read_common
Breakpoint 1 at 0x8060666: file proc.C, line 178.
Current language: auto; currently c
(gdb) run
Starting program: /home/dante/kdeutils-1.1/kpm/kpm
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
KCharset: Wrong charset!
KCharset: Wrong charset!
Breakpoint 1, Procinfo::read_common () at proc.C:178
178 strcpy(path, procdir);
Current language: auto; currently c++
(gdb) n
179 strcat(path, "/meminfo");
(gdb) n
180 if(read_file(path, buf, sizeof(buf)) <= 0) return;
(gdb) n
184 char *p = strstr(buf, "MemTotal:");
(gdb) n
188 &mem_cached, &swap_total, &swap_free);
(gdb) n
191 strcpy(path, procdir);
(gdb) n
192 strcat(path, "/stat");
(gdb) n
193 if(read_file(path, buf, sizeof(buf)) <= 0) return;
(gdb) n
194 for(int i = 0; i < CPUTIMES; i++)
(gdb) n
195 old_cpu_time[i] = cpu_time[i];
(gdb) n
195 old_cpu_time[i] = cpu_time[i];
(gdb) n
195 old_cpu_time[i] = cpu_time[i];
(gdb) n
195 old_cpu_time[i] = cpu_time[i];
(gdb) n
198 &cpu_time[CPU_SYSTEM], &cpu_time[CPU_IDLE]);
(gdb) n
199 p = strstr(buf, "btime") + 6;
(gdb) p p
$1 = 0xbffff827 "7\nswap 14862 20796\nintr 8012255 1271755 32299 0 0 0 1 3 0
0 69871 0 0 625309 1 6013016 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"...
(gdb) n
200 sscanf(p, "%u", &boot_time);
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
0x4049dd99 in _IO_str_init_static (fp=0xbffff6e8, ptr=0x6 <Address 0x6 out of
bounds>,
size=0, pstart=0x0) at strops.c:66
strops.c:66: No such file or directory.
Current language: auto; currently c
We can see that in line 199 p = 0xbffff827 but at 200 it is 0x6. I believe
that that is the error.
I hope that this helps,
Daniel Bach
> I have a bug in kpm.
>
> Background:
> My system crashed, during fsck I removed blocks etc, only one file was
> reported removed /bin/netstat, it has since been replaced.
> This is the only error I have found since the crash. The rest of kde
> and (I think) my system works.
>
>
> Bug:
> kpm returns this on start up:
>
> KCharset: Wrong charset!
>
> KCharset: Wrong charset!
>
> Segmentation fault.
>
> Other:
> I ran gdb on kpm, gdb reported:
>
> Program received signal SIGSEV, Segmentation Fault.
> 0x4049dd99 in _IO_str_init_static (fp=0xbffff81c, ptr-0x6 <Address Ox6
> out of bounds>,
> size=0, pstart=0x0) at strops.c:66
> strops.c:66: No such file or directory
>
> Attempts at repair:
> *I could not locate strops.c in the kpm distribution, nor anywhere else
> on my system
> *kde was reinstalled in it entirety (incl. qt)
> *kpm was reinstalled from the source
> This didn't help
>
> System:
> AMDK6-2 300 over clocked to 333
> 64M ram
> RedHat 5.2
> Kernel 2.2.5
> KDE 1.1
> XFree86 3.3.3.1
>
> PLEASE REPLY TO ME BY EMAIL
> IF THE BUG IS FIXED OR IF ANYONE KNOWS WHAT strops.c IS, SO I CAN
> FIX MY SYSTEM
>
> Thank you,
>
> Daniel
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic