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. Re: Rewrite cvsup & portupgrade in C (Oliver Eikemeier)
   2. Re: Rewrite cvsup & portupgrade in C (Devon H. O'Dell)
   3. Call for FreeBSD status reports (Scott Long)
   4. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Robert Watson)
   5. cvs-src summary for June 28 - July 5 (Part 1 of 2) (Mark Johnston)
   6. Re: acpi interrupt storm when disabling, IPI hang (Nate Lawson)
   7. [current tinderbox] failure on alpha/alpha (FreeBSD Tinderbox)
   8. Re: recent libalias changes (Divacky Roman)
   9. gdb coredumps after recent CURRENT upgrade
      (Vladimir Grebenschikov)
  10. Automounter LDAP?? (David RAVAIL)
  11. Re: recent libalias changes (Dag-Erling Sm?rgrav)
  12. Re: recent libalias changes (David Malone)
  13. Re: Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Thorsten Greiner)
  14. Re: recent libalias changes (Dag-Erling Sm?rgrav)
  15. Re: recent libalias changes (Divacky Roman)
  16. Re: recent libalias changes (David Malone)
  17. Re: recent libalias changes (Dag-Erling Sm?rgrav)
  18. unkillable process in physrd-sttae (Mikhail Teterin)
  19. Can't seem to build a release. (Edwin Culp)


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

Message: 1
Date: Tue, 6 Jul 2004 01:20:08 +0200
From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Subject: Re: Rewrite cvsup & portupgrade in C
To: Michael Nottebrock <michaelnottebrock@gmx.net>
Cc: freebsd-current@FreeBSD.org
Message-ID: <DB51B5C0-CED9-11D8-9FE1-00039312D914@fillmore-labs.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Michael Nottebrock wrote:

> On Monday 05 July 2004 04:02, Rob wrote:
>> Colin Percival wrote:
>>> At 08:12 04/07/2004, Joel Dahl wrote:
>>>> 1) Is there a need for a rewrite of cvsup and portupgrade in C so 
>>>> that
>>>> they can be included in the base system?
>>>
>>> Yes please. :-)
>>
>> I remember that portupgrade is intentionally not in the base system, to
>> allow easier updates for a running system. This way it can be more 
>> often
>> updated than the official releases, to reflect changes in the ports 
>> system.
>
> And that's a good thing. Perhaps somebody wants to investigate if some 
> sort of
> packages-only, C based updater which does not need a local ports tree 
> to work
> is feasible. That could very well have a place in the base-system and 
> also
> further promote and ease the use of binary packages.

Which doesn't mean it couldn't be part of the 'ports base'. I'm 
investigating
whether a combination of pkg_install and bsd.port.mk couldn't make a
`make upgrade' feasible. Currently we just upgrade the pkg_install tools 
on
older systems by installing them as a port, so no problems from this 
side...

-Oliver


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

Message: 2
Date: Tue, 6 Jul 2004 1:37:12 -0000
From: "Devon H. O'Dell" <dodell@sitetronics.com>
Subject: Re: Rewrite cvsup & portupgrade in C
To: "Oliver Eikemeier" <eikemeier@fillmore-labs.com>,	"Michael
	Nottebrock" <michaelnottebrock@gmx.net>
Cc: freebsd-current@FreeBSD.org
Message-ID: <E1Bhd1M-000KEo-Nz@smp500.sitetronics.com>
Content-Type: text/plain; charset="iso-8859-1";

>
> Michael Nottebrock wrote:
>
> &gt; On Monday 05 July 2004 04:02, Rob wrote:
> &gt;&gt; Colin Percival wrote:
> &gt;&gt;&gt; At 08:12 04/07/2004, Joel Dahl wrote:
> &gt;&gt;&gt;&gt; 1) Is there a need for a rewrite of cvsup and portupgrade
in C so
> &gt;&gt;&gt;&gt; that
> &gt;&gt;&gt;&gt; they can be included in the base system?
> &gt;&gt;&gt;
> &gt;&gt;&gt; Yes please. :-)
> &gt;&gt;
> &gt;&gt; I remember that portupgrade is intentionally not in the base
system, to
> &gt;&gt; allow easier updates for a running system. This way it can be
more
> &gt;&gt; often
> &gt;&gt; updated than the official releases, to reflect changes in the
ports
> &gt;&gt; system.
> &gt;
> &gt; And that's a good thing. Perhaps somebody wants to investigate if
some
> &gt; sort of
> &gt; packages-only, C based updater which does not need a local ports tree
> &gt; to work
> &gt; is feasible. That could very well have a place in the base-system and
> &gt; also
> &gt; further promote and ease the use of binary packages.
>
> Which doesn't mean it couldn't be part of the 'ports base'. I'm
> investigating
> whether a combination of pkg_install and bsd.port.mk couldn't make a
> `make upgrade' feasible. Currently we just upgrade the pkg_install tools
> on
> older systems by installing them as a port, so no problems from this
> side...
>
> -Oliver
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to
&quot;freebsd-current-unsubscribe@freebsd.org&quot;

