Send freebsd-current mailing list submissions to
	freebsd-current@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
	freebsd-current-request@freebsd.org

You can reach the person managing the list at
	freebsd-current-owner@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."


Today's Topics:

   1. new gcc 3.4.2 compiler and ports (Sean McNeil)
   2. boot2 -- Round 2 (Jeremy Chadwick)
   3. 5.2.1 not able to boot and panics sometimes with
      rpcbind_flags="-l" (Hilko Meyer)
   4. Re: Funky compile error with new gcc (Michael Nottebrock)
   5. gcc 3.4.2 and squid3 (Franky)
   6. memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY no
      interrupt") (Nate Lawson)
   7. Re: gcc 3.4.2 and squid3 (Pawel Worach)
   8. Synaptics Touchpad sample port adopted for current's psm.c
      (Norikatsu Shigemura)
   9. Re: Floppy disk drive no longer detected (Nate Lawson)
  10. Re: ATA DVD playback hanging in physrd (Nate Lawson)
  11. Re: [FIXED] ATAPI CD boot problems (Nate Lawson)
  12. Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
      no	interrupt") (Matthew Dillon)
  13. Re: new gcc 3.4.2 compiler and ports (Jake Hamby)
  14. Re: boot2 -- Round 2 (Alexander Kabaev)
  15. Re: boot2 -- Round 2 (Matthew Dillon)
  16. [PATCH] ip4/6 jail enhancements (Meno Abels)
  17. Re: RFC: Alternate patch to have true new-style rc.d ports
      scripts(without touching localpkg) (Scot Hetzel)
  18. Re: PPPoE problems with latest -CURRENT (fwd)
      (Alexander Nedotsukov)
  19. Support for CPUTYPE=athlon64? (Conrad Sabatier)
  20. ALTQ driver: an(4), ath(4), hme(4), ndis(4), vr(4) and wi(4)
      (Max Laier)
  21. Re: Floppy disk drive no longer detected (Marcel Moolenaar)
  22. Re: [PATCH] ip4/6 jail enhancements (Max Laier)
  23. Re: Documenting machdep.enable_panic_key? (Scott Long)
  24. Re: PPPoE problems with latest -CURRENT (fwd)
      (Peter Ulrich Kruppa)
  25. Re: PPPoE problems with latest -CURRENT (Peter Ulrich Kruppa)
  26. Re: new gcc 3.4.2 compiler and ports (Christopher M. Giordano)
  27. Re: PPPoE problems with latest -CURRENT (Maxim Maximov)
  28. Re: PPPoE problems with latest -CURRENT (Gleb Smirnoff)
  29. Re: boot2 -- Round 2 (Jeremy Chadwick)


----------------------------------------------------------------------

Message: 1
Date: Fri, 30 Jul 2004 14:22:15 -0700
From: Sean McNeil <sean@mcneil.com>
Subject: new gcc 3.4.2 compiler and ports
To: freebsd-current@freebsd.org
Message-ID: <1091222534.28771.3.camel@server.mcneil.com>
Content-Type: text/plain

I don't know if anyone is interested in this information, but I thought
I'd give a list of ports that I use which will not compile under the new
gcc 3.4.2:

databases/libgda2
devel/ddd
devel/libglademm
devel/regexxer
dns/adns
emulators/mips64emul
graphics/libgnomecanvasmm
palm/gnomepilot2
print/gnome-cups-manager
sysutils/pkg_install-devel
sysutils/xmbmon
textproc/xerces-c2
x11/gnometerminal

Cheers,
Sean



------------------------------

Message: 2
Date: Fri, 30 Jul 2004 14:28:43 -0700
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject: boot2 -- Round 2
To: freebsd-current@freebsd.org
Message-ID: <20040730212843.GA33955@parodius.com>
Content-Type: text/plain; charset=us-ascii

So, in regards to the commited fix:

This seemed to fix the issue on one of my boxes (the one which was
flat-out panic'ing, not the one which was reporting 0:ad(0,`) as the
default slice to load /boot/loader from).  I'll refer to the one which
panic'd as "Box A" while the one which is doing the backtick as "Box B".

After pulling cvs down last night and rebuilding world+kernel+boot
blocks, running disklabel -B ad0s1, all on Box B, I found the machine
once again spitting out "Invalid partition", trying to load loader(8)
off of 0:ad(0,`) instead of 0:ad(0,a).  I double-checked boot2/Makefile
to see if -fno-unit-at-a-time was in place -- and it was.

I've tried using /boot/boot off of Box A and applying it to Box B using
disklabel -B -b /boot/box_b/boot ad0s1 to no avail.

It seems almost as if the boot2 code is broken in such a way that it
resembles an "off-by-one" error (ASCII 0x60 == `, ASCII 0x61 == a).
Why it's picking ` is beyond me...

Can someone shed some light as to how I can go about debugging this,
as well as mention how I can temporarily work around this?  Box B
happens to run mysqld, and is suffering from some issues mentioned on
freebsd-threads (re: machine randomly hard-locking), so it definitely
needs to be able to boot back up on it's own without my intervention.

Thanks!

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.                             |


------------------------------

Message: 3
Date: Fri, 30 Jul 2004 23:44:21 +0200
From: Hilko Meyer <Hilko.Meyer@gmx.de>
Subject: 5.2.1 not able to boot and panics sometimes with
	rpcbind_flags="-l"
To: current@freebsd.org
Message-ID: <9aelg0hcun921p4nodocaik1mco22idnnu@smtp.compuserve.de>
Content-Type: text/plain; charset=us-ascii

Hi,

if I set rpcbind_flags="-l" in my rc.conf the machine boots only until
the start of mountd. Then there is a massive worload off the HDD and
after a lite time the console ist spammed with the following message:
"kirk kernel: kern.maxfiles limit exceeded by uid 0, please see
tuning(7)."

I tried to raise kern.maxfiles in single user mode without success. At
19920 mountd and nfsd were able to start, but then i got a panic. See
below for the backtrace.
With kern.maxfiles=10000 I reached another limit. It was something like 
"maxprocs exceeded, please see tuning(7)."

I got another panic as I booted in safe mode. The backtrace is nearly
identical to the form the other panic.

The System is 5.2.1-RELEASE-p9.

Excerpt from my rc.conf:
nfs_server_enable="YES"
nis_server_enable="YES"
rpcbind_enable="YES"
#rpcbind_flags="-l"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
nisdomainname="hochpass"
nfs_reserved_port_only="NO"
portmap_enable="YES"

And finally the backtrace:
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-unknown-freebsd"...
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x40
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc04bc108
stack pointer	        = 0x10:0xce32dbb8
frame pointer	        = 0x10:0xce32dbc0
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 965 (rpcbind)
trap number		= 12
panic: page fault

syncing disks, buffers remaining... 562 562 562 562 562 562 562 562 562
562 562 562 562 562 562 ad0: WARNING - WRITE_MUL interrupt was seen but
timeout fired LBA=559359
562 562 562 562 562 
giving up on 540 buffers
Uptime: 1m18s
ad0: WARNING - WRITE_MUL interrupt was seen but timeout fired LBA=559359
Dumping 128 MB
 16 32 48 64 80 96 112
---
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240		dumping++;
(kgdb) list *0xc04bc108
0xc04bc108 is in devtoname (/usr/src/sys/kern/kern_conf.c:486).
481	devtoname(dev_t dev)
482	{
483		char *p;
484		int mynor;
485	
486		if (dev->si_name[0] == '#' || dev->si_name[0] == '\0') {
487			p = dev->si_name;
488			if (devsw(dev))
489				sprintf(p, "#%s/", devsw(dev)->d_name);
490			else
(kgdb) backtrace 
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc04db510 in boot (howto=256) at
/usr/src/sys/kern/kern_shutdown.c:372
#2  0xc04db845 in panic () at /usr/src/sys/kern/kern_shutdown.c:550
#3  0xc061c431 in trap_fatal (frame=0xce32db78, eva=64) at
/usr/src/sys/i386/i386/trap.c:821
#4  0xc061c18b in trap_pfault (frame=0xce32db78, usermode=0, eva=64) at
/usr/src/sys/i386/i386/trap.c:735
#5  0xc061bdc4 in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 0, tf_esi = 0,
tf_ebp = -835527744, tf_isp = -835527772, tf_ebx = 2, tf_edx =
-1035988032, tf_ecx = -1002449072, tf_eax = 35, tf_trapno = 12, tf_err =
0, tf_eip = -1068777208, tf_cs = 8, tf_eflags = 66050, tf_esp = 2, tf_ss
= -1059906520}) at /usr/src/sys/i386/i386/trap.c:420
#6  0xc060c9d8 in calltrap () at {standard input}:94
#7  0xc05d3fea in swap_pager_getpages (object=0xc1d48ef4, m=0xce32dc94,
count=2, reqpage=0) at /usr/src/sys/vm/swap_pager.c:1144
#8  0xc05d7035 in vm_fault (map=0xc2410938, vaddr=134619136,
fault_type=2 '\002', fault_flags=8)
    at /usr/src/sys/vm/vm_pager.h:129
