Re: memdump

2002-04-20 Thread Michael Wagner

On Fri, Apr 19, 2002 at 11:33:19AM +0200, Uwe Kerstan wrote:
 
> welches Programm schreibt die Datei /.memdump auf die Platte?
> 
> $ ls -l /.memdump
> -rw-r--r--1 root root   82 19. Apr 09:23 /.memdump
 
Hallo Uwe,

das ist mir heute auch aufgefallen. Die Datei war 2 Tage alt und das
ist scheinbar zum 1. Mal vorgekommen, denn mir ist es bis jetzt noch
nicht aufgefallen. Ich habe bis jetzt auch noch nicht rausgefunden, wo
das herkommt. Ich kann mir auch nicht vorstellen, welches Programm
einfach so in / reinschreibt. 

Falls du irgendwas darüber in Erfahrung bringst, wäre es nett, wenn du
mir das Ergebnis mitteilen könntest. Ich mache es natürlich auch,
falls ich was finde.

CU Michael

PS: Tagesaktuelles woody mit Kernel 2.4.19-pre6 

-- 
Nothing would please me more than being able to hire ten programmers
and deluge the hobby market with good software.
-- Bill Gates, 1976



msg06278/pgp0.pgp
Description: PGP signature


Re: memdump

2002-04-21 Thread Uwe Kerstan

* Michael Wagner <[EMAIL PROTECTED]> [21-04-02 01:06]:

> das ist mir heute auch aufgefallen. Die Datei war 2 Tage alt und das
> ist scheinbar zum 1. Mal vorgekommen, denn mir ist es bis jetzt noch
> nicht aufgefallen. Ich habe bis jetzt auch noch nicht rausgefunden, wo
> das herkommt. Ich kann mir auch nicht vorstellen, welches Programm
> einfach so in / reinschreibt. 

Hallo Michael,

ich habe den Übeltäter. ;-)

root@one [5]:~ # cd /
root@one [5]:/ # ls -l .memdump
ls: .memdump: Datei oder Verzeichnis nicht gefunden
root@one [5]:/ # /etc/cron.monthly/scrollkeeper
...
root@one [5]:/ # ls -l .memdump
-rw-r--r--1 root root   82 21. Apr 10:51 .memdump

Ich habe den Job jetzt etwas geändert, in /tmp stört mich die Datei nicht:

root@one [5]:/ # cat /etc/cron.monthly/scrollkeeper
#! /bin/sh

cd /tmp

umask 022
scrollkeeper-rebuilddb

Gruss Uwe



msg06284/pgp0.pgp
Description: PGP signature


Re: memdump

2002-04-21 Thread Michael Welle

Sers,

Michael Wagner <[EMAIL PROTECTED]> writes:

> On Fri, Apr 19, 2002 at 11:33:19AM +0200, Uwe Kerstan wrote:
>  
>> welches Programm schreibt die Datei /.memdump auf die Platte?
vielleicht hilft das oder aehnliches weiter?

http://dev.w3.org/cvsweb/XML/RunTests.diff?r1=1.3&r2=1.4

VG
hmw


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: memdump

2002-04-21 Thread Andreas Metzler

Uwe Kerstan <[EMAIL PROTECTED]> wrote:
> welches Programm schreibt die Datei /.memdump auf die Platte?

> $ ls -l /.memdump
> -rw-r--r--1 root root   82 19. Apr 09:23 /.memdump

> $ cat /.memdump
>  09:23:10

>  MEMORY ALLOCATED : 0, MAX was 0
> BLOCK  NUMBER   SIZE  TYPE

> Was passiert da? 
> Ungefragt nach / schreiben finde ich nicht gut.
[...]

Ich hatte die Datei auch, es muss ein Programm sein, dass als root
aufgerufen wurde und dann gekillt wurde oder abgestuerzt ist und das
gegen libxml2 linkt.

