pkg_delete core dump when removing linux-tiff

Jona Joachim jaj at hcl-club.lu
Tue Jun 10 13:26:34 UTC 2008


On Tue, Jun 10, 2008 at 05:42:45AM -0700, Jeremy Chadwick wrote:
> On Tue, Jun 10, 2008 at 02:02:40PM +0200, Jona Joachim wrote:
> > On Tue, Jun 10, 2008 at 03:14:13AM +0200, Kris Kennaway wrote:
> > > Jona Joachim wrote:
> > > > On Sun, Jun 08, 2008 at 03:57:55PM +0200, Kris Kennaway wrote:
> > > >> Jona Joachim wrote:
> > > >>> Hi!
> > > >>>
> > > >>> pkg_delete core dumps on me when it tries to remove linux-tiff.
> > > >>> I can reproduce this reliably.
> > > >>> FWIW you can find the core dump here:
> > > >>> http://www.hcl-club.lu/~jaj/stuff/pkg_delete.core
> > > >> You need to obtain the backtrace, see the developers handbook.
> > > > 
> > > > I built pkg_delete with -g but gdb says 'no debugging symbols found'.
> > > > Is the following information sufficient or do I need to rebuild everything with debugging information turned on?
> > > 
> > > It was probably stripped at install, I think you can set STRIP= (i.e. 
> > > empty value) but doesn't it also explain this in the handbook?
> > 
(snip bt)
> 
> How about 'bt full' ?

Here you go.

linux-tiff depends on graphics/linux-jpeg, which isn't installed however.
Something must have gone wrong there, I didn't pkg_delete -f linux-jpeg.


GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) run linux-tiff-3.7.1
Starting program: /usr/sbin/pkg_delete linux-tiff-3.7.1

Program received signal SIGSEGV, Segmentation fault.
0x48165a73 in strncmp () from /lib/libc.so.7
(gdb) bt full
#0  0x48165a73 in strncmp () from /lib/libc.so.7
No symbol table info available.
#1  0x0804dad4 in delete_package (ign_err=0, nukedirs=0, pkg=0x8053540) at plist.c:462
	p = 0x8119420
	Where = 0x8111130 "/compat/linux"
	last_file = 0x8119440 "usr/share/man/man1/tiffsv.1.gz"
	fail = 4294967295
	preserve = 0
	tmp = "/compat/linux/usr/share/man/man1/tiffsv.1.gz\000gz\000\000\000DATE\000+REQUIRED_BY\0005\000\000¿\211\006\025HXØ\027Hüã¿¿\210ä¿¿ùõ\025H", '\0' <repeats 60 times>, "È{\027H\224ã¿¿", '\0' <repeats 32 times>, "\020\000\000\000\000\000\000\000ôã¿¿", '\0' <repeats 28 times>, "¨Â\022\b\000\000\000\000\020\000\000\000\000\000\000\000ÿÿÿÿ\000\000\000\000ÒD\027H", '\0' <repeats 44 times>, "\020\000\000\000\000\000\000\000\002", '\0' <repeats 23 times>, "¬"...
	name = 0x810b200 "linux-tiff-3.7.1"
	prefix = 0x8111130 "/compat/linux"
#2  0x0804a91d in pkg_do (pkg=0x810b160 "linux-tiff-3.7.1") at perform.c:319
	cfile = (FILE *) 0x48190e80
	deporigin = 0x810b360 "graphics/linux-jpeg"
	deporigins = (char **) 0x81111c0
	depnames = (char **) 0x8113070
	depmatches = (char ***) 0x8113078
	home = "/usr/home/jaj\000\022\b\004\000\000\000D\214\rH\000\000\000\000üÿÿÿüÿÿÿüÿÿÿ\v\000\000\000\\:\022\b0\000\000\000\030\000\000\000\024\000\000\000\0249\022\b\0243\022\b$9\022\b\030\000\000\000\000\000\000\000D:\022\b`:\022\b(7\022\b47\022\b\f9\022\b\0249\022\b\0209\022\b\0309\022\bä2\022\bø8\022\bÄ2\022\bH:\022\b(7\022\bü8\022\bL3\022\b43\022\b(9\022\bÎÊ\004\bøP\022\bh\217\022\b\210â¿¿_\214\rH`:\022\bd:\022\b8ã¿¿Þ\027\025H`:\022\bd:\022\b\004\000\000\000D\214\rH"...
	p = 0x0
	i = 2
	len = 16
	isinstalled = 1
	new_m = 0
	dep_count = 2
	pre_script = 0x805005c "+DEINSTALL"
	post_script = 0x0
	pre_arg = 0x0
	post_arg = 0x0
	rb_entry = (struct reqr_by_entry *) 0x8134080
	rb_list = (struct reqr_by_head *) 0x8052240
	__func__ = "pkg_do"