Please forgive the horrible web mail client formatting.

I'd like to note that Maxime (mux@) is working on csup (and it's mostly
finished from what I hear); a C implementation of cvsup.

Kind regards,

Devon H. O'Dell


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

Message: 3
Date: Mon, 5 Jul 2004 21:31:22 -0600 (MDT)
From: Scott Long <scottl@freebsd.org>
Subject: Call for FreeBSD status reports
To: current@freebsd.org
Message-ID: <20040705213101.Q95606@pooker.samsco.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

All,

It's time again for the bi-monthly FreeBSD status reports.  We're on an
upward trend in numbers of reports that are submitted, and I'm hoping to
get 25 this time.  As always, reports are encouraged for anything that
relates to FreeBSD development, documentation, independent projects, or
anything else that might be interesting to the community as a whole.
Reports should be one to two paragraphs in length.  The template can be
found at http://www.freebsd.org/news/status/report-sample.xml

Submissions are due to monthly@freebsd.org by July 15.

Thanks,

Scott


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

Message: 4
Date: Tue, 6 Jul 2004 00:14:21 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: Thorsten Greiner <thorsten@tgreiner.net>
Cc: "Michael L. Hostbaek" <mich@freebsd.org>
Message-ID:
	<Pine.NEB.3.96L.1040706001249.2853I-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


(This time to more people)

The patch below appears to (brute force) eliminate the crash/hang I'm
experiencing with SCHED_ULE in the post-preemption universe.  However, I
was experiencing it only in the SMP case, not UP, so it could be I'm just
not triggering it timing-wise.  This would be a temporary fix until jhb is
online again post-USENIX to take a look, assuming this works around the
problem for people other than me.

Note that this is probably damaging to interrupt processing latency.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research

Index: sched_ule.c
===================================================================
RCS file: /data/ncvs/src/sys/kern/sched_ule.c,v
retrieving revision 1.112
diff -u -r1.112 sched_ule.c
--- sched_ule.c	3 Jul 2004 16:57:51 -0000	1.112
+++ sched_ule.c	6 Jul 2004 02:52:18 -0000
@@ -1623,6 +1623,7 @@
         if (td->td_priority < curthread->td_priority)
                 curthread->td_flags |= TDF_NEEDRESCHED;
 