|- /usr/share/doc/libxml2-dev/libxml-dev.html/xml.html --
| Debugging routines
| 
| When configured using --with-mem-debug flag (off by default),
| libxml uses a set of memory allocation debugging routineskeeping
| track of all allocated blocks and the location in the code where
| the routine was called. A couple of other debugging routines allow
| to dump the memory allocated infos to a file or call a specific
| routine when a given block number is allocated:
| 
| * xmlMallocLoc() xmlReallocLoc() and xmlMemStrdupLoc() are the
|   memory debugging replacement allocation routines
| * xmlMemoryDump () dumps all the informations about the allocated
|   memory block lefts in the .memdump file
|

(Gefunden mit
find /usr/ -type f -print0 | xargs -0 grep -l memdump)

Bei mir sind das folgende Komponenten:
downhill:~# dpkg --no-act -r libxml2
dpkg: dependency problems prevent removal of libxml2:
 wv depends on libxml2 (>= 2.4.0-1).
 libmagick5 depends on libxml2 (>= 2.4.0-1).
 kdelibs3 depends on libxml2 (>= 2.4.0-1).
 kdelibs3-bin depends on libxml2 (>= 2.4.0-1).
 libxml2-dev depends on libxml2 (= 2.4.16-2).
 libxslt1 depends on libxml2 (>= 2.4.3-1).
 libwmf0.2-2 depends on libxml2 (>= 2.4.0-1).
 xsltproc depends on libxml2 (>= 2.4.3-1).

ametzler@downhill:~> { find /usr/bin -type f -print0 | xargs -0 grep -l xmlMemoryDump 
; } 2>&1 | tee /tmp/memdump-log2
/usr/bin/xml2man
/usr/bin/xmllint
/usr/bin/xsltproc
/usr/bin/xmlcatalog

   cu andreas


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: memdump

2002-04-21 Thread Andreas Metzler

Uwe Kerstan <[EMAIL PROTECTED]> wrote:
[ /.memdump]
> root@one [5]:~ # cd /
> root@one [5]:/ # ls -l .memdump
> ls: .memdump: Datei oder Verzeichnis nicht gefunden
> root@one [5]:/ # /etc/cron.monthly/scrollkeeper
> ...
> root@one [5]:/ # ls -l .memdump
> -rw-r--r--1 root root   82 21. Apr 10:51 .memdump

> Ich habe den Job jetzt etwas geändert, in /tmp stört mich die Datei nicht:

> root@one [5]:/ # cat /etc/cron.monthly/scrollkeeper
> #! /bin/sh

> cd /tmp

> umask 022
> scrollkeeper-rebuilddb

Hallo!
Danke, ich habe einen Bugreport dazu verfasst.
http://bugs.debian.org/143868
Allerdings solltest "cd /tmp" durch "cd $scrollkeeper_db_dir"
ersetzen, sonst kann $boesartiger_benutzer einen Symlink
/tmp/.memdump --> datei_die_er_ueberschreiben_will
anlegen und damit beliebige Dateien ueberschreiben.
  cu andreas


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: memdump

2002-04-21 Thread Uwe Kerstan

* Andreas Metzler <[EMAIL PROTECTED]> [21-04-02 13:50]:

> Danke, ich habe einen Bugreport dazu verfasst.

Na prima. 

> Allerdings solltest "cd /tmp" durch "cd $scrollkeeper_db_dir"
> ersetzen, sonst kann $boesartiger_benutzer einen Symlink
> /tmp/.memdump --> datei_die_er_ueberschreiben_will
> anlegen und damit beliebige Dateien ueberschreiben.

Hast Recht. Mein nächster cron.monthly ist noch eine Weile hin,
mal schauen wann der Bugfix kommt.

Gruss Uwe


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: memdump

2002-04-21 Thread Andreas Metzler

Uwe Kerstan <[EMAIL PROTECTED]> wrote:
[...]
> mal schauen wann der Bugfix kommt.

schon passiert ;-)

libxslt1 1.0.16 fixt den Bug ordentlich und ist schon in unstable,
man muss nur darauf warten bis es nach testing wandert.
 cu andreas


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)