Subject: Re: pkg_add Memory Fault
To: Christian Gall <cg@cgall.de>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-pkg
Date: 07/12/2006 14:40:33
On Wed, 12 Jul 2006, Christian Gall wrote:
>  (gdb) frame 0
>  #0  add_plist (p=0xbfbfea2c, type=PLIST_NAME, arg=0xbfbfb44e "cairo-1.0.2nb3")
>      at plist.c:96
>  96      in plist.c
>  (gdb) p *p
>  $1 = {
>    head = 0x806e000,
>    tail = 0x0

I have a strange feeling that this case (head!=NULL but tail==NULL) should 
not happen, by looking at add_plist(), add_plist_top() and delete_plist() 
in src/usr.sbin/pkg_install/lib/plist.c.

Might be interesting to see in what order / with what args the functions 
above are called. I don't have an environment to test this right now, 
though. :(


  - Hubert