+#if 0
 #ifdef SMP
 	/*
 	 * Only try to preempt if the thread is unpinned or pinned to the
@@ -1632,6 +1633,7 @@
 #endif
 	if (maybe_preempt(td))
 		return;
+#endif
 	ke->ke_ksegrp->kg_runq_kses++;
 	ke->ke_state = KES_ONRUNQ;
 


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

Message: 5
Date: Mon, 5 Jul 2004 23:17:47 -0500
From: Mark Johnston <mjohnston@skyweb.ca>
Subject: cvs-src summary for June 28 - July 5 (Part 1 of 2)
To: current@freebsd.org
Message-ID: <200407052317.47974.mjohnston@skyweb.ca>
Content-Type: text/plain;  charset="us-ascii"

This has been a big week for commits - the first few days of cvs mail gave me 

as much text as a full normal summary.  In order to break things up a bit, 
and avoid overwhelming people, I'm posting part 1, which is about as long as 

a regular summary and covers roughly to the end of June.  Part 2, to come 
tomorrow, will probably be similar in length; I'll also post the full summary 

to the web at the same time.

Mark

FreeBSD cvs-src summary for 28/06/04 to 05/07/04
++++++++++++++++++++++++++++++++++++++++++++++++
This is a regular weekly summary of FreeBSD's cutting-edge development.
It is intended to help the FreeBSD community keep up with the fast-paced
work going on in FreeBSD-CURRENT by distilling the deluge of data from
the CVS mailing list into a (hopefully) easy-to-read newsletter.  This
newsletter is marked up in reStructuredText_, so any odd punctuation
that you see is likely intended for the reST parser.

. _reStructuredText: http://docutils.sourceforge.net/rst.html

You can get old summaries, and an HTML version of this one, at
http://www.xl0.org/FreeBSD/.  Please send any comments to Mark Johnston
(mark at xl0.org).

For Lukasz Dudek and Szymon Roczniak's Polish translations of these
summaries, which may lag the English ones slightly, please see
http://mocart.pinco.pl/FreeBSD/.

. contents::

======
Errata
======
Brooks Davis (brooks) kindly pointed out an error in `last week's
summary`_.  I reported that the pseudo-interface cloning changes resulted
in stf always being created instead of stf0 or other names; here is the
actual table of results as supplied by Brooks.

. _`last week's summary`: 
http://excel.xl0.org/FreeBSD/28-06-04.html#pseudo-interface-cloning-overhauled


Command         DEV     Version
ifconfig stf    stf0    old
ifconfig stf0   stf0    old
ifconfig 6to4   <fail>  old

ifconfig stf    stf     new
ifconfig stf0   stf0    new
ifconfig 6to4   6to4    new

Those of you reading this on the current@ list will have already seen the
correction.  Sorry for the confusion.

============
New features
============
Significant improvements to pkg_install
---------------------------------------
Oliver Eikemeier (eik) introduced some major enhancements to pkg_install
and the other package management tools, rewriting the version number
parsing code and adding several new flags.  The version number code now
supports version strings like 'alpha', 'beta', and 'pl', and uses the full
version numbers to compare earlier and later versions.  This makes it
possible for a script to detect software with security problems the way
NetBSD's audit-packages does; see `PR 56961`_ for more information.

. _`PR 56961`: http://www.freebsd.org/cgi/query-pr.cgi?pr=56961

Oliver also merged several other package-related PRs, including 66032_,
56989_, 57016_, 57029_, and 26468_.  These improve handling of corrupt
package databases and add a couple of flags and some bugfixes.

. _66032: http://www.freebsd.org/cgi/query-pr.cgi?pr=66032
. _56989: http://www.freebsd.org/cgi/query-pr.cgi?pr=56989
. _57016: http://www.freebsd.org/cgi/query-pr.cgi?pr=57016
. _57029: http://www.freebsd.org/cgi/query-pr.cgi?pr=57029
. _26468: http://www.freebsd.org/cgi/query-pr.cgi?pr=26468

http://www.freebsd.org/cgi/mid.cgi?200406291854.i5TIslGm003131
http://www.freebsd.org/cgi/mid.cgi?200406291856.i5TIuxZQ003361
http://www.freebsd.org/cgi/mid.cgi?200406291859.i5TIxJ20003694

ACPI quirk support added
------------------------
Nate Lawson (njl) committed support for a list of ACPI quirks.  A quirk
is a note to the system that a certain piece or type of hardware needs
special handling; for instance, the ACPI quirks can disable ACPI on
hardware that is known not to work properly with it.

http://www.freebsd.org/cgi/mid.cgi?200406300449.i5U4ns3u021379
(This link is only one of many commits, spread out over last week and this.)

top gains support for I/O display
---------------------------------
Alfred Perlstein (alfred) committed support to top to display the amount
of disk I/O that processes are doing.  You can use this mode by pressing
"m" or by giving the command line option "-m io" to top.

http://www.freebsd.org/cgi/mid.cgi?200407010912.i619Ccw4072380

ALTQ driver modifications introduced
------------------------------------
Max Laier (mlaier) imported the first batch of driver modifications to
support ALTQ, the new network packet queueing and quality-of-service
framework that works with the recently-imported OpenBSD PF.  Updated
drivers are bfe, em, fxp, lnc, tun, de, rl, sis, and xl.  More patches are
pending; you can see the rest at http://people.freebsd.org/~mlaier/.

http://www.freebsd.org/cgi/mid.cgi?200407021216.i62CG2uK024832

Working LQM implementation added to PPP
---------------------------------------
Brian Somers (brian) added working LQM (Link Quality Monitoring, `RFC
1333`_) support to PPP.  LQM helps PPP keep track of the quality of
a running connection.  Brian is `looking for testers`_ for the LQM
implementation, since he is getting weird results with his ISP.  This
commit is a reimplementation of `PR 11293`_.

. _`RFC 1333`: http://www.rfc-editor.org/rfc/rfc1333.txt
. _`looking for testers`: 
http://www.freebsd.org/cgi/mid.cgi?20040630133328.071bc07b
. _`PR 11293`: http://www.freebsd.org/cgi/query-pr.cgi?pr=11293

http://www.freebsd.org/cgi/mid.cgi?200406301224.i5UCOuSc035406

zlib updated to 1.2.1
---------------------
Tim J. Robbins (tjr) imported zlib, the GNU compression library, version
1.2.1.  1.2.1 replaces the old version 1.1.4, adding many speed and
functionality enhancements.  See `the zlib website`_ for a full list of
changes.

. _`the zlib website`: http://www.gzip.org/zlib/

http://www.freebsd.org/cgi/mid.cgi?200406302343.i5UNhdaW056583

ACPI-CA updated to version 20040527
-----------------------------------
Mark Santcroos (marks) updated ACPI-CA, Intel's ACPI codebase, to
version 20040527.  ACPI-CA updates generally improve support for newer
motherboards and laptops, especially in the area of power control.

http://www.freebsd.org/cgi/mid.cgi?200407020815.i628F5sp016504

Cronyx Tau-PCI adapter support merged to 4.x
--------------------------------------------
Roman Kurakin (rik) MFC'ed support for the Cronyx Tau-PCI E1/E3 adapter.

http://www.freebsd.org/cgi/mid.cgi?200406301658.i5UGwHJX043764

CVS upgrade to 1.11.17 merged to 4.x
------------------------------------
Dag-Erling Smorgrav (des) merged the update to CVS 1.11.17, mentioned `a
few weeks ago`_, to -STABLE.  1.11.17 is a security and bugfix release,
although the security fixes were previously applied.

. _`a few weeks ago`: 
http://excel.xl0.org/FreeBSD/14-06-04.html#cvs-updated-to-1-11-17

http://www.freebsd.org/cgi/mid.cgi?200406291610.i5TGArU8098015

===============
Notable changes
===============
devd turned on by default
-------------------------
M. Warner Losh (imp) switched devd, a daemon that monitors device events,
on by default.  The FreeBSD devd isn't like Linux devd, which creates
and removes /dev entries; FreeBSD's executes programs when a device is
connected or removed, like starting dhclient when a network card is
plugged in.

http://www.freebsd.org/cgi/mid.cgi?200406301558.i5UFwk6K041695

Netgraph converted to use mbuf tags
-----------------------------------
Julian Elischer (julian) converted Netgraph to use mbuf tags instead of
the metadata facility it was using before.  This means that all Netgraph
modules will need to be recompiled.

http://www.freebsd.org/cgi/mid.cgi?200406302251.i5UMpTEa55084

===================
Important bug fixes
===================
Input validation error in Linux compatibility code
--------------------------------------------------
Colin Percival (cperciva) committed a fix to the Linux compatibility code
to -STABLE, 4.8, 4.9, 4.10, and 5.2.  This bug affected all 4.x and 5.x
versions of FreeBSD, and could result in a panic or a user gaining root
access.  For more information, see `FreeBSD-SA-04:13.linux`_.

. _`FreeBSD-SA-04:13.linux`: 
ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-04:13.linux.asc

===============
Other bug fixes
===============
Christian S. J. Peron (csjp) fixed a bug in tftpd that caused it to change
its user ID as requested, but not its group ID.

http://www.freebsd.org/cgi/mid.cgi?200406301858.i5UIwJkB047720

Don Lewis (truckman) worked around a problem that was causing "giving up
on N buffers" messages to be displayed at shutdown by heavy disk activity
with softupdates.  The message can also be caused by having Linux ext2
filesystems mounted at shutdown; this fix does not address that problem.

http://www.freebsd.org/cgi/mid.cgi?200407012359.i61NxJLL000360

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

Message: 6
Date: Mon, 05 Jul 2004 21:41:00 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: acpi interrupt storm when disabling, IPI hang
To: Don Bowman <don@sandvine.com>
Cc: "'acpi@freebsd.org'" <acpi@freebsd.org>
Message-ID: <40EA2D5C.4090006@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Don Bowman wrote:
> When i run 'acpiconf -d', i get an interrupt storm on irq9...
> vmstat -i shows ~1000/s.
> 
> Jun 15 13:41:33 cdata kernel: Interrupt storm detected on "irq9: acpi0";
> throttling interrupt source
> 
> when i try to re-enable, i get an error:
> 
> # acpiconf -e
> acpi0: interrupt handler already installed
>     ACPI-0210: *** Error: Unable to install System Control Interrupt
> Handler, AE_ALREADY_EXISTS
> acpiconf: enable failed: Device not configured
> # 
> 
> System is a Supermicro X5DPE motherboard, dual 2.8GHz Xeon,
> 533MHz FSB, Intel e7501 chipset.

Some systems don't support legacy mode (acpi disabled).  Others support 
legacy mode but don't support transition back to it after acpi has been 
enabled.

In this case, it's likely the flags aren't set right for 
AcpiEnableSubsystem.  I'll look into it.

> The system will not boot 5.x if acpi is disabled.
> It will run 4.x without trouble tho.

What do you mean by "will not boot"?  Hangs?  Panics?  More info is needed.

-Nate

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

Message: 7
Date: Tue,  6 Jul 2004 04:24:59 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on alpha/alpha
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<alpha@freebsd.org>
Message-ID: <20040706082459.E20007303F@freebsd-current.sentex.ca>

TB --- 2004-07-06 08:00:00 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-06 08:00:00 - starting CURRENT tinderbox run for alpha/alpha
TB --- 2004-07-06 08:00:00 - checking out the source tree
TB --- 2004-07-06 08:00:00 - cd /home/tinderbox/sandbox/CURRENT/alpha/alpha
TB --- 2004-07-06 08:00:00 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-07-06 08:04:39 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-07-06 08:04:39 - cd /home/tinderbox/sandbox/CURRENT/alpha/alpha/sr
c
TB --- 2004-07-06 08:04:39 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
[...]
/tinderbox/CURRENT/alpha/alpha/src/lib/libalias/alias.c:831: warning: cast inc
reases required alignment of target type
/tinderbox/CURRENT/alpha/alpha/src/lib/libalias/alias.c: In function `TcpAlias
Out':
/tinderbox/CURRENT/alpha/alpha/src/lib/libalias/alias.c:922: warning: cast inc
reases required alignment of target type
/tinderbox/CURRENT/alpha/alpha/src/lib/libalias/alias.c:965: warning: cast inc
reases required alignment of target type
/tinderbox/CURRENT/alpha/alpha/src/lib/libalias/alias.c: In function `LibAlias
UnaliasOut':
/tinderbox/CURRENT/alpha/alpha/src/lib/libalias/alias.c:1342: warning: cast in
creases required alignment of target type
/tinderbox/CURRENT/alpha/alpha/src/lib/libalias/alias.c:1343: warning: cast in
creases required alignment of target type
/tinderbox/CURRENT/alpha/alpha/src/lib/libalias/alias.c:1344: warning: cast in
creases required alignment of target type
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src/lib/libalias.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src/lib.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src.
*** Error code 1

Stop in /tinderbox/CURRENT/alpha/alpha/src.
TB --- 2004-07-06 08:24:59 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-07-06 08:24:59 - ERROR: failed to build world
TB --- 2004-07-06 08:24:59 - tinderbox aborted


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

Message: 8
Date: Tue, 6 Jul 2004 10:29:06 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: Re: recent libalias changes
To: current@freebsd.org
Cc: des@des.no
Message-ID: <20040706082906.GA50212@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii

On Mon, Jul 05, 2004 at 06:44:21PM +0200, Dag-Erling Sm?rgrav wrote:
> des@des.no (Dag-Erling Sm?rgrav) writes:
> > David Malone <dwmalone@maths.tcd.ie> writes:
> > > With Divacky's help we localised his problem to alias.c. The twowords
> > > function breaks the strick aliasing rule, try replacing it with:
> > > [...]
> > oh no you don't - this is not endian-clean.
> 
> Please try the attached patch.

the patch works...

pls commit

roman

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

Message: 9
Date: Tue, 06 Jul 2004 08:53:03 +0000
From: Vladimir Grebenschikov <vova@express.ru>
Subject: gdb coredumps after recent CURRENT upgrade
To: "current@freebsd.org" <current@freebsd.org>
Message-ID: <1089103983.921.22.camel@localhost>
Content-Type: text/plain; charset=KOI8-R


Hi 

It complains about realloc:


# gdb httpd
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) r -X
Starting program: /usr/local/sbin/httpd -X
gdb in realloc(): error: pointer to wrong page
��������� ���������� (core dumped)
# gdb gdb gdb.core
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)...
Core was generated by `gdb'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libm.so.2...(no debugging symbols found)...
done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libreadline.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libreadline.so.4
Reading symbols from /lib/libncurses.so.5...(no debugging symbols
found)...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libc.so.5...(no debugging symbols found)...
done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1

#0  0x28310adb in kill () from /lib/libc.so.5
(gdb) bt
#0  0x28310adb in kill () from /lib/libc.so.5
#1  0x28306a9e in raise () from /lib/libc.so.5
#2  0x2837263b in abort () from /lib/libc.so.5
#3  0x2831aa79 in ldexp () from /lib/libc.so.5
#4  0x2831aabd in ldexp () from /lib/libc.so.5
#5  0x2831b37a in ldexp () from /lib/libc.so.5
#6  0x2831b5c8 in ldexp () from /lib/libc.so.5
#7  0x2831b6e9 in realloc () from /lib/libc.so.5
#8  0x080b5d86 in request_quit ()
#9  0x080b5e48 in xmrealloc ()
#10 0x080b5eff in xrealloc ()
#11 0x080d31b1 in target_resize_to_sections ()
#12 0x080e8e19 in free_so ()
#13 0x080e8ea8 in solib_add ()
#14 0x0811854e in handle_inferior_event ()
#15 0x08116fa8 in wait_for_inferior ()
#16 0x08116e2a in proceed ()
#17 0x080bd7b8 in child_post_attach ()
#18 0x080d313e in find_default_create_inferior ()
#19 0x080726d5 in tty_command ()
#20 0x080a979e in _initialize_cp_abi ()
#21 0x080ab1ec in cmd_func ()
#22 0x080bba9c in execute_command ()
#23 0x08088337 in async_disable_stdin ()
#24 0x080889e8 in async_disable_stdin ()
#25 0x2826d336 in rl_callback_read_char () from /lib/libreadline.so.4
#26 0x08087c57 in _initialize_gdbarch_utils ()
#27 0x080881f4 in stdin_event_handler ()
#28 0x08089595 in delete_file_handler ()
#29 0x08089020 in gdb_disable_readline ()
#30 0x0808906c in gdb_do_one_event ()
#31 0x080bb736 in catch_exceptions_with_msg ()
#32 0x080bb599 in throw_exception ()
#33 0x080bb76e in catch_errors ()
---Type <return> to continue, or q <return> to quit---
#34 0x08144bb7 in tui_dispatch_ctrl_char ()
#35 0x08071dd0 in current_interp_command_loop ()
#36 0x08070e47 in main ()
(gdb) 

It have work on CURRENT monthly old.
It happens on both libc_r and libthread (by libmap.conf).

# uname -a
FreeBSD vbook.fbsd.ru 5.2-CURRENT FreeBSD 5.2-CURRENT #61: Mon Jul  5
07:58:03 MSD 2004     root@walder.fbsd.ru:/ext/obj/ext/current/src/sys/
VBOOK  i386


-- 
Vladimir B. Grebenchikov
TSB "Russian Express"

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

Message: 10
Date: Tue, 06 Jul 2004 11:11:11 +0200
From: David RAVAIL <ravail@enstimac.fr>
Subject: Automounter LDAP??
To: freebsd-current@freebsd.org
Message-ID: <40EA6CAF.5050108@enstimac.fr>
Content-Type: text/plain; charset=us-ascii; format=flowed

Did somebody use an automounter which a LDAP map on FreeBSD 5.X ???


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

Message: 11
Date: Tue, 06 Jul 2004 12:12:50 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: recent libalias changes
To: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc: current@freebsd.org
Message-ID: <xzpeknpbg0t.fsf@dwp.des.no>
Content-Type: text/plain; charset="iso-8859-1"

Divacky Roman <xdivac02@stud.fit.vutbr.cz> writes:
> the patch works...
>
> pls commit

Done.  Could you please also test this one?  It fixes an aliasing
violation in another checksum function in libalias (at least
partially, I may have to rewrite the entire function).

DES
-- 
Dag-Erling Sm�rgrav - des@des.no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: alias_util.diff
Type: text/x-patch
Size: 657 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040706/
da8476a9/alias_util-0001.bin

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

Message: 12
Date: Tue, 6 Jul 2004 12:14:03 +0100
From: David Malone <dwmalone@maths.tcd.ie>
Subject: Re: recent libalias changes
To: des@des.no
Cc: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Message-ID: <20040706111403.GA68327@walton.maths.tcd.ie>
Content-Type: text/plain; charset=us-ascii

On Tue, Jul 06, 2004 at 12:12:50PM +0200, des@des.no wrote:
> Done.  Could you please also test this one?  It fixes an aliasing
> violation in another checksum function in libalias (at least
> partially, I may have to rewrite the entire function).

The bit of the function that the patch changes seems to only be
accessing the data through char types, which the C standard says
can alias any type. The while loop that is immediately above it
looks risky though, as this function is probably called with a
struct ip * somewhere.

I guess this may not cause problems in practice because this function
isn't an inline and isn't called from the same file as it is defined
in, so it is probably too hard for gcc to do the strict aliasing
thing.

	David.

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

Message: 13
Date: Tue, 6 Jul 2004 13:19:26 +0200
From: Thorsten Greiner <thorsten@tgreiner.net>
Subject: Re: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: Robert Watson <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040706111926.GA1723@tybalt.nev.psi.de>
Content-Type: text/plain; charset="us-ascii"

* Robert Watson <rwatson@freebsd.org> [2004-07-06 08:21]:
> The patch below appears to (brute force) eliminate the crash/hang I'm
> experiencing with SCHED_ULE in the post-preemption universe.  However, I
> was experiencing it only in the SMP case, not UP, so it could be I'm just
> not triggering it timing-wise.  This would be a temporary fix until jhb is
> online again post-USENIX to take a look, assuming this works around the
> problem for people other than me.

It does work here (as did backing out the native preemption stuff).

> Note that this is probably damaging to interrupt processing latency.

I have not observed anything unusual with this patch. There are
seemingly no increases of build times for my projects and I did not
experience any interactivity glitches (no jumpy mouse or the like).

Regards
        -Thorsten

-- 
Those who in quarrels interpose, must often wipe a bloody nose.
 
This message is digitally signed. To verify its integrity, download a copy
of GnuPG for your operating system from http://www.gnupg.org .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040706/
82130bee/attachment-0001.bin

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

Message: 14
Date: Tue, 06 Jul 2004 13:25:45 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: recent libalias changes
To: David Malone <dwmalone@maths.tcd.ie>
Cc: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Message-ID: <xzpvfh19y2u.fsf@dwp.des.no>
Content-Type: text/plain; charset=iso-8859-1

David Malone <dwmalone@maths.tcd.ie> writes:
> The bit of the function that the patch changes seems to only be
> accessing the data through char types, which the C standard says
> can alias any type.

the code I replaced has casts on the lvalue, which is not allowed.

>                     The while loop that is immediately above it
> looks risky though, as this function is probably called with a
> struct ip * somewhere.

yes, that's what I think may need rewriting.

DES
-- 
Dag-Erling Sm�rgrav - des@des.no

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

Message: 15
Date: Tue, 6 Jul 2004 13:35:18 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: Re: recent libalias changes
To: Dag-Erling Sm?rgrav <des@des.no>
Cc: current@freebsd.org
Message-ID: <20040706113518.GA56265@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii

On Tue, Jul 06, 2004 at 12:12:50PM +0200, Dag-Erling Sm?rgrav wrote:
> Divacky Roman <xdivac02@stud.fit.vutbr.cz> writes:
> > the patch works...
> >
> > pls commit
> 
> Done.  Could you please also test this one?  It fixes an aliasing
> violation in another checksum function in libalias (at least
> partially, I may have to rewrite the entire function).

with this patch applied it DOESNT work...

pls avoid commiting this

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

Message: 16
Date: Tue, 6 Jul 2004 12:48:18 +0100
From: David Malone <dwmalone@maths.tcd.ie>
Subject: Re: recent libalias changes
To: des@des.no
Cc: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Message-ID: <20040706114818.GA69128@walton.maths.tcd.ie>
Content-Type: text/plain; charset=us-ascii

On Tue, Jul 06, 2004 at 01:25:45PM +0200, des@des.no wrote:
> the code I replaced has casts on the lvalue, which is not allowed.

The cast seems to be in the expression leading to the lvalue, but
not on the lvalue itself. That is,

	((char *)p)[0] = 1;	/* cast in expression */
	(char)p[1] = 1;		/* cast in lvalue */