#9  0xc061c0b7 in trap_pfault (frame=0xce32dd48, usermode=1,
eva=134619136) at /usr/src/sys/i386/i386/trap.c:711
#10 0xc061bcd7 in trap (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134619136, tf_esi =
1200, tf_ebp = -1077952776, tf_isp = -835527308, tf_ebx = 1200, tf_edx =
0, tf_ecx = 300, tf_eax = 0, tf_trapno = 12, tf_err = 6, tf_eip =
672387291, tf_cs = 31, tf_eflags = 66066, tf_esp = -1077952832, tf_ss =
47}) at /usr/src/sys/i386/i386/trap.c:319
#11 0xc060c9d8 in calltrap () at {standard input}:94
---Can't read userspace from dump, or kernel process---

(kgdb) quit


tschau,
Hilko

------------------------------

Message: 4
Date: Sat, 31 Jul 2004 00:05:19 +0200
From: Michael Nottebrock <michaelnottebrock@gmx.net>
Subject: Re: Funky compile error with new gcc
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: asa@gascom.ru
Message-ID: <200407310005.22994.michaelnottebrock@gmx.net>
Content-Type: text/plain; charset="iso-8859-1"

On Friday 30 July 2004 22:22, Marcel Moolenaar wrote:

> You probably want to use the C++ driver for the link

Aah, of course! Already committed, thanks for the hint!

-- 
   ,_,   | Michael Nottebrock               | lofi@freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040731/
1489edcc/attachment-0001.bin

------------------------------

Message: 5
Date: Sat, 31 Jul 2004 0:21:24 -0000
From: "Franky" <franky@jasna.tarnow.pl>
Subject: gcc 3.4.2 and squid3
To: freebsd-current@freebsd.org
Message-ID: <20040730222124.E8B085C40@matrix.jasna.tarnow.pl>
Content-Type: text/plain; charset="iso-8859-2";

