Re: pkg_delete core dump when removing linux-tiff

2008-06-10 Thread Jona Joachim
On Tue, Jun 10, 2008 at 06:48:40AM -0700, Jeremy Chadwick wrote:
> On Tue, Jun 10, 2008 at 03:26:30PM +0200, Jona Joachim wrote:
> > 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.
> 
> Thanks.  A couple things:
> 
> 1) Can you perform the same pkg_delete but with the -v flag?  This
> should cause quite a bit more output, but will help track this down.
> 
> 2) Output from cat /var/db/pkg/linux-tiff-3.7.1/+CONTENTS
> 
> 3) Can you put the below files up someplace on the web, preferrably in a
> tarball?  I'd ask for them, but the mailing list strips attachments.
> I'm wondering if there's some binary data in one of the files (e.g.
> interested in why +CONTENTS has a newer mtime than +COMMENT and +DESC).

You can find it all in there:
http://www.hcl-club.lu/~jaj/stuff/pkg_delete-segv.tar.gz

> Have you had any filesystem problems as of late?  dmesg -a show any
> filesystem issues or disk issues?

No, I didn't have any disk issues I'm aware of. dmesg -a doesn't show anything 
suspect.

> > 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  wheel229 Mar 17  2007 +DESC
> > drwxr-xr-x2 root  wheel512 Jun  9 11:05 .
> > drwxr-xr-x  700 root  wheel  27648 Jun  9 22:29 ..
> 
> The code in usr.sbin/pkg_install/lib/plist.c which is causing the
> segfault:
> 
> 462 if (p->next && p->next->type == PLIST_COMMENT && 
> !strncmp(p->next->name, "MD5:", 4)) {

The last line of +CONTENTS has an @comment line with no MD5 following.
On Jun 8 (timestamp of +CONTENTS) I was doing a portupgrade -a.

> 4) What date are your system sources (specifically
> src/usr.sbin/pkg_install)?  The reason I ask is that there were some
> recent speed optimisations applied to the pkg_* tools, and I'm curious
> what "version" of the sources you have.

My sources are pretty much up to date. I have the latest changes flz@ checked 
in one week ago into pkg_install.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete core dump when removing linux-tiff

2008-06-10 Thread Jona Joachim
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?

Program received signal SIGSEGV, Segmentation fault.
0x48165a73 in strncmp () from /lib/libc.so.7
(gdb) bt
#0  0x48165a73 in strncmp () from /lib/libc.so.7
#1  0x0804dad4 in delete_package (ign_err=0, nukedirs=0, pkg=0x8053540) at 
plist.c:462
#2  0x0804a91d in pkg_do (pkg=0x810b160 "linux-tiff-3.7.1") at perform.c:319
#3  0x08049f50 in pkg_perform (pkgs=0x8113068) at perform.c:112
#4  0x08049b93 in real_main (argc=1, argv=0xbfbfeb98) at main.c:145
#5  0x0804b0d5 in main (argc=2, argv=0xbfbfeb90) at pkgwrap.c:88
(gdb) 



pgpjVVcPHwRF4.pgp
Description: PGP signature


Re: pkg_delete core dump when removing linux-tiff

2008-06-09 Thread Jona Joachim
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?



Script started on Tue Jun 10 02:18:04 2008