I think the former is permitted, though it may not always be wise.

> >                     The while loop that is immediately above it
> > looks risky though, as this function is probably called with a
> > struct ip * somewhere.
> 
> yes, that's what I think may need rewriting.

Ah, grand...

	David.

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

Message: 17
Date: Tue, 06 Jul 2004 13:48:06 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: recent libalias changes
To: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc: current@freebsd.org
Message-ID: <xzpr7rp9x1l.fsf@dwp.des.no>
Content-Type: text/plain; charset="iso-8859-1"

Divacky Roman <xdivac02@stud.fit.vutbr.cz> writes:
> On Tue, Jul 06, 2004 at 12:12:50PM +0200, Dag-Erling Sm?rgrav wrote:
> > Done.  Could you please also test this one?
> with this patch applied it DOESNT work...

OK, thanks.  How about this one?  It clears up a lot of the alignment
warnings on alpha; it also improves code legibility a little and
reduces code duplication.

DES
-- 
Dag-Erling Sm�rgrav - des@des.no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libalias.diff
Type: text/x-patch
Size: 15066 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040706/
7d3f0d24/libalias-0001.bin

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

Message: 18
Date: Mon, 5 Jul 2004 18:53:22 -0400
From: Mikhail Teterin <mi+kde@aldan.algebra.com>
Subject: unkillable process in physrd-sttae
To: current@FreeBSD.org
Message-ID: <200407051853.22521@aldan>
Content-Type: text/plain;  charset="us-ascii"

