Date: Tue, 10 Jun 2008 15:26:30 +0200 From: Jona Joachim <jaj@hcl-club.lu> To: Jeremy Chadwick <koitsu@FreeBSD.org> Cc: freebsd-stable@freebsd.org Subject: Re: pkg_delete core dump when removing linux-tiff Message-ID: <20080610132629.GA15963@nirvana.my.domain> In-Reply-To: <20080610124245.GA42745@eos.sc1.parodius.com> References: <slrng4nn24.han.jaj@nirvana.my.domain> <484BE563.90102@FreeBSD.org> <20080610003222.GA3822@nirvana.my.domain> <484DD565.2010700@FreeBSD.org> <20080610120240.GA2964@nirvana.my.domain> <20080610124245.GA42745@eos.sc1.parodius.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--J/dobhs11T7y2rNN Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > > > >=20 > > > > I built pkg_delete with -g but gdb says 'no debugging symbols found= '. > > > > Is the following information sufficient or do I need to rebuild eve= rything with debugging information turned on? > > >=20 > > > It was probably stripped at install, I think you can set STRIP=3D (i.= e.=20 > > > empty value) but doesn't it also explain this in the handbook? > >=20 (snip bt) >=20 > 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 condition= s. 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=3D0, nukedirs=3D0, pkg=3D0x805354= 0) at plist.c:462 p =3D 0x8119420 Where =3D 0x8111130 "/compat/linux" last_file =3D 0x8119440 "usr/share/man/man1/tiffsv.1.gz" fail =3D 4294967295 preserve =3D 0 tmp =3D "/compat/linux/usr/share/man/man1/tiffsv.1.gz\000gz\000\000\000DAT= E\000+REQUIRED_BY\0005\000\000=BF\211\006\025HX=D8\027H=FC=E3=BF=BF\210=E4= =BF=BF=F9=F5\025H", '\0' <repeats 60 times>, "=C8{\027H\224=E3=BF=BF", '\0'= <repeats 32 times>, "\020\000\000\000\000\000\000\000=F4=E3=BF=BF", '\0' <= repeats 28 times>, "=A8=C2\022\b\000\000\000\000\020\000\000\000\000\000\00= 0\000=FF=FF=FF=FF\000\000\000\000=D2D\027H", '\0' <repeats 44 times>, "\020= \000\000\000\000\000\000\000\002", '\0' <repeats 23 times>, "=AC"... name =3D 0x810b200 "linux-tiff-3.7.1" prefix =3D 0x8111130 "/compat/linux" #2 0x0804a91d in pkg_do (pkg=3D0x810b160 "linux-tiff-3.7.1") at perform.c:= 319 cfile =3D (FILE *) 0x48190e80 deporigin =3D 0x810b360 "graphics/linux-jpeg" deporigins =3D (char **) 0x81111c0 depnames =3D (char **) 0x8113070 depmatches =3D (char ***) 0x8113078 home =3D "/usr/home/jaj\000\022\b\004\000\000\000D\214\rH\000\000\000\000= =FC=FF=FF=FF=FC=FF=FF=FF=FC=FF=FF=FF\v\000\000\000\\:\022\b0\000\000\000\03= 0\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\0= 22\b\0309\022\b=E42\022\b=F88\022\b=C42\022\bH:\022\b(7\022\b=FC8\022\bL3\0= 22\b43\022\b(9\022\b=CE=CA\004\b=F8P\022\bh\217\022\b\210=E2=BF=BF_\214\rH`= :\022\bd:\022\b8=E3=BF=BF=DE\027\025H`:\022\bd:\022\b\004\000\000\000D\214\= rH"... p =3D 0x0 i =3D 2 len =3D 16 isinstalled =3D 1 new_m =3D 0 dep_count =3D 2 pre_script =3D 0x805005c "+DEINSTALL" post_script =3D 0x0 pre_arg =3D 0x0 post_arg =3D 0x0 rb_entry =3D (struct reqr_by_entry *) 0x8134080 rb_list =3D (struct reqr_by_head *) 0x8052240 __func__ =3D "pkg_do" #3 0x08049f50 in pkg_perform (pkgs=3D0x8113068) at perform.c:112 matched =3D (char **) 0x8112080 rb =3D (char **) 0x4807e000 rbtmp =3D (char **) 0x248 errcode =3D 0 i =3D 0 j =3D 9 err_cnt =3D 0 rb_entry =3D (struct reqr_by_entry *) 0x246 rb_list =3D (struct reqr_by_head *) 0x0 __func__ =3D "pkg_perform" #4 0x08049b93 in real_main (argc=3D1, argv=3D0xbfbfeb98) at main.c:145 ch =3D -1 error =3D 135332000 pkgs =3D (char **) 0xbfbfeb94 start =3D (char **) 0xbfbfeb90 pkgs_split =3D 0x0 tmp =3D 0x804fe53 "/var/db/pkg" stat_s =3D {st_dev =3D 101, st_ino =3D 16097, st_mode =3D 16877, st_nlink = =3D 700, st_uid =3D 0, st_gid =3D 0, st_rdev =3D 66136, st_atimespec =3D {t= v_sec =3D 1213102114,=20 tv_nsec =3D 0}, st_mtimespec =3D {tv_sec =3D 1213043376, tv_nsec =3D 0}= , st_ctimespec =3D {tv_sec =3D 1213043376, tv_nsec =3D 0}, st_size =3D 2764= 8, st_blocks =3D 56,=20 st_blksize =3D 4096, st_flags =3D 0, st_gen =3D 4026593762, st_lspare =3D= 0, st_birthtimespec =3D {tv_sec =3D 1131005361, tv_nsec =3D 0}} #5 0x0804b0d5 in main (argc=3D2, argv=3D0xbfbfeb90) at pkgwrap.c:88 f =3D (FILE *) 0x0 buffer =3D " =DA\aH", '\0' <repeats 64 times>, "kU\005H=C4=F4\nH=C4=F4\nH"= , '\0' <repeats 32 times>, "=E4(\aH\200\235\nH\000\000\000\000\000\000\000\= 000\002\000\002\000;S\005Hp=F2\aHx=E8=BF=BF\024=E8=BF=BF\223W\005H\236=F4\n= H=FC\234=B0\006\000=E4\aH `\bH\001\000\000\000\000\000\000\000=E4(\aH\234#\= 005H\000\000\000\000\000\000\000\000\000=E4\aH4q\aH\000\000\000\000 =FE\tH\= 224=E8=BF=BF=D7Y\005H\236=F4\nH=FC\234=B0\006=E0t\aH `\bH\001\000\000\000\0= 00=E0\aH\000=E2\aH\000=E4\aH `\bH\000\000\000\000\000\000\000\000=E4(\aHG= =B7=A1\n=DC=DC\nH\000\235\nH"... cp =3D 0xbfbfeb68 "\210=EB=BF=BF\223\230\004\b\002" verstr =3D 0x4814a252 "=C9=C3S\213D$\b\212L$\f\220\212\0308=D9t\a@\204=DBu= =F51=C0[=C3\220\220\220U\211=E5V\211=C6\017=BE" len =3D 608 (gdb) The program is running. Exit anyway? (y or n)=20 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 .. --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhOgQUACgkQBLVThWGOYx7vbQCgsPkreD+OzwVT5JTT+MkchxI5 sFMAni3WrijWyEPHFCnsLre60idcbKnL =LcIh -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080610132629.GA15963>