nirvana% sudo gdb pkg_delete
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"...(no debugging symbols 
found)...
(gdb) run linux-tiff-3.7.1
Starting program: /usr/sbin/pkg_delete linux-tiff-3.7.1
(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...pkg_delete: file '/compat/linux/usr/bin/bmp2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/fax2ps' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/fax2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/gif2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/pal2rgb' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/ppm2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/ras2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/raw2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/rgb2ycbcr' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/thumbnail' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiff2bw' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiff2pdf' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiff2ps' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiff2rgba' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffcmp' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffcp' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffdither' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffdump' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffinfo' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffgt' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffmedian' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffset' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffsplit' doesn't exist
pkg_delete: file '/compat/linux/usr/lib/libtiff.so.3' doesn't exist
pkg_delete: file '/compat/linux/usr/lib/libtiff.so.3.7.1' doesn't exist
pkg_delete: file '/compat/linux/usr/share/doc/libtiff-3.7.1/COPYRIGHT' doesn't 
exist
pkg_delete: file '/compat/linux/usr/share/doc/libtiff-3.7.1/README' doesn't 
exist
pkg_delete: file '/compat/linux/usr/share/doc/libtiff-3.7.1/RELEASE-DATE' 
doesn't exist
pkg_delete: file '/compat/linux/usr/share/doc/libtiff-3.7.1/VERSION' doesn't 
exist
pkg_delete: file '/compat/linux/usr/share/man/man1/bmp2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/fax2ps.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/fax2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/gif2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/pal2rgb.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/ppm2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/ras2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/raw2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/rgb2ycbcr.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/sgi2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/thumbnail.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiff2bw.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiff2pdf.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/ma

pkg_delete core dump when removing linux-tiff

2008-06-08 Thread Jona Joachim
Hi!

pkg_delete core dumps on me when it tries to remove linux-tiff.
I can reproduce this reliably.

nirvana# pkg_delete linux-tiff-3.7.1
pkg_delete: file '/compat/linux/usr/bin/bmp2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/fax2ps' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/fax2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/gif2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/pal2rgb' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/ppm2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/ras2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/raw2tiff' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/rgb2ycbcr' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/thumbnail' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiff2bw' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiff2pdf' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiff2ps' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiff2rgba' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffcmp' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffcp' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffdither' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffdump' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffinfo' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffgt' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffmedian' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffset' doesn't exist
pkg_delete: file '/compat/linux/usr/bin/tiffsplit' doesn't exist
pkg_delete: file '/compat/linux/usr/lib/libtiff.so.3' doesn't exist
pkg_delete: file '/compat/linux/usr/lib/libtiff.so.3.7.1' doesn't exist
pkg_delete: file '/compat/linux/usr/share/doc/libtiff-3.7.1/COPYRIGHT' doesn't 
exist
pkg_delete: file '/compat/linux/usr/share/doc/libtiff-3.7.1/README' doesn't 
exist
pkg_delete: file '/compat/linux/usr/share/doc/libtiff-3.7.1/RELEASE-DATE' 
doesn't exist
pkg_delete: file '/compat/linux/usr/share/doc/libtiff-3.7.1/VERSION' doesn't 
exist
pkg_delete: file '/compat/linux/usr/share/man/man1/bmp2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/fax2ps.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/fax2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/gif2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/pal2rgb.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/ppm2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/ras2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/raw2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/rgb2ycbcr.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/sgi2tiff.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/thumbnail.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiff2bw.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiff2pdf.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiff2ps.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiff2rgba.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiffcmp.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiffcp.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiffdither.1.gz' doesn't 
exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiffdump.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiffinfo.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiffgt.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiffmedian.1.gz' doesn't 
exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiffset.1.gz' doesn't exist
pkg_delete: file '/compat/linux/usr/share/man/man1/tiffsplit.1.gz' doesn't exist
Segmentation fault (core dumped)
nirvana# 

I got caught by this when I was removing a large number of packages using
pkg_cutleaves. Not sure why all those files are missing, perhaps pkg_delete
removed them the first time before core dumping. It doesn't actually unregister
the package.

FWIW you can find the core dump here:
http://www.hcl-club.lu/~jaj/stuff/pkg_delete.core

uname -a
FreeBSD nirvana.my.domain 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed May 28 19:35:33 
CEST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/HYPOCENTER  i386

Best regards,
Jona

-- 
Pond-erosa Puff wouldn't take no guff
Water oughta be clean and free
So he fought the fight and he set things right
With his OpenBSD

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: upgrade 6.2 to xorg 7.2

2007-06-09 Thread Jona Joachim
On Fri, 08 Jun 2007 09:22:48 -0400
Stephen Clark <[EMAIL PROTECTED]> wrote:

> Hello List,
> 
> A few weeks ago I installed 6.2. I did a cvsup of the ports and now 
> anytime I try to make
> anything that uses X I get something like the following:
> 
> ===>  Patching for tk-8.5.a.6_1
> ===>  Applying FreeBSD patches for tk-8.5.a.6_1
> ===>   tk-8.5.a.6_1 depends on
> file: /usr/local/libdata/xorg/libraries - not found
> ===>Verifying install for /usr/local/libdata/xorg/libraries in 
> /usr/ports/x11/xorg-libraries
> Read /usr/ports/UPDATING for the procedure to upgrade or install xorg
> 7.2. *** Error code 1

You need to define the XORG_UPGRADE environment variable like
mentioned in UPDATING. I think you have to define the variable even if
you didn't have xorg 6.9 before but I'm not sure.

> I have been following the thread on xorg 7.2.
> 
> The /usr/src/UPDATING says under caveats
> "Make sure you have the x11/xorg meta-port installed"
> 
> When I run make  in the x11/xorg dir I get  the following which
> says use portupgrade if you want to upgrade X.Org.
> 
> 
> /usr/ports/x11/xorg]# make
> This is a meta-port, meaning that it just depends on its subparts of
> the port.
> It won't build and install all the parts until you have typed make
> install This port does not ensure things are upgraded; use
> portupgrade if you want to
> upgrade X.Org.  If you simply type 'make install' it may use over 2GB
> to build
> all of the subports.  You can install the ports singly if you are low
> on space.
> 
> So now which is it?
> 
> Use the meta port or portupgrade?