As I was playing a DVD, the picture stopped and everything seemingly
froze. I was able to login from another machine and look, what's
happening.

last pid: 61719;  load averages:  0.01,  0.21,  0.56    up 0+02:06:15 18:47:36

65 processes:  1 running, 64 sleeping
CPU states:  1.6% user,  0.0% nice,  0.8% system,  4.3% interrupt, 93.4% idle

Mem: 56M Active, 106M Inact, 52M Wired, 17M Cache, 34M Buf, 6672K Free
Swap: 2322M Total, 42M Used, 2280M Free, 1% Inuse

  PID USERNAME PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
61428 mi        -8    0 28708K 21856K physrd   0:39  0.00%  0.00% mplayer
  622 mi        76    0   148M 15456K select   0:36  0.00%  0.00% XFree86
  693 mi        76    0 54848K 17136K select   0:22  0.00%  0.00% kdeinit
  647 mi        76    0 25764K 12460K select   0:18  0.00%  0.00% kdeinit
[...]

As with the NFS-stuck processes of the bad old days, the physrd-stuck
process is unkillable (including SIGKILL, of course) and will require me
to reboot the whole machine...

This is on -current from July 3rd.

	-mi


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

Message: 19
Date: Mon,  5 Jul 2004 18:44:43 -0500
From: Edwin Culp <eculp@encontacto.net>
Subject: Can't seem to build a release.
To: current@freebsd.org
Message-ID: <20040705184443.8fgo4ssoksw0o4ww@mail.encontacto.net>
Content-Type: text/plain; charset="UTF-8"

For a while now, my releases haven't finished.  After the error
md0 exists as does mdctl.  I have no idea what is causing the
error.  Any help would be appreciated.

+ [ x != x ]
+ mdconfig -a -t vnode -f /R/stage/mfsroot/mfsroot
+ MDDEVICE=md0
+ [ ! -c /dev/md0 ]
+ echo No /dev/md0
No /dev/md0
+ exit 1
*** Error code 1

Stop in /usr/src/release.
+ umount /dev
*** Error code 1

Stop in /usr/src/release.

TIA,

ed

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

_______________________________________________
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 68, Issue 4
**********************************************


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


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