Hello.
After last upgrade I have this:
Splay.Po";  else rm -f ".deps/Splay.Tpo"; exit 1;  fi
In file included from ../include/Stack.h:37,
from ../include/splay.h:34,
from Splay.cc:20:
./include/Array.h: In static member function `static void*
Vector<E>::operator
new(size_t)':
./include/Array.h:112: error: there are no arguments to `xmalloc' that
depend
on a template par
ameter, so a declaration of `xmalloc' must be available
./include/Array.h:112: error: (if you use `-fpermissive', G++ will accept
your
code, but allowi
ng the use of an undeclared name is deprecated)
./include/Array.h: In static member function `static void
Vector<E>::operator
delete(void*)':
./include/Array.h:119: error: there are no arguments to `xfree' that depend
on
a template param
eter, so a declaration of `xfree' must be available
./include/Array.h: At global scope:
./include/Array.h:216: error: expected `)' before "const"
./include/Array.h:216: error: expected `;' before "const"
./include/Array.h: In member function `VectorIteratorBase<C>&
VectorIteratorBase<C>::operator++
()':
./include/Array.h:322: error: there are no arguments to `fatal' that depend
on
a template param
eter, so a declaration of `fatal' must be available
In file included from ../include/splay.h:34,
from Splay.cc:20:
./include/Stack.h: In member function `typename Vector<E>::value_type
Stack<S>::pop()':
./include/Stack.h:53: error: `count' undeclared (first use this function)
./include/Stack.h:53: error: (Each undeclared identifier is reported only
once
for each functio
n it appears in.)
./include/Stack.h:56: error: `items' undeclared (first use this function)
./include/Stack.h: In member function `typename Vector<E>::value_type
Stack<S>::top() const':
./include/Stack.h:66: error: `count' undeclared (first use this function)
./include/Stack.h:66: error: `items' undeclared (first use this function)
In file included from Splay.cc:20:
./include/splay.h: In member function `const V&
SplayConstIterator<V>::operator*() const':
./include/splay.h:501: error: there are no arguments to `fatal' that depend
on
a template param
eter, so a declaration of `fatal' must be available
*** Error code 1

Stop in /root/squid3/lib.
*** Error code 1

Stop in /root/squid3/lib.
*** Error code 1

Stop in /root/squid3.

Before upgrade squid3 can be compiled.

best regards
Franek



________________________________________________
http://www.is.net.pl


------------------------------

Message: 6
Date: Fri, 30 Jul 2004 15:48:52 -0700
From: Nate Lawson <nate@root.org>
Subject: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY no
	interrupt")
To: sos@deepcore.dk
Cc: current@freebsd.org
Message-ID: <410AD054.8070202@root.org>
Content-Type: text/plain; charset="us-ascii"

I've tracked down the source of the memory corruption in -current that
results when booting with various CD and DVD drives (especially the ones
that come with Thinkpads including T23, R32, T41, etc.)  The panic is
obvious when running with INVARIANTS ("memory modified after free") but
not so obvious in other configurations.  For instance, without
INVARIANTS, part of the rt_info structure is corrupted on my wireless
card, resulting in a panic during ifconfig on boot.  This is likely the
source of other problems, including phk's ACPI panic (again, only
triggered when booting with the CD drive in the bay.)

The root problem is that ata_timeout() fires and calls ata_pio_read()
which overwrites 512 bytes random memory.  There are actually two bugs 
here that overwrite memory.  The code path is as follows:

1. ata runs an IDENTIFY command on each drive.  It reaches this stack:

ata_getparam()
ata_identify_devices()
ata_boot_attach()

2. ata_getparam() allocates a request and runs it:
ata_alloc_request()
loop on retries (2 max)
fill out an immediate read request for 512 bytes (DEV_BSIZE)
*** Bug 1: transfersize is 512 bytes but sizeof(struct ata_request) is 
much less (~80 bytes).
ata_queue_request() starts the request and arms a timeout

3. Completion for first request results in FAILURE - no interrupt. 
ata_completed() calls ata_generic_interrupt() which calls ata_pio_read()
*** Bug 1: here's where the 512 - sizeof(struct ata_request) bytes 
following "request" are overwritten.

. The completion code also updates request->donecount (an 
upward-counting residual) from 0 to 512 after the request has been 
completed.

4. ata_getparam runs through the loop again and starts another identify
*** Bug 2: donecount is now 512 so ata_pio_read() will write on 
request->data + 512 with 512 bytes.  Whatever follows request->data + 
512 is overwritten.

I've tested the attached patch and it fixes the memory overwrite (tested 
with hardware watchpoints) and obviously, the panics.  It resets 
request->donecount in each loop iteration (bug 2).  It also mallocs 
DEV_BSIZE bytes for the transfer (bug 1).  An alternate fix for bug 1 is 
to lower the transfer size to sizeof(struct ata_request) but there may 
be some minimum transfer length requirements that force you to use 
DEV_BSIZE.

Commit approval requested.

-Nate


-------------- next part --------------
Index: ata-all.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-all.c,v
retrieving revision 1.215
diff -u -r1.215 ata-all.c
--- src/sys/dev/ata/ata-all.c	12 Jul 2004 10:50:49 -0000	1.215
+++ src/sys/dev/ata/ata-all.c	30 Jul 2004 22:30:55 -0000
@@ -549,7 +549,7 @@
     if (!atadev->param)
 	atadev->param = malloc(sizeof(struct ata_params), M_ATA, M_NOWAIT);
     if (atadev->param) {
-	request = ata_alloc_request();
+	request = malloc(DEV_BSIZE, M_ATA, M_NOWAIT | M_ZERO);
 	if (request) {
 	    int retries = 2;
 	    while (retries-- > 0) {
@@ -561,11 +561,12 @@
 		request->data = (caddr_t)atadev->param;
 		request->bytecount = sizeof(struct ata_params);
 		request->transfersize = DEV_BSIZE;
+		request->donecount = 0;
 		ata_queue_request(request);
 		if (!(error = request->result))
 		    break;
 	    }
-	    ata_free_request(request);
+	    free(request, M_ATA);
 	}
 	if (!error && (isprint(atadev->param->model[0]) ||
 		       isprint(atadev->param->model[1]))) {

------------------------------

Message: 7
Date: Sat, 31 Jul 2004 01:07:34 +0200
From: Pawel Worach <pawel.worach@telia.com>
Subject: Re: gcc 3.4.2 and squid3
To: Franky <franky@jasna.tarnow.pl>
Cc: current@freebsd.org
Message-ID: <410AD4B6.30906@telia.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Franky wrote:
> Before upgrade squid3 can be compiled.
> 
There is a patch for gcc 3.4 in the squid bugzilla,
see http://www.squid-cache.org/bugs/show_bug.cgi?id=1024

  - Pawel

------------------------------

Message: 8
Date: Sat, 31 Jul 2004 08:51:07 +0900
From: Norikatsu Shigemura <nork@FreeBSD.org>
Subject: Synaptics Touchpad sample port adopted for current's psm.c
To: freebsd-current@FreeBSD.org
Message-ID: <20040731085107.714b8779.nork@FreeBSD.org>
Content-Type: text/plain; charset="us-ascii"

Hi Synaptics Touchpad user.

	I fixed my sample port for support current mouse driver.

	TODO:
	  update to 1.13.4.
	  merge to xorg-server.
	  MFC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: synaptics.shar
Type: application/octet-stream
Size: 4606 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040731/
6f5c5215/synaptics-0001.obj

------------------------------

Message: 9
Date: Fri, 30 Jul 2004 16:59:17 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: Floppy disk drive no longer detected
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: current@freebsd.org
Message-ID: <410AE0D5.7040009@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Marcel Moolenaar wrote:
> On Mon, Jul 26, 2004 at 05:12:33PM -0700, Nate Lawson wrote:
>>Marcel Moolenaar wrote:
>>>Yup. That seems to be resolved:
>>>
>>>fdc0: <floppy drive controller (FDE)> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 
>>>on acpi0
>>>
>>>However, no fd0. Hence no /dev/fd0. With FDC_DEBUG I get:
>>>	:
>>>[0x3->FDDATA][0xdf->FDDATA][0x2->FDDATA][0x10->FDDATA][FDDATA->0x90]
>>>	:
>>>[fdc0 IDLE]
>>>	:
>>>
>>>And that's it...
>>
>>That's weird.  Is your floppy drive plugged in?  But you're saying that 
>>the fd0 enumeration is fixed (i.e. devinfo shows fd0 present)?
>>
>>Perhaps the drive type is not being probed correctly?
> 
> Drive is plugged in. fd0 enumeration is not fixed. From devinfo:
> 
>     fdc0 pnpinfo _HID=PNP0700 _UID=0 at handle=\_SB_.PCI0.LPC0.FDC_
>         Interrupt request lines:
>             0x6
>         DMA request lines:
>             2
>         I/O ports:
>             0x3f0-0x3f5
>             0x3f7
>       fd4
>     unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.LPC0.FDC_.FDD_
> 
>>From acpidump:
> 
> 		  :
>                 Device (FDC)
>                 {
>                     Name (_HID, EisaId ("PNP0700"))
>                     Name (MCD, 0x11)
> 		      :
>                     Device (FDD)
>                     {
>                         Name (_ADR, 0x00)
>                         Name (_EJD, "_SB.DOCK")
> 			  :
> 		    }
> 		}

With the patch I committed, the spurious fd4 device should not be 
showing up (see your devinfo above).  I looked more closely at your ASL 
and it indicates that the floppy drive device depends on the dock.  It 
appears if the dock is not present at boot, the _STA method of DOCK 
disables the floppy drive (DKFS -> 0).  Can you tell me more about the 
status of your docking station?

-Nate


------------------------------

Message: 10
Date: Fri, 30 Jul 2004 17:06:01 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: ATA DVD playback hanging in physrd
To: Kevin Oberman <oberman@es.net>
Cc: current@freebsd.org
Message-ID: <410AE269.4040404@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Kevin Oberman wrote:
>>From: Nate Lawson <nate@root.org>
>>While playing back a DVD on my Thinkpad, it hangs at some point (2-5
>>minutes after beginning playback).  The player is hung in "physrd" and
>>the drive stops spinning.  This hang happens when the drive is in PIO4
>>or DMA mode.
>>
>>However, starting another process (i.e. cat /dev/acd0) spins up the
>>drive and it works (and the other process begins running again).
>>What's interesting is that I can quickly trigger this hang by starting
>>IO on a completely different channel (i.e. dd if=/dev/ad0 of=/dev/null
>>bs=1m).  This indicates that it may be a driver issue since the DVD
>>drive that hangs is on a different channel and irq than the hard
>>drive.
>>
>>Devices:
>>atapci0: <Intel ICH3 UDMA100 controller> port
>>0x1860-0x186f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
>>ata0: at 0x1f0 irq 14 on atapci0
>>ata1: at 0x170 irq 15 on atapci0
>>[...]
>>ad0: 19077MB <IC25N020ATMR04-0> [41344/15/63] at ata0-master UDMA100
>>ata1-master: FAILURE - ATAPI_RESET no interrupt
>>acd0: DVDROM <MATSHITADVD-ROM SR-8175> at ata1-master PIO4
>>
>>The same behavior also happens on my DVD/CDRW drive.
>>ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt
>>ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt
>>ata1-master: FAILURE - ATAPI_RESET no interrupt
>>acd0: CDRW <UJDA720 DVD/CDRW> at ata1-master PIO4
> 
> I have been seeing the same thing on my ThinkPad for a couple of
> weeks. It may have been there for longer as I had not heavily used the
> DVD for a while. There have been similar reports from others, but this
> is the most exact match to what I have been seeing. Mine is a Toshiba
> DVD/CDRW (DW-28E) at ata1-master UDMA33.

I just tested and this behavior is the same with today's -current.

-Nate

------------------------------

Message: 11
Date: Fri, 30 Jul 2004 17:08:12 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: [FIXED] ATAPI CD boot problems
To: S?ren Schmidt<sos@DeepCore.dk>
Cc: Tai-hwa Liang <avatar@mmlab.cse.yzu.edu.tw>
Message-ID: <410AE2EC.50607@root.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

S�ren Schmidt wrote:
>> On Fri, Jul 02, 2004 at 10:58:59AM -0700, Nate Lawson wrote:
>>> That's because the bug is still there.  Stick a call to "if (addr ==
>>> 0xc1740a00) backtrace();" in kern_malloc and you'll see the original
>>> allocator was ATA.  The problem is with ATA's handling of drives 
>>> where you
>>> get the message "identify timed out".  To work around, boot without your
>>> cdrom drive in the drive bay.  This bug is extremely annoying and has
>>> forced me to install via floppy in the past.
>>>
>>> The reason you don't see this in a custom kernel is the check for memory
>>> use after free happens only with options INVARIANTS.  The bug is still
>>> there, just ignored.
>>>
>>> I may get around to tracking this down sometime in the future but don't
>>> count on it.
>
> Yeps, some good precise debugging of this problem would be appreciated, 
> I can't seem to reproduce it here no matter what I try :(

Just to close off this thread, I found the problems and posted a patch 
including debugging info to -current.

-Nate

------------------------------

Message: 12
Date: Fri, 30 Jul 2004 17:13:18 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
	no	interrupt")
To: Nate Lawson <nate@root.org>
Cc: current@freebsd.org
Message-ID: <200407310013.i6V0DI9D085697@apollo.backplane.com>

:I've tracked down the source of the memory corruption in -current that
:results when booting with various CD and DVD drives (especially the ones
:that come with Thinkpads including T23, R32, T41, etc.)  The panic is
:..

    Nick, what about the retry code in ata_completed()? (ata-queue.c 229).
    Does it need to reset donecount as well?  Both the code in 5.x and 
    the code in 4.x looks 'dangerous' with regards to general retries.

    The 5.x code seems to handle retries generically via 
    ata_finish()->ata_completed()->(retry handling), and this seems to
    include IMMEDIATE requests, and it does not appear to reset the 
    donecount when it requeues.

    The 4.x code seems to handle retries in ad_timeout() and ad_interrupt()
    (and doesn't reset donecount in either case as far as I can tell),
    and the 4.x code's addump() seems to rely on donecount in its transfer
    loop (but I do not see any similar reliance in the 5.x code).

						-Matt

------------------------------

Message: 13
Date: Fri, 30 Jul 2004 17:19:24 -0700
From: Jake Hamby <jhamby@anobject.com>
Subject: Re: new gcc 3.4.2 compiler and ports
To: Sean McNeil <sean@mcneil.com>
Cc: freebsd-current@freebsd.org
Message-ID: <410AE58C.6010703@anobject.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Sean McNeil wrote:
> I don't know if anyone is interested in this information, but I thought
> I'd give a list of ports that I use which will not compile under the new
> gcc 3.4.2:
> 
> databases/libgda2
> devel/ddd
> devel/libglademm
> devel/regexxer
> dns/adns
> emulators/mips64emul
> graphics/libgnomecanvasmm
> palm/gnomepilot2
> print/gnome-cups-manager
> sysutils/pkg_install-devel
> sysutils/xmbmon
> textproc/xerces-c2
> x11/gnometerminal

I just submitted patches for x11/gnometerminal and mail/thunderbird:

http://www.freebsd.org/cgi/query-pr.cgi?pr=69834
http://www.freebsd.org/cgi/query-pr.cgi?pr=69833

-Jake

------------------------------

Message: 14
Date: Sat, 31 Jul 2004 00:27:13 +0000
From: Alexander Kabaev <kan@freebsd.org>
Subject: Re: boot2 -- Round 2
To: freebsd-current@freebsd.org
Message-ID: <20040731002713.GA6709@freefall.freebsd.org>
Content-Type: text/plain; charset=us-ascii

On Fri, Jul 30, 2004 at 02:28:43PM -0700, Jeremy Chadwick wrote:
> So, in regards to the commited fix:
> 
> This seemed to fix the issue on one of my boxes (the one which was
> flat-out panic'ing, not the one which was reporting 0:ad(0,`) as the
> default slice to load /boot/loader from).  I'll refer to the one which
> panic'd as "Box A" while the one which is doing the backtick as "Box B".
> 
> After pulling cvs down last night and rebuilding world+kernel+boot
> blocks, running disklabel -B ad0s1, all on Box B, I found the machine
> once again spitting out "Invalid partition", trying to load loader(8)
> off of 0:ad(0,`) instead of 0:ad(0,a).  I double-checked boot2/Makefile
> to see if -fno-unit-at-a-time was in place -- and it was.
> 
> I've tried using /boot/boot off of Box A and applying it to Box B using
> disklabel -B -b /boot/box_b/boot ad0s1 to no avail.
> 
> It seems almost as if the boot2 code is broken in such a way that it
> resembles an "off-by-one" error (ASCII 0x60 == `, ASCII 0x61 == a).
> Why it's picking ` is beyond me...
> 
> Can someone shed some light as to how I can go about debugging this,
> as well as mention how I can temporarily work around this?  Box B
> happens to run mysqld, and is suffering from some issues mentioned on
> freebsd-threads (re: machine randomly hard-locking), so it definitely
> needs to be able to boot back up on it's own without my intervention.
> 
> Thanks!
Hi,

