Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2000:
[Freeciv-Dev] Problem using memprof
Home

[Freeciv-Dev] Problem using memprof

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: otaylor@xxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Problem using memprof
From: Jan Dittberner <jan@xxxxxxxxxxxxxxxxx>
Date: Sat, 15 Jul 2000 10:33:31 +0200

Hello,

I tried to debug some memory leaks in freeciv (civclient PR#374)
with memprof 0.4.0, but it simply does nothing.
I do run, select /usr/local/bin/civclient, and then nothing
happens, I can select leaks, or profile, but there's no
action in memprof.

Also giving /usr/local/bin/civclient as command line parameter
doesn't help.

I use the HelixCode rpm of memprof-0.4.0 on Linux Mandrake 7.0
with glibc-2.1.3 and most recent gtk+ and gnome libraries.

I had the same problem with memprof-0.3.0.

I did an ltrace on "memprof /usr/local/bin/civclient" and there
where some interesting lines:

--------------------------------------------------------------
__xstat(3, "/usr/local/bin/civclient", 0x7ffff4d4) = 0
g_malloc(16, 0x080f5020, 0x080962d8, 776, 0)      = 0x080f4e98
g_hash_table_lookup(0x0810a6a0, 0x080f4e98, 16, 0x080f5020, 0x080962d8) = 0
g_hash_table_insert(0x0810a6a0, 0x080f4e98, 0x080f4e98, 0x080f5020, 0x080f5020) 
= 288
fork()                                            = 1647

...

write(9, "\001", 1 <unfinished ...>
--- SIGCHLD (Der Kind-Prozeß ist beendet) ---
__errno_location()                                = 0x2b06b340
waitpid(-1, 0, 1, 9, 0x080ced60)                  = 1647
waitpid(-1, 0, 1, 9, 0x080ced60)                  = -1
__errno_location()                                = 0x2b06b340
__errno_location()                                = 0x2b06b340
breakpointed at 0x2b01e483 (?)
--------------------------------------------------------------

I think running civclient fails starting, but don't know why.
Running civclient normally works by typing:

/usr/local/bin/civclient

in a terminal window.

Is this a known issue, can you give me hints how to examine
what's going wrong?


Jan Dittberner,
Germany



[Prev in Thread] Current Thread [Next in Thread]