Subject: Re: pkg_create dumps core
To: None <>
From: Sylvester F <>
List: tech-pkg
Date: 03/05/2003 20:27:19
> I have never seen this. Are you capable of compiling latest -current pkg_*
> tools with debugging enabled (put CFLAGS+=-g and STRIPFLAG= into
> pkg_install/, check to reproduce the problem and use gdb to
> get a stack traceback?

i modified /usr/pkgsrc/pkgtool/pkg_install/Makefile
and added this to end of the file:

Then I rebuilt the package with make clean & make update.
then moved to /usr/pkgsrc/x11/gnome-libs and there
make clean & make update
it dumped core like it did before.
gdb pkg_create pkg_create.core

it says:

This GDB was configured as "i386--netbsdelf"...Dwarf Error: Cannot handle
DW_FORM_strp in DWARF reader.

Core was generated by `pkg_create'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/lib/ debugging symbols
Loaded symbols for /usr/lib/
#0  0x480e9125 in memmove () from /usr/lib/

i type bt and it prints:

#0  0x480e9125 in memmove () from /usr/lib/
#1  0x8073fc4 in ?? ()
#2  0x480de1ac in __bt_split () from /usr/lib/
#3  0x480dd963 in __bt_split () from /usr/lib/
#4  0x480dc765 in __bt_put () from /usr/lib/
#5  0x804d869 in ?? ()
#6  0x804b39a in ?? ()
#7  0x804af04 in ?? ()
#8  0x8049f32 in ?? ()
#9  0x8049ae0 in ?? ()

i hope this is what you wanted, i've never used gdb before :)

- Sylvester