2 cases:
1. you have xorg 6.9
Install the meta port (cd /usr/ports/x11/xorg && make install
clean) if you don't have it yet, then run portupgrade like indicated in
UPDATING.
2. you don't have X installed yet
Just install the meta port.

> Thanks,
> Steve


Jona

-- 
"I am chaos. I am the substance from which your artists and scientists
build rhythms. I am the spirit with which your children and clowns
laugh in happy anarchy. I am chaos. I am alive, and tell you that you
are free." Eris, Goddess Of Chaos, Discord & Confusion
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Too dumb to mount as non privileged user

2006-09-18 Thread Jona Joachim
[EMAIL PROTECTED] wrote:
> Hello,
> 
> using a 6.2-PRERELEASE I am not able to let a normal user mount a cdrom.
> I have tried the following:
> 
> o vfs.usermount=1 to sysctl.conf
> o added group usermounters
> o added user to usermounters
> o own acd0 root:usermounters to devfs.conf
> o perm acd0 0660 to devfs.conf
> o created directory with ownership of non privileged user
> o reboot
> 
> Trying to mount as user to the users own directory yields 'operation not 
> permitted' error.
> 
> So I changed the ownerships to 0666 but this didn't help either.
> I doublechecked sysctl, groups and ownerships. Can please anybody give me a 
> hint?

Make sure the cd9660 kernel module is loaded before you mount a CD as
user. The first time you mount a CD the module is loaded but a user is
not allowed to load a kernel module. You may want to load the module
during boot time by putting a corresponding entry in /boot/loader.conf

--jona
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't boot up into Setup -- SOLVED!

2006-03-07 Thread Jona Joachim
Benjamin Sher wrote:
> Dear Miguel and friends:
> 
> A million thanks for your suggestion to try another keyboard. You were
> right on the money! I tried a cheap Micro Ergonomic keyboard ($15) and
> instantly my Dell 8200 responded when I hit F2 and opened up the Setup.
> And, imagine, I spent $56 on the Microsoft Ergonomic keyboard at Office
> Depot. Who would have guessed?
> 
> So, that problem has been solved.
> 
> Benjamin

You should have checked out the FAQ:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/funnies.html#LETMEOUTOFHERE

You're pretty lucky that your soul wasn't damned  ;)
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"