#3  0x08049f50 in pkg_perform (pkgs=0x8113068) at perform.c:112
	matched = (char **) 0x8112080
	rb = (char **) 0x4807e000
	rbtmp = (char **) 0x248
	errcode = 0
	i = 0
	j = 9
	err_cnt = 0
	rb_entry = (struct reqr_by_entry *) 0x246
	rb_list = (struct reqr_by_head *) 0x0
	__func__ = "pkg_perform"
#4  0x08049b93 in real_main (argc=1, argv=0xbfbfeb98) at main.c:145
	ch = -1
	error = 135332000
	pkgs = (char **) 0xbfbfeb94
	start = (char **) 0xbfbfeb90
	pkgs_split = 0x0
	tmp = 0x804fe53 "/var/db/pkg"
	stat_s = {st_dev = 101, st_ino = 16097, st_mode = 16877, st_nlink = 700, st_uid = 0, st_gid = 0, st_rdev = 66136, st_atimespec = {tv_sec = 1213102114, 
    tv_nsec = 0}, st_mtimespec = {tv_sec = 1213043376, tv_nsec = 0}, st_ctimespec = {tv_sec = 1213043376, tv_nsec = 0}, st_size = 27648, st_blocks = 56, 
  st_blksize = 4096, st_flags = 0, st_gen = 4026593762, st_lspare = 0, st_birthtimespec = {tv_sec = 1131005361, tv_nsec = 0}}
#5  0x0804b0d5 in main (argc=2, argv=0xbfbfeb90) at pkgwrap.c:88
	f = (FILE *) 0x0
	buffer = " Ú\aH", '\0' <repeats 64 times>, "kU\005HÄô\nHÄô\nH", '\0' <repeats 32 times>, "ä(\aH\200\235\nH\000\000\000\000\000\000\000\000\002\000\002\000;S\005Hpò\aHxè¿¿\024è¿¿\223W\005H\236ô\nHü\234°\006\000ä\aH `\bH\001\000\000\000\000\000\000\000ä(\aH\234#\005H\000\000\000\000\000\000\000\000\000ä\aH4q\aH\000\000\000\000 þ\tH\224è¿¿×Y\005H\236ô\nHü\234°\006àt\aH `\bH\001\000\000\000\000à\aH\000â\aH\000ä\aH `\bH\000\000\000\000\000\000\000\000ä(\aHG·¡\nÜÜ\nH\000\235\nH"...
	cp = 0xbfbfeb68 "\210ë¿¿\223\230\004\b\002"
	verstr = 0x4814a252 "ÉÃS\213D$\b\212L$\f\220\212\0308Ùt\a@\204Ûuõ1À[Ã\220\220\220U\211åV\211Æ\017¾"
	len = 608
(gdb) The program is running.  Exit anyway? (y or n) 


Oh and here is the content of /var/db/pkg/linux-tiff-3.7.1:

total 40
-rw-r--r--    1 root  wheel     32 Mar 17  2007 +COMMENT
-rw-r--r--    1 root  wheel   4098 Jun  8 14:21 +CONTENTS
-rw-r--r--    1 root  wheel    229 Mar 17  2007 +DESC
drwxr-xr-x    2 root  wheel    512 Jun  9 11:05 .
drwxr-xr-x  700 root  wheel  27648 Jun  9 22:29 ..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20080610/163b9068/attachment.pgp


More information about the freebsd-stable mailing list