I guess I would like to get your /boot/boot. The one I got simply works
on all boxes in my home :(.

As another option, you can try an alternative patch which was proposed
by Tim Robbins. Since the problem was apparently caused by me going back to
static memcpy implementation, I am currenly working on using builtin
memcpy as it was used before. I will post it later after I've done some
more testing and if things will look good.

--
Alexander Kabaev

======== Begin quote ==============

After a few hours of head-scratching, I've tracked down the problem with
boot2 and -funit-at-a-time, and come up with a patch that makes it work:

==== //depot/user/tjr/freebsd-tjr/src/sys/boot/i386/boot2/boot2.c#7 - /home/ti
m/p4/src/sys/boot/i386/boot2/boot2.c ====
@@ -139,7 +139,16 @@
 static int xgetc(int);
 static int getc(int);
 
-static void memcpy(void *, const void *, int);
+/*
+ * GCC 3.4 with -funit-at-a-time (implied by -Os) may use a non-standard
+ * calling convention for static functions, using registers to pass arguments

+ * instead of the stack. However, GCC may emit calls to memcpy() when a
+ * program copies a struct with the assignment operator, and the code it
+ * emits to call memcpy() uses the standard convention, not the register
+ * convention. This means we must declare our memcpy() implementation "__used
"
+ * to disable the register calling convention.
+ */
+static void memcpy(void *, const void *, int) __used;
 static void
 memcpy(void *dst, const void *src, int len)
 {


I think this is a bug in GCC; it should emit a warning if it's about to emit
code to call memcpy(), but finds that memcpy() has a prototype that conflicts

with the assumptions it makes.


Tim


------------------------------

Message: 15
Date: Fri, 30 Jul 2004 18:23:20 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: Re: boot2 -- Round 2
To: Alexander Kabaev <kan@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <200407310123.i6V1NKHf085934@apollo.backplane.com>

    I had a similar problem with boot2 displaying 0:ad(0,<garbage>) [garbage].


    The problem turned out to be boot1's fault.  Boot1 is apparently 
    responsible for clearing boot2's BSS.  The problem is that boot1 does
    not really have all that clear an idea about where boot2's BSS is or,
    especially, how large it is.  boot1 only clears to the end of the segment

    but I'm not even sure that it is calculating the *start* address properly.


    Now this might not be the same problem.  I've completely reorganized most

    of the boot code in DragonFly and the cause of the mismatched BSS in our
    boot1/boot2 might have been due to something I did.  But the error was
    that boot1 was not clearing enough of the BSS which caused a number of
    boot2's globals to be garbage on startup, which in turn caused boot2
    to believe that the partition and load path had already been
    set (to garbage).  Hence the displayed garbage.

    The fix I made in DragonFly was to move the BSS clearing out of boot1
    and into i386/btx/lib/btxcsu.s where the size of the BSS is known.
    This required some surgery, however, because it bloated boot2 past
    its size limit (but also made boot1 smaller).

    Actually if someone over in FreeBSD land is interested in cleaning up
    your boot code, I would recommend starting with DragonFly's and then
    making it work with FreeBSD again (which shouldn't be too difficult).
    Amoung other things I reorganized *ALL* the hardwired origins into a
    single header file and it is now possible to change most of them
    at will and still get something that works out of it.  The FreeBSD
    boot code has some historical issues which could cause interference
    with certain BIOSes, such as using 0x1000 as the top of the transfer
    stack and using other similarly nasty addresses that it probably shouldn't

    be.  (But, that said, I still can't get either the FreeBSD or the DFly
    boot code to boot my Shuttle AMD64 boxes if the mouse is not plugged in.
    The BIOS gets ultra confused over the amount of BIOS memory available and

    trashes the memory table... but boots linux just fine).

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>


:On Fri, Jul 30, 2004 at 02:28:43PM -0700, Jeremy Chadwick wrote:
:> So, in regards to the commited fix:
:> 
:> This seemed to fix the issue on one of my boxes (the one which was
:> flat-out panic'ing, not the one which was reporting 0:ad(0,`) as the
:> default slice to load /boot/loader from).  I'll refer to the one which
:> panic'd as "Box A" while the one which is doing the backtick as "Box B".
:> 
:> After pulling cvs down last night and rebuilding world+kernel+boot
:> blocks, running disklabel -B ad0s1, all on Box B, I found the machine
:> once again spitting out "Invalid partition", trying to load loader(8)
:> off of 0:ad(0,`) instead of 0:ad(0,a).  I double-checked boot2/Makefile
:> to see if -fno-unit-at-a-time was in place -- and it was.
:> 
:> I've tried using /boot/boot off of Box A and applying it to Box B using
:> disklabel -B -b /boot/box_b/boot ad0s1 to no avail.
:> 
:> It seems almost as if the boot2 code is broken in such a way that it
:> resembles an "off-by-one" error (ASCII 0x60 == `, ASCII 0x61 == a).
:> Why it's picking ` is beyond me...
:> 
:> Can someone shed some light as to how I can go about debugging this,
:> as well as mention how I can temporarily work around this?  Box B
:> happens to run mysqld, and is suffering from some issues mentioned on
:> freebsd-threads (re: machine randomly hard-locking), so it definitely
:> needs to be able to boot back up on it's own without my intervention.
:> 
:> Thanks!
:Hi,
:
:I guess I would like to get your /boot/boot. The one I got simply works
:on all boxes in my home :(.
:
:As another option, you can try an alternative patch which was proposed
:by Tim Robbins. Since the problem was apparently caused by me going back to
:static memcpy implementation, I am currenly working on using builtin
:memcpy as it was used before. I will post it later after I've done some
:more testing and if things will look good.
:
:--
:Alexander Kabaev
:
:======== Begin quote ==============
:
:After a few hours of head-scratching, I've tracked down the problem with
:boot2 and -funit-at-a-time, and come up with a patch that makes it work:
:
:==== //depot/user/tjr/freebsd-tjr/src/sys/boot/i386/boot2/boot2.c#7 - /home/t
im/p4/src/sys/boot/i386/boot2/boot2.c ====
:@@ -139,7 +139,16 @@
: static int xgetc(int);
: static int getc(int);
: 
:-static void memcpy(void *, const void *, int);
:+/*
:+ * GCC 3.4 with -funit-at-a-time (implied by -Os) may use a non-standard
:+ * calling convention for static functions, using registers to pass argument
s
:+ * instead of the stack. However, GCC may emit calls to memcpy() when a
:+ * program copies a struct with the assignment operator, and the code it
:+ * emits to call memcpy() uses the standard convention, not the register
:+ * convention. This means we must declare our memcpy() implementation "__use
d"
:+ * to disable the register calling convention.
:+ */
:+static void memcpy(void *, const void *, int) __used;
: static void
: memcpy(void *dst, const void *src, int len)
: {
:
:
:I think this is a bug in GCC; it should emit a warning if it's about to emit

:code to call memcpy(), but finds that memcpy() has a prototype that conflicts

:with the assumptions it makes.
:
:
:Tim

------------------------------

Message: 16
Date: Sat, 31 Jul 2004 01:05:22 +0200
From: Meno Abels <meno.abels@gmail.com>
Subject: [PATCH] ip4/6 jail enhancements
To: freebsd-current@freebsd.org
Message-ID: <344de28704073016056284cbd6@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

Hello,

i submit last week a patch to the jail code which enables
the option to have multiple ip numbers (ip4 and ip6) assigned
to a jail. 
Out of my view this patch isn't received any attention until today 
by any freebsd member or mailing list user. 
It could that I chosen the wrong channel to submit it by a 
standard pr. 
I worked in -CURRENT so it could be better to submit the 
work to these mailing list. What I now try.
I'am not really familiar with the processes behind the scenes.
So I try to point to my work, and asks if somebody is willing to
try it. It would be nice to get a feedback-:)
So I give the link to the orignal pr
http://www.freebsd.org/cgi/query-pr.cgi?pr=69064
this includes the patch to -CURRNT. What hopefully works until
one week progress in -CURRENT.

regards

meno

------------------------------

Message: 17
Date: Thu, 29 Jul 2004 09:17:52 -0500
From: Scot Hetzel <swhetzel@gmail.com>
Subject: Re: RFC: Alternate patch to have true new-style rc.d ports
	scripts(without touching localpkg)
To: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Cc: current@freebsd.org
Message-ID: <790a9fff040729071745b541d3@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

On Thu, 29 Jul 2004 10:39:33 +0200, Oliver Eikemeier
<eikemeier@fillmore-labs.com> wrote:
> The bsd.port.mk integration might be something like
> 
> RC_SCRIPTS=     apache
> 
> which will install `apache' or `apache.sh' depending on OSVERSION. A
> variable RC_SUFX is set that could be used in pkg-message or other
> places when necessary.
> 
You read my bsd.port.mk :-).

I have already created the above in my bsd.port.mk in the begining of
the year.  Except that I have it setup as:

RC_SCRIPTS= script1 script2:0000 script3:0001

Then depending on OSVERSION the scripts are installed as:

   etc/rc.d/script1.sh
   etc/rc.d/0000.script2.sh
   etc/rc.d/0001.script3.sh

or on FreeBSD 5.x +

  etc/rc.d/script1{.sh,}
  etc/rc.d/script2{.sh,}
  etc/rc.d/script3{.sh,}

Currently, I have the removal of ".sh" set for FreeBSD 6.x in my bsd.port.mk.


Scot

------------------------------

Message: 18
Date: Sat, 31 Jul 2004 11:25:10 +0900
From: Alexander Nedotsukov <bland@FreeBSD.org>
Subject: Re: PPPoE problems with latest -CURRENT (fwd)
To: Gleb Smirnoff <glebius@FreeBSD.org>
Cc: Peter Ulrich Kruppa <root@pukruppa.net>
Message-ID: <410B0306.8030209@FreeBSD.org>
Content-Type: text/plain; charset=KOI8-R; format=flowed

Gleb Smirnoff wrote:

>On Fri, Jul 30, 2004 at 11:30:48AM +0000, Peter Ulrich Kruppa wrote:
>P> > On Fri, Jul 30, 2004 at 10:54:43AM +0000, Peter Ulrich Kruppa wrote:
>P> > P> I use my -CURRENT machine to connect with /usr/sbin/ppp to the
>P> > P> internet via a DSL modem (or bridge as some people say).
>P> > P> Since my cvsup yesterday this doesn't work anymore - and what is
>P> > P> even worse I can't see any errror messages:
>P> > P> neither in my ppp.logs nor when I run ppp manually; it just
>P> > P> doen't connect.
>P> > P> I have got a 4.8 -RELEASE on my machine, too. There everything
>P> > P> works as usual - with the same ppp.conf .
>P> > P> Does anyone have a clue what happened?
>P> >
>P> > What network card do you have?
>P> A realtek .
>
>rl(4) or re(4)?
>
>P> > What is the date of your CURRENT?
>P> Yesterday, and I tried another one this night - just to be sure
>P> everything was downloaded correctly.
>
>Does your provider uses 3Com equipment? Do you have net.graph.nonstandard_ppp
oe
>in your /etc/sysctl.conf?
>
>Assure that you have /usr/sbin/ppp, ng_pppoe.ko, netgraph.ko and kernel rebui
lt
>from new sources, and none of them is stale.
>
>Can you show problematic parts of ppp.log?
>
>  
>
I also can confirm this problem. My latest good kernel from 24 of Jul. 
First time I saw this problem was 29 of Jul. Each time world, kernel and 
mpd (I use it for PPPoE connection) was rebuild and installed. I have 
SiS Fast Ethernet card (sis). As Peter I can't see nothing interesting 
in mpd log.

Jul 30 10:31:13 bbnest ppp: [plala] PPPoE connection timeout after 9 seconds
Jul 30 10:31:13 bbnest ppp: [plala] device: DOWN event in state OPENING
Jul 30 10:31:13 bbnest ppp: [plala] device is now in state DOWN
Jul 30 10:31:13 bbnest ppp: [plala] link: DOWN event
Jul 30 10:31:13 bbnest ppp: [plala] LCP: Down event
Jul 30 10:31:13 bbnest ppp: [plala] device: OPEN event in state DOWN
Jul 30 10:31:13 bbnest ppp: [plala] pausing 4 seconds before open
Jul 30 10:31:13 bbnest ppp: [plala] device is now in state DOWN
Jul 30 10:31:17 bbnest ppp: [plala] device: OPEN event in state DOWN
Jul 30 10:31:17 bbnest ppp: [plala] pausing 2 seconds before open
Jul 30 10:31:17 bbnest ppp: [plala] device is now in state DOWN
Jul 30 10:31:20 bbnest ppp: [plala] device: OPEN event in state DOWN
Jul 30 10:31:20 bbnest ppp: [plala] device is now in state OPENING
..<and so on>...
And if I start mpd manually I can see on the console one extra message like

[plala] IPCP: peer address cannot be zero

All the above obtained with

    log +lcp +bund +chat +phys +iface +ipcp +frame

set in apropriate section of mpd.conf. What else? I didn't touch 
net.graph.nonstandard_pppoe and can not say if my provider make use 3Com 
hardware.

All the best,
Alexander.


------------------------------

Message: 19
Date: Fri, 30 Jul 2004 21:34:01 -0500
From: Conrad Sabatier <conrads@cox.net>
Subject: Support for CPUTYPE=athlon64?
To: freebsd-current@freebsd.org
Message-ID: <20040731023401.GA8720@cox.net>
Content-Type: text/plain; charset=us-ascii

Now that -current has upgraded to gcc 3.4.2, shouldn't we add support in 
bsd.cpu.mk for -march=athlon64 (and aliases)?

Which brings to mind a question: on amd64, does the compiler automatically 
default now to -march=athlon64 and -m64?

-- 
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"

------------------------------

Message: 20
Date: Sat, 31 Jul 2004 04:34:09 +0200
From: Max Laier <max@love2party.net>
Subject: ALTQ driver: an(4), ath(4), hme(4), ndis(4), vr(4) and wi(4)
To: freebsd-current@freebsd.org
Cc: freebsd-net@freebsd.org
Message-ID: <200407310434.17166.max@love2party.net>
Content-Type: text/plain; charset="us-ascii"

Hi,

patch at:
http://people.freebsd.org/~mlaier/altq_driver2.diff

If you are maintaining any of the above, please take a look and tell me if you
 
object. ndis(4) maintains code portability to 5.2.1 as requested.

All drivers were tested as described on:
  http://people.freebsd.org/~mlaier/ALTQ_driver/

After this we have ALTQ support for the following NICs:
  an(4), ath(4), bfe(4), de(4), em(4), fxp(4), hme(4), lnc(4), ndis(4), rl(4),
 
  sis(4), tun(4), vr(4), wi(4) and xl(4).

I'll happily add *your* driver to the list if you can do some basic tests as 

described on above URL. Please let me know if you want to try a driver not 
yet patched on the page (or if you run into problems with any patch from 
there). TIA!

-- 
/"\  Best regards,			| mlaier@freebsd.org
\ /  Max Laier				| ICQ #67774661
 X   http://pf4freebsd.love2party.net/	| mlaier@EFnet
/ \  ASCII Ribbon Campaign		| Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040731/
b1ade60f/attachment-0001.bin

------------------------------

Message: 21
Date: Fri, 30 Jul 2004 19:44:34 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: Floppy disk drive no longer detected
To: Nate Lawson <nate@root.org>
Cc: current@freebsd.org
Message-ID: <20040731024434.GA643@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii

On Fri, Jul 30, 2004 at 04:59:17PM -0700, Nate Lawson wrote:
> 
> With the patch I committed, the spurious fd4 device should not be 
> showing up (see your devinfo above).

Alas, still there:

	:
    fdc0 pnpinfo _HID=PNP0700 _UID=0 at handle=\_SB_.PCI0.LPC0.FDC_
        Interrupt request lines:
            0x6
        DMA request lines:
            2
        I/O ports:
            0x3f0-0x3f5
            0x3f7
      fd4
    unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.LPC0.FDC_.FDD_
	:


> I looked more closely at your ASL 
> and it indicates that the floppy drive device depends on the dock.  It 
> appears if the dock is not present at boot, the _STA method of DOCK 
> disables the floppy drive (DKFS -> 0).  Can you tell me more about the 
> status of your docking station?

Docked and floppy enabled in the BIOS. Normally (that is, previously)
the floppy drive was probed even if not docked. Pretty much like the
parallel and serial ports. It's fine if the floppy drive is not probed
when not docked, but docking should then cause the floppy drive to
be added.

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net

------------------------------

Message: 22
Date: Sat, 31 Jul 2004 04:47:26 +0200
From: Max Laier <max@love2party.net>
Subject: Re: [PATCH] ip4/6 jail enhancements
To: freebsd-current@freebsd.org
Cc: meno.abels@adviser.com
Message-ID: <200407310447.33601.max@love2party.net>
Content-Type: text/plain; charset="iso-8859-1"

On Saturday 31 July 2004 01:05, Meno Abels wrote:
> Hello,
>
> i submit last week a patch to the jail code which enables
> the option to have multiple ip numbers (ip4 and ip6) assigned
> to a jail.
> Out of my view this patch isn't received any attention until today
> by any freebsd member or mailing list user.
> It could that I chosen the wrong channel to submit it by a
> standard pr.
> I worked in -CURRENT so it could be better to submit the
> work to these mailing list. What I now try.
> I'am not really familiar with the processes behind the scenes.
> So I try to point to my work, and asks if somebody is willing to
> try it. It would be nice to get a feedback-:)
> So I give the link to the orignal pr
> http://www.freebsd.org/cgi/query-pr.cgi?pr=69064
> this includes the patch to -CURRNT. What hopefully works until
> one week progress in -CURRENT.

Can you re-produce this an unified diff, please? They are much more noise 
protected than the plain diff format. Submitt it as a followup here or to 
gnats. Just let's make sure that your work isn't lost!

This is certainly something of great interest! Various developers have had 
similar plans, not sure about their status, though.

-- 
/"\  Best regards,			| mlaier@freebsd.org
\ /  Max Laier				| ICQ #67774661
 X   http://pf4freebsd.love2party.net/	| mlaier@EFnet
/ \  ASCII Ribbon Campaign		| Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040731/
25df78f2/attachment-0001.bin

------------------------------

Message: 23
Date: Fri, 30 Jul 2004 21:03:12 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: Documenting machdep.enable_panic_key?
To: Craig Rodrigues <rodrigc@crodrigues.org>
Cc: freebsd-current@freebsd.org
Message-ID: <410B0BF0.6070508@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Craig Rodrigues wrote:
> Hi,
> 
> I was scratching my head about this today.  What do people
> think about the following patch?  I can file a PR for it.
> 
> 
> --- usr.sbin/kbdcontrol/kbdmap.5.orig	Fri Jul 30 00:41:05 2004
> +++ usr.sbin/kbdcontrol/kbdmap.5	Fri Jul 30 00:42:54 2004
> @@ -229,7 +229,11 @@
>  Activate screen saver
>  by toggling between splash/text screen.
>  .It panic
> -Panic the system.
> +Panic the system.  The
> +.Xr sysctl 8
> +variable
> +.Va machdep.enable_panic_key
> +must be set to 1 to enable this feature.
>  .It paste
>  Act as mouse buffer paste.
>  .El
> --- sys/dev/syscons/syscons.c.orig	Fri Jul 30 00:36:41 2004
> +++ sys/dev/syscons/syscons.c	Fri Jul 30 00:48:19 2004
> @@ -135,7 +135,7 @@
>  
>  static	int		enable_panic_key;
>  SYSCTL_INT(_machdep, OID_AUTO, enable_panic_key, CTLFLAG_RW, &enable_panic_
key,
> -	   0, "");
> +	   0, "Enable panic via keypress specified in kbdmap(5)");
>  
>  #define SC_CONSOLECTL	255
>  
> 
> 

This looks reasonable.  I'll commit it tomorrow if someone doesn't beat
me to it.

Scott

------------------------------

Message: 24
Date: Sat, 31 Jul 2004 06:26:15 +0000 (GMT)
From: Peter Ulrich Kruppa <root@pukruppa.net>
Subject: Re: PPPoE problems with latest -CURRENT (fwd)
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040730152823.D484@pukruppa.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII



On Fri, 30 Jul 2004, Gleb Smirnoff wrote:

> On Fri, Jul 30, 2004 at 11:30:48AM +0000, Peter Ulrich Kruppa wrote:
> P> > On Fri, Jul 30, 2004 at 10:54:43AM +0000, Peter Ulrich Kruppa wrote:
> P> > P> I use my -CURRENT machine to connect with /usr/sbin/ppp to the
> P> > P> internet via a DSL modem (or bridge as some people say).
> P> > P> Since my cvsup yesterday this doesn't work anymore - and what is
> P> > P> even worse I can't see any errror messages:
> P> > P> neither in my ppp.logs nor when I run ppp manually; it just
> P> > P> doen't connect.
> P> > P> I have got a 4.8 -RELEASE on my machine, too. There everything
> P> > P> works as usual - with the same ppp.conf .
> P> > P> Does anyone have a clue what happened?
> P> >
> P> > What network card do you have?
> P> A realtek .
>
> rl(4) or re(4)?
I'm using rl driver.
>
> P> > What is the date of your CURRENT?
> P> Yesterday, and I tried another one this night - just to be sure
> P> everything was downloaded correctly.
>
> Does your provider uses 3Com equipment? Do you have
> net.graph.nonstandard_pppoe in your /etc/sysctl.conf?
My /etc/sysctl.conf is empty

> Assure that you have /usr/sbin/ppp, ng_pppoe.ko, netgraph.ko
> and kernel rebuilt from new sources, and none of them is stale.
Everything dates from 30 Jul 2004 .
I did the usual make buildworld, make kernel, make installworld -
on completely fresh sources - i.e. I removed /usr/src before
cvsup.

> Can you show problematic parts of ppp.log?

Jul 31 06:20:47 pukruppa ppp[495]: Phase: deflink: Disconnected!
Jul 31 06:20:47 pukruppa ppp[495]: Phase: deflink: carrier -> hangup
Jul 31 06:20:47 pukruppa ppp[495]: Phase: deflink: Connect time: 5 secs: 0 oct
ets in, 0 octets out
Jul 31 06:20:47 pukruppa ppp[495]: Phase: deflink: 0 packets in, 0 packets out

Jul 31 06:20:47 pukruppa ppp[495]: Phase:  total 0 bytes/sec, peak 0 bytes/sec
 on Sat Jul 31 06:20:42 2004
Jul 31 06:20:47 pukruppa ppp[495]: Phase: deflink: hangup -> opening
Jul 31 06:20:47 pukruppa ppp[495]: Phase: deflink: Enter pause (30) for redial
ing.
Jul 31 06:21:17 pukruppa ppp[495]: Phase: deflink: Connected!
Jul 31 06:21:17 pukruppa ppp[495]: Phase: deflink: opening -> dial
Jul 31 06:21:17 pukruppa ppp[495]: Phase: deflink: dial -> carrier
Jul 31 06:21:22 pukruppa ppp[495]: Phase: deflink: Disconnected!
Jul 31 06:21:22 pukruppa ppp[495]: Phase: deflink: carrier -> hangup
Jul 31 06:21:22 pukruppa ppp[495]: Phase: deflink: Connect time: 5 secs: 0 oct
ets in, 0 octets out
Jul 31 06:21:22 pukruppa ppp[495]: Phase: deflink: 0 packets in, 0 packets out

Jul 31 06:21:22 pukruppa ppp[495]: Phase:  total 0 bytes/sec, peak 0 bytes/sec
 on Sat Jul 31 06:21:17 2004
Jul 31 06:21:22 pukruppa ppp[495]: Phase: deflink: hangup -> opening
Jul 31 06:21:22 pukruppa ppp[495]: Phase: deflink: Enter pause (30) for redial
ing.

Uli.

>
> --
> Totus tuus, Glebius.
> GLEBIUS-RIPN GLEB-RIPE
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>

------------------------------

Message: 25
Date: Sat, 31 Jul 2004 06:33:39 +0000 (GMT)
From: Peter Ulrich Kruppa <root@pukruppa.net>
Subject: Re: PPPoE problems with latest -CURRENT
To: Julian Elischer <julian@elischer.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040731062718.S127@pukruppa.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII



On Fri, 30 Jul 2004, Julian Elischer wrote:

>
>
> Peter Ulrich Kruppa wrote:
>
> >Hi!
> >
> >I use my -CURRENT machine to connect with /usr/sbin/ppp to the
> >internet via a DSL modem (or bridge as some people say).
> >Since my cvsup yesterday this doesn't work anymore - and what is
> >even worse I can't see any errror messages:
> >neither in my ppp.logs nor when I run ppp manually; it just
> >doen't connect.
> >I have got a 4.8 -RELEASE on my machine, too. There everything
> >works as usual - with the same ppp.conf .
> >Does anyone have a clue what happened?
> >
>
> please supply a tcpdump trace of a successful and a failed transaction.
This is the dump of a successful connection from 4.8 -RELEASE:

05:42:27.051349 PPPoE PADI [Host-Uniq UTF8]
05:42:27.222361 PPPoE PADO [AC-Name "WUPX12-erx"] [Host-Uniq UTF8] [Service-Na
me] [AC-Cookie UTF8]
05:42:27.222401 PPPoE PADR [Host-Uniq UTF8] [AC-Cookie UTF8] [AC-Name "WUPX12-
erx"]
05:42:27.577189 PPPoE PADS [ses 0x105d] [Service-Name] [Host-Uniq UTF8] [AC-Na
me "WUPX12-erx"] [AC-Cookie UTF8]
05:42:28.608645 PPPoE  [ses 0x105d] Conf-Req(128), MRU=1492, Auth-Prot PAP, Ma
gic-Num=757a3311
05:42:28.608808 PPPoE  [ses 0x105d] Conf-Req(1), MRU=1460, Magic-Num=af04e452

05:42:28.608831 PPPoE  [ses 0x105d] Conf-Ack(128), MRU=1492, Auth-Prot PAP, Ma
gic-Num=757a3311
05:42:28.667182 PPPoE  [ses 0x105d] Conf-Ack(1), MRU=1460, Magic-Num=af04e452

05:42:28.667559 PPPoE  [ses 0x105d] Ident(0), Magic-Num=af04e452
05:42:28.667580 PPPoE  [ses 0x105d] Auth-Req(1),
Peer=dslflat/******%kamp-dsl, Name=******
05:42:30.883283 PPPoE  [ses 0x105d] Conf-Req(2), MRU=1492, Auth-Prot PAP, Magi
c-Num=9e2ec425
05:42:30.883403 PPPoE  [ses 0x105d] Conf-Req(2), MRU=1460, Magic-Num=5cc8f4e4

05:42:30.883423 PPPoE  [ses 0x105d] Conf-Ack(2), MRU=1492, Auth-Prot PAP, Magi
c-Num=9e2ec425
05:42:30.941269 PPPoE  [ses 0x105d] Conf-Ack(2), MRU=1460, Magic-Num=5cc8f4e4

05:42:30.941596 PPPoE  [ses 0x105d] Ident(1), Magic-Num=5cc8f4e4
05:42:30.941617 PPPoE  [ses 0x105d] Auth-Req(1),
Peer=dslflat/*****%kamp-dsl, Name=********
05:42:31.014934 PPPoE  [ses 0x105d] Conf-Req(1), MRU=1460, Auth-Prot PAP, Magi
c-Num=62cfdbc4
05:42:31.015015 PPPoE  [ses 0x105d] Conf-Req(3), MRU=1460, Magic-Num=340371cf

05:42:31.015035 PPPoE  [ses 0x105d] Conf-Ack(1), MRU=1460, Auth-Prot PAP, Magi
c-Num=62cfdbc4
05:42:31.073687 PPPoE  [ses 0x105d] Conf-Ack(3), MRU=1460, Magic-Num=340371cf

05:42:31.073962 PPPoE  [ses 0x105d] Ident(2), Magic-Num=340371cf
05:42:31.073983 PPPoE  [ses 0x105d] Auth-Req(1),
Peer=dslflat/*****%kamp-dsl, Name=*******
05:42:31.215949 PPPoE  [ses 0x105d] Auth-Ack(1), Msg=
05:42:31.217560 PPPoE  [ses 0x105d] Conf-Req(1)
05:42:31.217589 PPPoE  [ses 0x105d] Conf-Req(1), IP-Addr=0.0.0.0, Pri-DNS=ns-o
b.kamp.net, Sec-DNS=255.255.255.255
05:42:31.217610 PPPoE  [ses 0x105d]
05:42:31.219949 PPPoE  [ses 0x105d] Conf-Req(1), IP-Addr=dsl-gate.kamp.net
05:42:31.220337 PPPoE  [ses 0x105d] Conf-Ack(1), IP-Addr=dsl-gate.kamp.net
05:42:31.277440 PPPoE  [ses 0x105d] Prot-Rej(2), Rejected-Protocol=80fd
05:42:31.282172 PPPoE  [ses 0x105d] Conf-Nak(1), IP-Addr=reverse-213-146-114-2
4.dialin.kamp-dsl.de, Pri-DNS=mail.kamp-dsl.de, Sec-DNS=ns-ob.kamp.net
05:42:31.283829 PPPoE  [ses 0x105d] Conf-Req(2), IP-Addr=reverse-213-146-114-2
4.dialin.kamp-dsl.de, Pri-DNS=mail.kamp-dsl.de, Sec-DNS=ns-ob.kamp.net
05:42:31.288660 PPPoE  [ses 0x105d] Prot-Rej(3), Rejected-Protocol=8057
05:42:31.288791 PPPoE  [ses 0x105d]
05:42:31.343686 PPPoE  [ses 0x105d] Conf-Ack(2), IP-Addr=reverse-213-146-114-2
4.dialin.kamp-dsl.de, Pri-DNS=mail.kamp-dsl.de, Sec-DNS=ns-ob.kamp.net
05:42:32.033113 PPPoE  [ses 0x105d] reverse-213-146-114-24.dialin.kamp-dsl.de.
1325 > mail.kamp-dsl.de.domain:  13529+ PTR? 177.97.62.195.in-addr.arpa. (44)

05:42:32.098487 PPPoE  [ses 0x105d] mail.kamp-dsl.de.domain > reverse-213-146-
114-24.dialin.kamp-dsl.de.1325:  13529 1/0/0 (72) (DF)
05:42:32.099089 PPPoE  [ses 0x105d] reverse-213-146-114-24.dialin.kamp-dsl.de.
1326 > mail.kamp-dsl.de.domain:  13530+ PTR? 234.99.62.195.in-addr.arpa. (44)

05:42:32.238218 PPPoE  [ses 0x105d] Echo-Req(1), Magic-Num=62cfdbc4
05:42:32.238286 PPPoE  [ses 0x105d] Echo-Rep(1), Magic-Num=340371cf
05:42:34.352068 PPPoE  [ses 0x105d]

In the failed connection from -CURRENT nothing is dumped at all.

Uli.
>
> >
> >Thanks,
> >
> >Uli.
> >_______________________________________________
> >freebsd-current@freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-current
> >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

> >
> >
>
>

------------------------------

Message: 26
Date: Sat, 31 Jul 2004 01:00:15 -0400
From: "Christopher M. Giordano" <CGiordano@ids.net>
Subject: Re: new gcc 3.4.2 compiler and ports
To: Sean McNeil <sean@mcneil.com>
Cc: freebsd-current@freebsd.org
Message-ID: <410B275F.4090005@ids.net>
Content-Type: text/plain; charset=us-ascii; format=flowed

Sean McNeil wrote:
> I don't know if anyone is interested in this information, but I thought
> I'd give a list of ports that I use which will not compile under the new
> gcc 3.4.2:

Also:

multimedia/kmplayer

After upgrading world to new GCC - and then switching to X.org,
some of my KDE ports no worky:

$ ~ >
$ ~ > kmplayer
/libexec/ld-elf.so.1: /usr/local/lib/libkdeinit_kmplayer.so: Undefined symbol 
"_ZNSt24__default_alloc_templateILb1ELi0EE12_S_free_listE"
$ ~ >
$ ~ > kmamerun
/libexec/ld-elf.so.1: Undefined symbol "_ZNSt24__default_alloc_templateILb1ELi
0EE12_S_free_listE" referenced from COPY relocation in kmamerun
$ ~ >
$ ~ > kugar
/libexec/ld-elf.so.1: /usr/local/lib/libkofficecore.so.2: Undefined symbol "_Z
NSt24__default_alloc_templateILb1ELi0EE12_S_free_listE"
$ ~ >

Looks like maybe a name mangling issue with the new GCC?

kmamerun was fixed by a recompile, but multimedia/kmplayer
no longer compiles; I haven't retried kugar [from koffice] yet...

------------------------------

Message: 27
Date: Sat, 31 Jul 2004 09:03:10 +0400
From: Maxim Maximov <mcsi@mcsi.pp.ru>
Subject: Re: PPPoE problems with latest -CURRENT
To: Peter Ulrich Kruppa <root@pukruppa.net>
Cc: freebsd-current@freebsd.org
Message-ID: <410B280E.4050008@mcsi.pp.ru>
Content-Type: text/plain; charset=us-ascii; format=flowed

Peter Ulrich Kruppa wrote:
> 
> On Fri, 30 Jul 2004, Julian Elischer wrote:
> 
> 
>>
>>Peter Ulrich Kruppa wrote:
>>
>>
>>>Hi!
>>>
>>>I use my -CURRENT machine to connect with /usr/sbin/ppp to the
>>>internet via a DSL modem (or bridge as some people say).
>>>Since my cvsup yesterday this doesn't work anymore - and what is
>>>even worse I can't see any errror messages:
>>>neither in my ppp.logs nor when I run ppp manually; it just
>>>doen't connect.
>>>I have got a 4.8 -RELEASE on my machine, too. There everything
>>>works as usual - with the same ppp.conf .
>>>Does anyone have a clue what happened?
>>>
>>
>>please supply a tcpdump trace of a successful and a failed transaction.
> 
> This is the dump of a successful connection from 4.8 -RELEASE:
> 
> 05:42:27.051349 PPPoE PADI [Host-Uniq UTF8]
> 05:42:27.222361 PPPoE PADO [AC-Name "WUPX12-erx"] [Host-Uniq UTF8] [Service-
Name] [AC-Cookie UTF8]
> 05:42:27.222401 PPPoE PADR [Host-Uniq UTF8] [AC-Cookie UTF8] [AC-Name "WUPX1
2-erx"]
> 05:42:27.577189 PPPoE PADS [ses 0x105d] [Service-Name] [Host-Uniq UTF8] [AC-
Name "WUPX12-erx"] [AC-Cookie UTF8]
> 05:42:28.608645 PPPoE  [ses 0x105d] Conf-Req(128), MRU=1492, Auth-Prot PAP, 
Magic-Num=757a3311
> 05:42:28.608808 PPPoE  [ses 0x105d] Conf-Req(1), MRU=1460, Magic-Num=af04e45
2
> 05:42:28.608831 PPPoE  [ses 0x105d] Conf-Ack(128), MRU=1492, Auth-Prot PAP, 
Magic-Num=757a3311
> 05:42:28.667182 PPPoE  [ses 0x105d] Conf-Ack(1), MRU=1460, Magic-Num=af04e45
2
> 05:42:28.667559 PPPoE  [ses 0x105d] Ident(0), Magic-Num=af04e452
> 05:42:28.667580 PPPoE  [ses 0x105d] Auth-Req(1),
> Peer=dslflat/******%kamp-dsl, Name=******
> 05:42:30.883283 PPPoE  [ses 0x105d] Conf-Req(2), MRU=1492, Auth-Prot PAP, Ma
gic-Num=9e2ec425
> 05:42:30.883403 PPPoE  [ses 0x105d] Conf-Req(2), MRU=1460, Magic-Num=5cc8f4e
4
> 05:42:30.883423 PPPoE  [ses 0x105d] Conf-Ack(2), MRU=1492, Auth-Prot PAP, Ma
gic-Num=9e2ec425
> 05:42:30.941269 PPPoE  [ses 0x105d] Conf-Ack(2), MRU=1460, Magic-Num=5cc8f4e
4
> 05:42:30.941596 PPPoE  [ses 0x105d] Ident(1), Magic-Num=5cc8f4e4
> 05:42:30.941617 PPPoE  [ses 0x105d] Auth-Req(1),
> Peer=dslflat/*****%kamp-dsl, Name=********
> 05:42:31.014934 PPPoE  [ses 0x105d] Conf-Req(1), MRU=1460, Auth-Prot PAP, Ma
gic-Num=62cfdbc4
> 05:42:31.015015 PPPoE  [ses 0x105d] Conf-Req(3), MRU=1460, Magic-Num=340371c
f
> 05:42:31.015035 PPPoE  [ses 0x105d] Conf-Ack(1), MRU=1460, Auth-Prot PAP, Ma
gic-Num=62cfdbc4
> 05:42:31.073687 PPPoE  [ses 0x105d] Conf-Ack(3), MRU=1460, Magic-Num=340371c
f
> 05:42:31.073962 PPPoE  [ses 0x105d] Ident(2), Magic-Num=340371cf
> 05:42:31.073983 PPPoE  [ses 0x105d] Auth-Req(1),
> Peer=dslflat/*****%kamp-dsl, Name=*******
> 05:42:31.215949 PPPoE  [ses 0x105d] Auth-Ack(1), Msg=
> 05:42:31.217560 PPPoE  [ses 0x105d] Conf-Req(1)
> 05:42:31.217589 PPPoE  [ses 0x105d] Conf-Req(1), IP-Addr=0.0.0.0, Pri-DNS=ns
-ob.kamp.net, Sec-DNS=255.255.255.255
> 05:42:31.217610 PPPoE  [ses 0x105d]
> 05:42:31.219949 PPPoE  [ses 0x105d] Conf-Req(1), IP-Addr=dsl-gate.kamp.net
> 05:42:31.220337 PPPoE  [ses 0x105d] Conf-Ack(1), IP-Addr=dsl-gate.kamp.net
> 05:42:31.277440 PPPoE  [ses 0x105d] Prot-Rej(2), Rejected-Protocol=80fd
> 05:42:31.282172 PPPoE  [ses 0x105d] Conf-Nak(1), IP-Addr=reverse-213-146-114
-24.dialin.kamp-dsl.de, Pri-DNS=mail.kamp-dsl.de, Sec-DNS=ns-ob.kamp.net
> 05:42:31.283829 PPPoE  [ses 0x105d] Conf-Req(2), IP-Addr=reverse-213-146-114
-24.dialin.kamp-dsl.de, Pri-DNS=mail.kamp-dsl.de, Sec-DNS=ns-ob.kamp.net
> 05:42:31.288660 PPPoE  [ses 0x105d] Prot-Rej(3), Rejected-Protocol=8057
> 05:42:31.288791 PPPoE  [ses 0x105d]
> 05:42:31.343686 PPPoE  [ses 0x105d] Conf-Ack(2), IP-Addr=reverse-213-146-114
-24.dialin.kamp-dsl.de, Pri-DNS=mail.kamp-dsl.de, Sec-DNS=ns-ob.kamp.net
> 05:42:32.033113 PPPoE  [ses 0x105d] reverse-213-146-114-24.dialin.kamp-dsl.d
e.1325 > mail.kamp-dsl.de.domain:  13529+ PTR? 177.97.62.195.in-addr.arpa. (44
)
> 05:42:32.098487 PPPoE  [ses 0x105d] mail.kamp-dsl.de.domain > reverse-213-14
6-114-24.dialin.kamp-dsl.de.1325:  13529 1/0/0 (72) (DF)
> 05:42:32.099089 PPPoE  [ses 0x105d] reverse-213-146-114-24.dialin.kamp-dsl.d
e.1326 > mail.kamp-dsl.de.domain:  13530+ PTR? 234.99.62.195.in-addr.arpa. (44
)
> 05:42:32.238218 PPPoE  [ses 0x105d] Echo-Req(1), Magic-Num=62cfdbc4
> 05:42:32.238286 PPPoE  [ses 0x105d] Echo-Rep(1), Magic-Num=340371cf
> 05:42:34.352068 PPPoE  [ses 0x105d]
> 
> In the failed connection from -CURRENT nothing is dumped at all.
> 
> Uli.
> 

Me too. ng_pppoe doesnt work. No packets go out of interface when ppp 
tries to establish session. It was broken about a week ago.

rp-pppoe 3.5 works properly.

mcsi@ultra(ttyp1) [91] ~# uname -a
FreeBSD ultra.domain 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Fri Jul 30 
23:04:48 MSD 2004     mcsi@ultra.domain:/usr/obj/usr/src/sys/ULTRA  i386


-- 
Maxim Maximov

------------------------------

Message: 28
Date: Sat, 31 Jul 2004 09:50:52 +0400
From: Gleb Smirnoff <glebius@freebsd.org>
Subject: Re: PPPoE problems with latest -CURRENT
To: Peter Ulrich Kruppa <root@pukruppa.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040731055052.GA33774@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r

 I can reproduce it, I'll investigate this today. Probably this is my fault,
sorry.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE

------------------------------

Message: 29
Date: Fri, 30 Jul 2004 23:03:23 -0700
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject: Re: boot2 -- Round 2
To: freebsd-current@freebsd.org
Message-ID: <20040731060323.GA47329@parodius.com>
Content-Type: text/plain; charset=us-ascii

I'll be sending you a file attachment (tarball) of applicable portions
of my /boot on "Box B"; feel free to take a peek and tell me if anything
looks awry.  If you'd like this posted to -current, let me know, otherwise
be expecting it in your personal inbox.

One work-around I have found: upon booting the machine (as so happens,
via PXE) with a 5.2.1-RELEASE kernel and mfsroot (with /rescue added
to it) solely to run `disklabel -B ad0s1', things began working as
they should ("0:ad(0,a)").  I doubt disklabel itself is broken, as it
works great on "Box A".  Of course, I never saw the "backtick problem"
on Box A to begin with -- just a panic once boot1/boot2 was hit.

Just to throw this out there: would boot0cfg play any role in all of
this?  I've tinkered around with it on "Box B" solely for troubleshooting,
but all my changes have shown up where they should (i.e. in boot0, a.k.a.
"F1 FreeBSD").

What Matt chimed in with sounds dead on.  I'll have to take a little
peek at my DFly box...

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.                             |

On Sat, Jul 31, 2004 at 12:27:13AM +0000, Alexander Kabaev wrote:
> On Fri, Jul 30, 2004 at 02:28:43PM -0700, Jeremy Chadwick wrote:
> > So, in regards to the commited fix:
> > 
> > This seemed to fix the issue on one of my boxes (the one which was
> > flat-out panic'ing, not the one which was reporting 0:ad(0,`) as the
> > default slice to load /boot/loader from).  I'll refer to the one which
> > panic'd as "Box A" while the one which is doing the backtick as "Box B".
> > 
> > After pulling cvs down last night and rebuilding world+kernel+boot
> > blocks, running disklabel -B ad0s1, all on Box B, I found the machine
> > once again spitting out "Invalid partition", trying to load loader(8)
> > off of 0:ad(0,`) instead of 0:ad(0,a).  I double-checked boot2/Makefile
> > to see if -fno-unit-at-a-time was in place -- and it was.
> > 
> > I've tried using /boot/boot off of Box A and applying it to Box B using
> > disklabel -B -b /boot/box_b/boot ad0s1 to no avail.
> > 
> > It seems almost as if the boot2 code is broken in such a way that it
> > resembles an "off-by-one" error (ASCII 0x60 == `, ASCII 0x61 == a).
> > Why it's picking ` is beyond me...
> > 
> > Can someone shed some light as to how I can go about debugging this,
> > as well as mention how I can temporarily work around this?  Box B
> > happens to run mysqld, and is suffering from some issues mentioned on
> > freebsd-threads (re: machine randomly hard-locking), so it definitely
> > needs to be able to boot back up on it's own without my intervention.
> > 
> > Thanks!
> Hi,
> 
> I guess I would like to get your /boot/boot. The one I got simply works
> on all boxes in my home :(.
> 
> As another option, you can try an alternative patch which was proposed
> by Tim Robbins. Since the problem was apparently caused by me going back to

> static memcpy implementation, I am currenly working on using builtin
> memcpy as it was used before. I will post it later after I've done some
> more testing and if things will look good.
> 
> --
> Alexander Kabaev
> 
> ======== Begin quote ==============
> 
> After a few hours of head-scratching, I've tracked down the problem with
> boot2 and -funit-at-a-time, and come up with a patch that makes it work:
> 
> ==== //depot/user/tjr/freebsd-tjr/src/sys/boot/i386/boot2/boot2.c#7 - /home/
tim/p4/src/sys/boot/i386/boot2/boot2.c ====
> @@ -139,7 +139,16 @@
>  static int xgetc(int);
>  static int getc(int);
>  
> -static void memcpy(void *, const void *, int);
> +/*
> + * GCC 3.4 with -funit-at-a-time (implied by -Os) may use a non-standard
> + * calling convention for static functions, using registers to pass argumen
ts
> + * instead of the stack. However, GCC may emit calls to memcpy() when a
> + * program copies a struct with the assignment operator, and the code it
> + * emits to call memcpy() uses the standard convention, not the register
> + * convention. This means we must declare our memcpy() implementation "__us
ed"
> + * to disable the register calling convention.
> + */
> +static void memcpy(void *, const void *, int) __used;
>  static void
>  memcpy(void *dst, const void *src, int len)
>  {
> 
> 
> I think this is a bug in GCC; it should emit a warning if it's about to emit

> code to call memcpy(), but finds that memcpy() has a prototype that conflict
s
> with the assumptions it makes.
> 
> 
> Tim
> 
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

------------------------------

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

End of freebsd-current Digest, Vol 70, Issue 18
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]