Segfault in "profiles" binary

ant at bankaktiengesellschaft.de ant at bankaktiengesellschaft.de
Tue Jun 26 11:38:51 GMT 2007


Dear audience,


during the testing stage of an XP migration with roaming user profiles 
which are currently hosted on an NT4 machine we've experienced a segfault 
in the profiles binary.

The segfault occurres during the rewriting stage of the user profiles to 
achieve the algorithmic RID-UID mapping which samba has and NT not as we 
already have Unix-UIDs for each and every user and to prevent permission 
problems by not abiding to the RID=( (uid * 2) + 1000 ) rule of samba.

Debugger output of the segfault follows:

(gdb) set args -c S-1-5-21-596271630-1476544438-1821 -n 
S-1-5-21-596271630-14765 44438-2175 ntuser.dat 
(gdb) r 
Starting program: /root/profiles -c S-1-5-21-596271630-1476544438-1821 
-n S-1-5- 21-596271630-1476544438-2175 ntuser.dat 
Failed to read a valid object file image from memory. 
read_block: invalid block header! 
hbin_prs_key: Failed to find HBIN block containing offset [0x0] 
read_block: invalid block header! 
hbin_prs_key: Failed to find HBIN block containing offset [0x0] 
Program received signal SIGSEGV, Segmentation fault. 
0x08080f08 in _talloc_free () 
(gdb) bt full 
#0  0x08080f08 in _talloc_free () 
No symbol table info available. 
#1  0x08081775 in talloc_free () 
No symbol table info available. 
#2  0x08060982 in regfio_mem_free () 
No symbol table info available. 
#3  0x08060b74 in regfio_close () 
No symbol table info available. 
#4  0x0805d8ef in main () 
No symbol table info available.

As regfio_close() is quite harmless regarding its reg_fio_mem_free() call 
and reg_fio_mem_free() checks the validity of the mem_ctx struct, there is 
some pointer corruption by the loaded registry to be assumed.

Is anybody able to give some hints to track down this issue?


MfG

Thomas Antepoth

GENO-Rechenzentrum GmbH
BAG Bankaktiengesellschaft
Bereich Datenbanken

Tel:   +49 (02385) 942-168
Fax:  +49 (02385) 942-293
email: ant at bankaktiengesellschaft.de

Diese eMail bedarf zur Erlangung der Rechtsverbindlichkeit
der schriftlichen Bestätigung bzw. der Zusendung der
Originalschreiben bzw. der Originaldokumente.

BAG Bankaktiengesellschaft
Vorstand: Udo Wittler (Vorsitzender), Wolfgang Hoffmann, Monika Lösing
Vorsitzender des Aufsichtsrats: Jochen Lehnhoff
Sitz: Hamm
Amtsgericht: Hamm, HRB 1175
http://www.bankaktiengesellschaft.de



More information about the samba-technical mailing list