Re: [RFC][CFT] GEOM direct dispatch and fine-grained CAM locking

2013-09-04 Thread Ryan Stone
On Wed, Sep 4, 2013 at 8:45 AM, Nathan Whitehorn nwhiteh...@freebsd.org wrote: Could you describe what this macro is supposed to do so that we can do the porting work? -Nathan #define GET_STACK_USAGE(total, used) GET_STACK_USAGE sets the variable passed in total to the total amount of stack

Re: 10.0-BETA1 i386 on VirtualBox

2013-10-24 Thread Ryan Stone
On Thu, Oct 24, 2013 at 11:16 AM, Maciej Milewski m...@dat.pl wrote: I've encountered problems with installing FreeBSD-10.0-BETA1 i386 under VirtualBox. The problem is with setting/changing root password during install process. After entering password twice there is: passwd: pam_chauthtok():

Re: Freebsd-10.0-CURRENT problem in the bottom half

2013-10-31 Thread Ryan Stone
On Thu, Oct 31, 2013 at 10:00 AM, Venkata Duvvuru venkatkumar.duvv...@emulex.com wrote: 34.98% [303027] trash_ctor @ /boot/kernel/kernel This indicates that you have INVARIANTS enabled (and you're probably running GENERIC, so you also have WITNESS). These will debugging features will

Re: libc++ vs. libstdc++ usage in the ports tree (was: Re: Are clang++ and libc++ compatible?)

2013-11-13 Thread Ryan Stone
On Wed, Nov 13, 2013 at 11:31 AM, Marcus von Appen m...@freebsd.org wrote: This brings up another point into which I am running with the previously discussed blender issue. Let's assume port A_defcompiler does not specify a compiler and c++ lib, it will default to libc++ and clang++ on 10.x

Re: make release: doesn't work for me, getting

2011-06-24 Thread Ryan Stone
On Fri, Jun 24, 2011 at 8:47 AM, Kim Culhan w8hd...@gmail.com wrote: Attempting to run: make release resulted in 'looping' until a kernel compile directory sys/amd64/compile/* was removed. Maybe I missed something in the docs. -kim ___

Re: em problem in virtualbox since the weekend

2011-07-20 Thread Ryan Stone
On Wed, Jul 20, 2011 at 8:33 AM, Bernhard Froehlich de...@freebsd.org wrote: I think it would be good if someone could try to reproduce that with emulators/virtualbox-ose-legacy which is 3.2.12 to get some vbox dev look into the problem again. I saw the problem this weekend on a Linux host

panic: sched_priority: invalid priority 3990 on r225375

2011-09-04 Thread Ryan Stone
I've gotten the following panic twice while running recent builds of head under VirtualBox(FreeBSD 8.2 host). panic: sched_priority: invalid priority 3990: nice 0, ticks 1227873280 ftick 175669871 ltick 175679894 tick pri 3818 The crashes happened while I was running a stress test of the network

[PATCH] dtrace crashes when trying to trace fbt probes without CTF data

2011-09-25 Thread Ryan Stone
I get a panic if I try to run a dtrace script that uses an fbt probe from a module that does not have CTF data. The polling patch resolves the issue for me: Index: sys/cddl/dev/fbt/fbt.c === --- sys/cddl/dev/fbt/fbt.c (revision

Re: r225827 ia64 make buildworld: sendmail: cc1: warnings being treated as errors

2011-09-28 Thread Ryan Stone
On Wed, Sep 28, 2011 at 11:21 AM, Anton Shterenlikht me...@bristol.ac.uk wrote: cc -O2 -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB -DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS

Re: 9 hangs with idletick = 0

2011-10-12 Thread Ryan Stone
2011/10/12 Dag-Erling Smørgrav d...@des.no: BTW, can I suggest appropriating one of KTR_SPARE[234] and renaming it to KTR_CLOCK?  I don't see why cxgb should use them, let alone all three; it should use KTR_DEV or KTR_NET instead. KTR_MALLOC has been completely unused in the tree since at

Re: config(8) does not add post-processing for source file with compile-with command in sys/conf/files

2011-10-19 Thread Ryan Stone
I have run into the same issue recently. I have been testing the following patch(on 8.2-RELEASE) and it seems to have worked for me: --- mkmakefile.c 11:09:30.0 -0400 +++ mkmakefile.c2011-10-06 11:13:31.0 -0400 @@ -742,15 +742,16 @@ break;

smp_rendezvous runs with interrupts and preemption enabled on unicore systems

2011-10-28 Thread Ryan Stone
I'm seeing issues on a unicore systems running a derivative of FreeBSD 8.2-RELEASE if something calls mem_range_attr_set. It turns out that the root cause is a bug in smp_rendezvous_cpus. The first part of smp_rendezvous_cpus attempts to short-circuit the non-SMP case(note that smp_started is

Re: smp_rendezvous runs with interrupts and preemption enabled on unicore systems

2011-11-01 Thread Ryan Stone
On Mon, Oct 31, 2011 at 7:43 PM, Attilio Rao atti...@freebsd.org wrote: I'm not entirely sure why this exactly breaks though (do you see that happening with a random rendezvous callback or it is always the same?), because that just becames a simple function calling on cpu0, even if I think

[PATCH] Fix types of arguments to dtrace syscall return probes

2011-11-05 Thread Ryan Stone
Currently if you try to use the args[] array passed to a syscall return probe, you get variables with the wrong type. This is because the systrace implementation is currently using the same function to provide the same argument types for both the entry and return probes, which is completely

[PATCH] Fix kernel panics when using dtrace fbt return probes on i386

2011-11-05 Thread Ryan Stone
I have a patch that fixes crash when using dtrace fbt return probes on i386. dtrace implements an fbt probe by overwriting a small part of the function when the probe is active. On i386, it writes an invalid opcode. dtrace has a hook into the invalid opcode fault handler that checks whether the

Re: [PATCH] Fix types of arguments to dtrace syscall return probes

2011-11-08 Thread Ryan Stone
On Mon, Nov 7, 2011 at 9:16 AM, Paul Ambrose ambrose...@gmail.com wrote: diff --git a/sys/kern/kern_ctf.c b/sys/kern/kern_ctf.c index bdff96e..2737860 100644 --- a/sys/kern/kern_ctf.c +++ b/sys/kern/kern_ctf.c @@ -90,7 +90,7 @@ link_elf_ctf_get(linker_file_t lf, linker_ctf_t *lc)         *

Re: config(8) does not add post-processing for source file with compile-with command in sys/conf/files

2011-11-08 Thread Ryan Stone
On Tue, Oct 18, 2011 at 10:21 PM, Paul Ambrose ambrose...@gmail.com wrote: when I digged the a PR(bin/160275), I found in_proto.c and if_ethersubr.c ( see sys/conf/files ) does not get ${NORMAL_CTFCONVERT} post-processing in Makefile (/usr/obj/usr/src/sys/MYKERNEL/Makefile) generated by

[PATCH] Allow syslogd to accept multiple configuration files

2011-11-09 Thread Ryan Stone
I've written the following patch to allow syslogd to accept multiple configuration files by passing multiple -f options. One use case for this is to specify a common configuration file that applies across multiple machines along with a second config file specific to the local machine. The patch

Re: [PATCH] Allow syslogd to accept multiple configuration files

2011-11-09 Thread Ryan Stone
On Wed, Nov 9, 2011 at 11:01 AM, Brooks Davis bro...@freebsd.org wrote: Do you happen to know why the code calloc's the struct filed's with 1's? I didn't do any investigation but that's seems like an odd pattern. calloc(1, sizeof(*f)) returns an array of 1 element of size sizeof(*f) that is

Re: ixgbe and fast interrupts

2011-11-17 Thread Ryan Stone
The comments haven't kept up with the code. You are correct; in the legacy interrupt case ixgbe is using an ITHREAD, not a fast handler. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To

Re: iSCSI initiator: iscontrol cannot be stopped or killed

2011-11-23 Thread Ryan Stone
On Wed, Nov 23, 2011 at 7:26 PM, Mark Martinec mark.martinec+free...@ijs.si wrote: Problem: the iscontrol process starts normally and establishes a session and brings up a device, but it cannot be stopped. It does not react to a HUP signal, and neither to KILL. If you can get it back into this

Re: array index of '-16' indexes before the beginning of the array

2011-11-27 Thread Ryan Stone
On Sun, Nov 27, 2011 at 6:42 PM, Andriy Gapon a...@freebsd.org wrote: Looks like clang has found a real issue here: /usr/src/sys/x86/x86/local_apic.c:311:2: warning: array index of '-16' indexes before the beginning of the array [-Warray-bounds]        

Re: array index of '-16' indexes before the beginning of the array

2011-11-27 Thread Ryan Stone
On Sun, Nov 27, 2011 at 6:42 PM, Andriy Gapon a...@freebsd.org wrote: Looks like clang has found a real issue here: /usr/src/sys/x86/x86/local_apic.c:311:2: warning: array index of '-16' indexes before the beginning of the array [-Warray-bounds]        

Re: WITHOUT_PROFILE=yes by default

2011-12-02 Thread Ryan Stone
On Fri, Dec 2, 2011 at 10:56 AM, Lyndon Nerenberg lyn...@orthanc.ca wrote: If you choose not to profile your code, that's entirely your choice. Breaking this functionality for everyone else who *does* make the effort to profile their code is a non-starter. Using profiled libs and gprof to

Re: WITHOUT_PROFILE=yes by default

2011-12-02 Thread Ryan Stone
On Fri, Dec 2, 2011 at 12:07 PM, Lyndon Nerenberg lyn...@orthanc.ca wrote: No, these days 'obsolete' seems to mean 'it does not have a sexy Flash-driven web GUI.' In this case, 'obsolete' means it's a difficult-to-use tool that requires recompiling your application, can't be used in production,

Re: buildworld c++ internal error

2012-08-19 Thread Ryan Stone
Is the system running out of memory? A message will go to dmesg if so. On Aug 19, 2012 10:01 AM, Randy Bush ra...@psg.com wrote: soekris 5501, been running fbsd since 6.x csup Aug 18 22:38 gmt rm -rf /usr/obj buildworld c++ -O2 -pipe -DIPFIREWALL_NAT -march=pentium

Re: buildworld c++ internal error

2012-08-19 Thread Ryan Stone
Are you running make with -j something? You may have to scale that back, unfortunately. C++ compilers seem to be much more memory hungry than straight C compilers. On Aug 19, 2012 10:39 AM, Randy Bush ra...@psg.com wrote: Is the system running out of memory? A message will go to dmesg if so.

machdep.hyperthreading_allowed does not affect SMT cores

2012-09-04 Thread Ryan Stone
I have a Intel Sandy Bridge system that reports that it has SMT cores instead of HTT(under a derivative of FreeBSD 8.2). I'll admit that I don't at all understand the distinction between the two -- I thought that HTT was just Intel's name for SMT. In any case, is there any reason that

Re: build failure r240669

2012-09-18 Thread Ryan Stone
On Tue, Sep 18, 2012 at 3:17 PM, Kim Culhan w8hd...@gmail.com wrote: Ah right sorry about that, take 2: clang -pg -O2 -pipe -DTERMIOS -DANSI_SOURCE -I/usr/src/secure/lib/libcrypto/../../../crypto/openssl -I/ usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto

Re: ZFS TRIM support committed to HEAD.

2012-09-24 Thread Ryan Stone
On Mon, Sep 24, 2012 at 1:03 PM, Steven Hartland kill...@multiplay.co.uk wrote: Ahh yes looks like ATA supports BIO_DELETE via ATA_CFA_ERASE if the drive announces ATA_PROTO_CFA, so I can only assume this is failing when it shouldn't. Might be nice to investigate what's happening and fix, but

Re: sysctl kern.ipc.somaxconn limit 65535 why?

2012-10-03 Thread Ryan Stone
Or the TTL of TCP connections might be too high for the volume of connections received. Someone else on net@ reported that changing this value to more aggressively reap sockets improved performance greatly (at the cost that more connections potentially needing to be reestablished and/or

Re: Dtrace: Module is no longer loaded

2012-10-29 Thread Ryan Stone
You didn't build with WITH_CTF=1 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Supermicro X8DT6 crashes in bootloader after r239066

2012-10-30 Thread Ryan Stone
I have a X8DT6 that appears to crash in the bootloader from HEAD. I say appears to because it's difficult to really see what the problem is; the system reboots pretty much as soon as it enters the FreeBSD boot process. The problem affects PXE booting, booting from ZFS on GPT on a SATA drive and

Re: Dynamic Ticks/HZ

2012-11-05 Thread Ryan Stone
On Mon, Nov 5, 2012 at 4:40 AM, Joe Holden li...@rewt.org.uk wrote: doh, running kernel wasn't as GENERIC as I thought it was, looks like device polling not only breaks dynamic ticks but also reduces rx ability significantly, exactly 150,000 pps per 1000hz on igb versus 650,000 without Is

Re: sysutils/lsof Author Question (for CLANG)....

2012-11-07 Thread Ryan Stone
It exists in a header that is generated by the FreeBSD build process. On Wed, Nov 7, 2012 at 10:27 AM, Larry Rosenman l...@lerctr.org wrote: Vic Abell (the lsof author) asked me the following: In adjusting for clang I have come up with an unanswered question. Where is the VOP_UNLOCK() macro

pw keeps setting /etc/group to 0600

2012-11-17 Thread Ryan Stone
/etc/group is supposed to be world-reable, right? Tools like groups or pw groupshow certainly seem to think so: [rstone@rstone-server ~]groups 1001 920 [rstone@rstone-server ~]ls -l /etc/group -rw--- 1 root 0 482 Nov 14 21:02 /etc/group [rstone@rstone-server ~]sudo chmod a+r /etc/group

Re: pw keeps setting /etc/group to 0600

2012-11-17 Thread Ryan Stone
Wow. So apparently things are even more broken than I though. Let's play, What group am I in? root@group-testing:/usr/home/rstone # cd /tmp root@group-testing:/tmp # pw groupadd testing root@group-testing:/tmp # mkdir testdir root@group-testing:/tmp # chown root:testing testdir/

Spurious witness warning when destroying spin mtx

2012-11-23 Thread Ryan Stone
Today I saw a spurious witness warning for acquiring duplicate lock of same type. The root cause is that when running mtx_destroy on a spinlock that is held by the current thread, mtx_destroy calls spinlock_exit() before calling WITNESS_UNLOCK, which opens up a window in which the CPU can be

Re: Spurious witness warning when destroying spin mtx

2012-11-24 Thread Ryan Stone
On Sat, Nov 24, 2012 at 10:01 AM, Attilio Rao atti...@freebsd.org wrote: I seriously wonder why right now we don't assume the lock is unheld. There are likely historically reasons for that, but I would like to know which one are those and eventually fix them out. FWIK, all the other locking

Re: Distributed audit daemon committed (was: svn commit: r243752 - in head: etc etc/defaults etc/mail etc/mtree etc/rc.d share/man/man4 usr.sbin usr.sbin/auditdistd (fwd))

2012-12-02 Thread Ryan Stone
On Sun, Dec 2, 2012 at 8:05 AM, Robert Watson rwat...@freebsd.org wrote: Just to follow up on this thread, since the question has come up a number of times. mergemaser -p should be run prior to installworld always, but most of the time will do very little. One of its responsibilities is to

Re: kernel module parallel build?

2012-12-04 Thread Ryan Stone
On Tue, Dec 4, 2012 at 10:52 AM, John Baldwin j...@freebsd.org wrote: Hmm, I certainly see the module directories being built in parallel. Some of the make jobs may not be as obvious since links are silent (no output unless there is an error). This is definitely not the behaviour that I

Re: problems with threads/destructors in -current with llvm/clang

2012-12-10 Thread Ryan Stone
On Mon, Dec 10, 2012 at 12:35 PM, Mark Atkinson atkin...@gmail.com wrote: vex x86-IR: unhandled instruction bytes: 0xF 0xB 0x90 0x90 ==33074== valgrind: Unrecognised instruction at address 0x380434e9. ==33074==at 0x380434E9: ??? (in /usr/local/lib/valgrind/memcheck-x86-freebsd) ==33074==

Re: Failed to initialize dwarf?

2012-12-18 Thread Ryan Stone
I have a checkout of r244047. I did a make kernel-toolchain followed by a make buildkernel and I see this warning. On Tue, Dec 18, 2012 at 7:15 AM, Dimitry Andric d...@freebsd.org wrote: On 2012-12-18 12:30, George Mitchell wrote: I checked out head Sunday and now my attempt at building a

Re: Failed to initialize dwarf?

2012-12-18 Thread Ryan Stone
On Tue, Dec 18, 2012 at 4:56 PM, Dimitry Andric d...@freebsd.org wrote: The question is if ctfconvert (and dependencies) are rebuilt when you do kernel-toolchain. Can you figure out if it runs ctfconvert from base? Aha! You're right: [rstone@rstone-laptop vll]make buildenv Entering world

Re: sysctl -a causes kernel trap 12

2013-01-07 Thread Ryan Stone
Have you tried dropping into the debugger by setting debug.debugger_on_panic=1 instead of trying to generate a core? You might have some success generating at least a backtrace. Also it would be worth setting kern.stop_scheduler_on_panic=0 to see if that lets you generate a core.

Re: sysctl -a causes kernel trap 12

2013-01-07 Thread Ryan Stone
On Mon, Jan 7, 2013 at 7:21 PM, Ryan Stone ryst...@gmail.com wrote: Have you tried dropping into the debugger by setting debug.debugger_on_panic=1 instead of trying to generate a core? You might have some success generating at least a backtrace. Sigh, reading comprehension fail on my part

Re: segfault from php/freebsd/dtrace

2011-12-31 Thread Ryan Stone
On Thu, Dec 29, 2011 at 12:37 PM, Oleg Ginzburg olev...@olevole.ru wrote: Hi maillist, I try to use dtrace + php/dtrace on the freebsd. In certain cases ive get Segmentation fault and don't understand what of subsystem has a problem. Yes, Userland DTrace is unfortunately still very

Re: Can't umount a formerly mounted drive

2012-02-03 Thread Ryan Stone
On Fri, Feb 3, 2012 at 9:34 AM, Derek Tattersall d...@mebtel.net wrote: I have two drives in a x86-64 machine.  Drive ada2 has current on it, and drive ada1 has 9-stable on it.  At some point, while running current, I mounted the /home partition from stable to copy some files and re-ipled the

Re: gstat don't work after update to 10.0-CURRENT

2012-04-21 Thread Ryan Stone
I believe that this was fixed in r234107 http://svn.freebsd.org/changeset/base/234107 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to

Re: panic: incorrect npmc count

2012-05-09 Thread Ryan Stone
On Wed, May 9, 2012 at 1:16 AM, Peter Jeremy pe...@rulingia.com wrote: [This may be a duplicate because I forgot to update my subscription  after changing address but I've also corrected a typo] (I've copied fabient@ because r233628 appears to have been the last commit in this area). I've

Re: Is it Dtrace broken on HEAD?

2012-05-30 Thread Ryan Stone
On Wed, May 30, 2012 at 6:37 AM, Marcelo Araujo araujobsdp...@gmail.com wrote: Hello fellows, Is it Dtrace broken on HEAD? root@controllerB:/sys/amd64/conf # dtrace -n 'syscall::open*:entry { printf(%s %s,execname,copyinstr(arg0)); }' *dtrace: invalid probe specifier syscall::open*:entry {

Re: dtrace: identifier redefined: cpu

2012-06-07 Thread Ryan Stone
On Thu, Jun 7, 2012 at 4:02 AM, Andriy Gapon a...@freebsd.org wrote: I am getting the following error while trying to execute any DTrace script on a freshly updated CURRENT system (both kernel and world). Example: dtrace: failed to compile script sysctl_kern_proc.d:

Re: ctfconvert again

2013-01-15 Thread Ryan Stone
I am working on a fix for this. It shouldn't be too bad, as we already build a cross-ctfconvert in certain cases. I just need to get some machines running older FreeBSD versions to test on to confirm that the fix worked. Should be able to test tomorrow, assuming that I am finally able to coerce

ULE can leak TDQ_LOCK() if statclock() called outside of critical_enter()

2013-01-18 Thread Ryan Stone
I have been experiencing occasional deadlocks on FreeBSD 8.2 systems using the ULE scheduler. The root cause in every case has been that ULE's TDQ_LOCK for cpu 0 is owned by a thread that is not running. I have been investigating the issue, and I believe that I see the issue. The problem occurs

Re: ULE can leak TDQ_LOCK() if statclock() called outside of critical_enter()

2013-01-20 Thread Ryan Stone
On Sun, Jan 20, 2013 at 5:29 AM, Konstantin Belousov kostik...@gmail.comwrote: Both atrtc and hpet register the interrupt handler as the filter. The filters call loop enters critical section around handlers, see kern_intr.c:intr_event_handle(). At least on HEAD it is so, and I see the same

Re: installworld fails

2013-01-22 Thread Ryan Stone
On Tue, Jan 22, 2013 at 1:24 AM, Jason Evans jas...@freebsd.org wrote: On Jan 21, 2013, at 10:13 PM, AN a...@neu.net wrote: FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #29 r245766: Tue Jan 22 00:49:02 EST 2013 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64 Is anyone seeing

Why don't we check for preemption when we unlend priority?

2013-01-25 Thread Ryan Stone
I'm having a problem where userland threads are running with a loaned (via mutex priority propagation) priority even after they have released the mutex. This is causing the low-priority userland thread to starve high-priority interrupt threads. One scenario is(which I am seeing on FreeBSD 8.2,

Re: svn2git exporter is down on git-beta.freebsd.org?

2013-01-27 Thread Ryan Stone
On Sun, Jan 27, 2013 at 11:46 AM, Oliver Pinter oliver.p...@gmail.comwrote: Hi All! The svn2git exporter is down on git-beta.freebsd.org? The last update was 2013.jan.15. The mirror on GitHub is still getting updates: https://github.com/freebsd/freebsd The git beta was supposed to be

Re: Kernel panic on FreeBSD 10.0-CURRENT amd64

2013-03-05 Thread Ryan Stone
On Tue, Mar 5, 2013 at 8:03 PM, Adam Kirchhoff adam.k.kirchh...@gmail.comwrote: I have recently installed 9.1 and attempted to upgrade to 10.0-CURRENT yesterday (largely in an effort to test the new radeon DRM code). Unfortunately, upon rebooting, I am left at kernel debugger prompt: cd0 at

[PATCH] Add support for Exar XR17V358IV to puc(4)

2013-03-13 Thread Ryan Stone
I've also included it inline in case anybody wants to review it: commit d1da80b5c90b3ae5a44db165cb032e9e86d2c804 Author: Ryan Stone rst...@freebsd.org Date: Mon Mar 11 17:02:13 2013 -0400 add support for Exar XR17V358IV 8-port serial port to puc(4) diff --git a/sys/dev/puc/pucdata.c b/sys

Re: DTrace gone quiet?

2013-04-16 Thread Ryan Stone
On Tue, Apr 16, 2013 at 3:57 PM, Navdeep Parhar n...@freebsd.org wrote: I just upgraded my kernel and userspace to head (r249552) and I notice that DTrace doesn't output anything until I hit ctrl-c. All previous hits on the probe appear lost. For example: # dtrace -n

buildworld of HEAD failing under 8.1-RELEASE

2013-05-02 Thread Ryan Stone
I am getting the following error when trying to build HEAD on an 8.1-RELEASE build machine (i386 jail on an amd64 host): === lib/clang/libllvmanalysis (all) /usr/d2/users/rstone/git/svos/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/ConstantFolding.cpp: In function 'llvm::Constant*

Re: buildworld of HEAD failing under 8.1-RELEASE

2013-05-02 Thread Ryan Stone
On Thu, May 2, 2013 at 7:02 PM, Dimitry Andric d...@freebsd.org wrote: On May 2, 2013, at 20:28, Ryan Stone ryst...@gmail.com wrote: I am getting the following error when trying to build HEAD on an 8.1-RELEASE build machine (i386 jail on an amd64 host): === lib/clang/libllvmanalysis (all

Incorrect comparison of ticks in deadlkres

2013-05-25 Thread Ryan Stone
Currently deadlkres performs the following comparison when trying to check for threads that have been blocked on a mutex or sleeping on an sx lock: if (TD_ON_LOCK(td) ticks td-td_blktick) { /* check for deadlock...*/ The test against ticks is incorrect. It results in deadlkres only

Re: Incorrect comparison of ticks in deadlkres

2013-05-28 Thread Ryan Stone
On Tue, May 28, 2013 at 5:29 PM, Ian Lepore i...@freebsd.org wrote: ticks is defined as a signed integer but conceptually it is unsigned -- it increments from 0 to UINT_MAX (not INT_MAX) then rolls over. If td-td_blktick is captured while ticks = UINT_MAX and later ticks has rolled over and

Re: Handle kernel module crashes

2013-06-10 Thread Ryan Stone
On Mon, Jun 10, 2013 at 10:18 AM, Florent Peterschmitt flor...@peterschmitt.fr wrote: Hello, It's not a problem but a question, and it's quite simple: How does FreeBSD handle crash from a single kernel module ? If the module internally crashes, does the entire system does too or FreeBSD

Re: USB Keyboard not worked on current (r251681)

2013-06-17 Thread Ryan Stone
I am able to reproduce this on a Supermicro X8-something that I have. A git bisect took me down a strange path into a /projects branch. It is possible the branch got a bad merge from -CURRENT at one point; I'm still trying to narrow down where things went wrong (and even whether the branch is

Re: buildworld failed on HEAD

2013-07-19 Thread Ryan Stone
On Fri, Jul 19, 2013 at 1:35 PM, Sam Fourman Jr. sfour...@gmail.com wrote: /usr/src/usr.bin/calendar/parsedata.c:989:17: error: null character ignored [-Werror,-Wnull-character] i = strtol (s, Try looking at this file in vi. It sounds like a '\0' has somehow been inserted

Re: Boot fails @r264070

2014-04-03 Thread Ryan Stone
Can somebody please confirm whether setting hw.pci.enable_ari=0 in the loader fixes the issue or not. That will help me to figure out if the issue is with ARI or if I have somehow broken PCI enumeration in general (I suspect the later). ___

Re: svn commits r264007-264011: disks missing

2014-04-03 Thread Ryan Stone
This is fixed in r264091. Apologies for the breakage; it seems to mostly effect legacy PCI devices and my testing was on PCIe-only systems. Thanks to everyone who reported the issue and provided verbose dmesgs; that really helped me to understand the problem.

Re: cannot build 9.2 from an 11-current host

2014-04-03 Thread Ryan Stone
On Thu, Apr 3, 2014 at 9:09 PM, Benjamin Kaduk ka...@mit.edu wrote: Hi all, I've got a build machine that does package builds of net/openafs for upstream OpenAFS, and is supposed to build packages for all supported FreeBSD versions (and a few unsupported ones, too). I've recently updated to

boot2 too large when built with BTX_SERIAL=yes

2014-04-26 Thread Ryan Stone
I've been seeing the following build failure on HEAD when I set BTX_SERIAL=yes in make.conf btxld -v -E 0x2000 -f bin -b /usr/obj/repos/users/rstone/freebsd/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin kernel: ver=1.02 size=6c0 load=9000 entry=9010 map=16M pgctl=1:1

Re: diskid documentation

2014-06-02 Thread Ryan Stone
On Mon, Jun 2, 2014 at 9:26 AM, Allan Jude allanj...@freebsd.org wrote: It also tends to sometimes hide the gpt label provider on me (not sure in which cases it does this, but it is annoying) This happens when something (e.g. zfs) happens to open the diskid provider instead of the gpt label.

Re: panic in deadlkres() on r267110

2014-06-06 Thread Ryan Stone
On Fri, Jun 6, 2014 at 10:12 AM, Glen Barber g...@freebsd.org wrote: Two machines in the cluster panic last night with the same backtrace. It is unclear yet exactly what was happening on the systems, but both are port building machines using ports-mgmt/tinderbox. Any ideas or information on

Re: panic in deadlkres() on r267110

2014-06-06 Thread Ryan Stone
On Fri, Jun 6, 2014 at 11:33 AM, Glen Barber g...@freebsd.org wrote: #4 0x8092fa39 in fork1 (td=0xf813ae7f4920, flags=20, pages=Cannot access memory at address 0x4 ) at /usr/src/sys/kern/kern_fork.c:268 This looks like a suspicious piece of code. Could something be causing

Re: In tree builds broken in lib/ncurses?

2014-06-14 Thread Ryan Stone
On Sat, Jun 14, 2014 at 9:30 PM, Steve Kargl s...@troutmask.apl.washington.edu wrote: Thanks for the pointer. The problem appears to be /usr/local/bin/ld. If I move it to ld.old and then symlink /usr/local/bin/ld to /usr/bin/ld, I can build math/lapack without a problem. I guess I'll poke

Re: tmpfs panic

2014-07-06 Thread Ryan Stone
On Sun, Jul 6, 2014 at 11:46 AM, Steve Wills swi...@freebsd.org wrote: I should have noted this system is running in bhyve. Also I'm told this panic may be related to the fact that the system is running in bhyve. Looking at it a little more closely: (kgdb) list *__mtx_lock_sleep+0xb1

Re: DEADLKRES crash

2014-08-18 Thread Ryan Stone
On Mon, Aug 18, 2014 at 11:21 AM, Larry Rosenman l...@lerctr.org wrote: I got the following: borg.lerctr.org dumped core - see /var/crash/vmcore.8 Mon Aug 18 07:30:42 CDT 2014 FreeBSD borg.lerctr.org 11.0-CURRENT FreeBSD 11.0-CURRENT #63 r269784M: Sun Aug 10 12:33:07 CDT 2014

Re: Profiling code execution on amd64?

2011-01-13 Thread Ryan Stone
I would suggest using hwpmc for profiling: # kldload hwpmc # pmcstat -S unhalted-cycles -O /tmp/samples.out ../penetration # pmcstat -R /tmp/samples.out -G /tmp/penetration.txt You can also get pmcstat to generate gprof-compatible output with -g, but I never use the mode so I'm really not sure

Re: Ethernet Drivers: Question on Sending Received Packets to the FreeBSD Network Stack

2011-02-03 Thread Ryan Stone
On Thu, Feb 3, 2011 at 2:48 PM, Julian Elischer jul...@freebsd.org wrote: I had never considered passing a set of packets, but after my initial scoffing thoughts I realized that it would actually be a very interesting thought experiment to see if the ability to do that would be advantageous in

Re: Process timing issue

2011-02-22 Thread Ryan Stone
To debug weird scheduling issues I find it helpful to start by looking at a schedgraph. schedgraph is a tool that can display a graphical representation of what the scheduler was doing over a small slice of time. The one downside is that you have to recompile your kernel to get the hooks that

Re: Fix softdep_request_cleanup difference w/ and w/o SOFTUPDATES

2011-03-28 Thread Ryan Stone
On Mon, Mar 28, 2011 at 6:19 AM, Aleksandr Rybalko r...@dlink.ua wrote: Hi, I found a difference of definition softdep_request_cleanup. when SOFTUPDATES undefined softdep_request_cleanup take only two arguments. Patch to fix this: Index: sys/ufs/ffs/ffs_softdep.c

sched_4bsd startup crash trying to run a bound thread on an AP that hasn't started

2011-04-04 Thread Ryan Stone
I'm running into a bootup crash under sched_4bsd on HEAD. The crash happens when I have a thread bound to a single CPU that isn't the BSP, and that thread is scheduled. If the AP that the thread is bound hasn't been started up, kick_other_cpu() crashes because pcpu-pc_curthread is NULL for the

Re: sched_4bsd startup crash trying to run a bound thread on an AP that hasn't started

2011-04-06 Thread Ryan Stone
On Wed, Apr 6, 2011 at 8:36 AM, John Baldwin j...@freebsd.org wrote: Hummm.  Patching 4BSD to use the same route as ULE may be the best solution for now if that is easiest.  Alternatively, you could change 4BSD's sched_add() to not try to kick other CPUs until smp_started is true. At first I

[PATCH] Add syslogd option that suppresses hostname logging

2011-04-08 Thread Ryan Stone
I've written a short patch for syslogd that adds a -H option. Setting that option will prevent syslogd from logging the hostname with every log messages. If there are no objections I'm going to commit this in the next couple of days. Index: syslogd.c

[PATCH] Call _thr_check_init() from _pthread_once

2011-04-19 Thread Ryan Stone
In r179417 the implementation of pthread_once in libthr was changed from using a global pthread_mutex_t for synchronization to rolling its own synchronization mechanism. Unfortunately, this introduced a bug. Calling _pthread_mutex_lock implicitly ensured that _thr_check_init() had been called.

Re: [PATCH] Call _thr_check_init() from _pthread_once

2011-04-19 Thread Ryan Stone
On Tue, Apr 19, 2011 at 10:13 PM, David Xu davi...@freebsd.org wrote: Have you tested that current code causes segfault ? anyway, I can not reproduce it on my machne. Regards, David Xu Yes, I had an application where libstdc++ was calling pthread_once while constructing a static object. As

Re: [PATCH] Call _thr_check_init() from _pthread_once

2011-04-19 Thread Ryan Stone
On Tue, Apr 19, 2011 at 10:58 PM, David Xu davi...@freebsd.org wrote: But I don't touch curthread unless it is blocked by another thread. You do a THR_CLEANUP_PUSH(curthread, once_cancel_handler, once_control); before calling *init_routine. THR_CLEANUP_PUSH touches curthread-cleanup;

Re: sched_4bsd startup crash trying to run a bound thread on an AP that hasn't started

2011-04-20 Thread Ryan Stone
On Wed, Apr 6, 2011 at 2:29 PM, John Baldwin j...@freebsd.org wrote: I guess one other option would be something like this:                if (smp_started (td-td_pinned != 0 || td-td_flags TDF_BOUND ||                    ts-ts_flags TSF_AFFINITY)) {                        if

Re: sched_4bsd startup crash trying to run a bound thread on an AP that hasn't started

2011-04-26 Thread Ryan Stone
On Mon, Apr 25, 2011 at 2:58 PM, John Baldwin j...@freebsd.org wrote: Yes, I would perhaps tweak the comment to reflect the full if statement though.  Maybe something like: /*  * If SMP is started and the thread is pinned or otherwise limited to  * a specific set of CPUs, queue the thread

Re: time doesn't work?

2010-02-12 Thread Ryan Stone
[garrc...@garrcoop-fbsd ~]$ time vim nose-plist-fix.diff # monkeyed around for a few seconds... real    0m5.753s user    0m0.047s sys     0m0.019s [garrc...@garrcoop-fbsd ~/ipcvs/freebsd/src]$ time -p vim # pattered around for a few more seconds... real 12.04 user 0.07 sys 0.03

Re: dev.bce.X.com_no_buffers increasing and packet loss

2010-03-09 Thread Ryan Stone
What's the traffic look like?  Jumbo, standard, short frames?  Any good ideas on profiling the code?  I haven't figured out how to use the CPU TSC but there is a free running timer on the device that might be usable to calculate where the driver's time is spent. Dave In my experience hwpmc

Re: dev.bce.X.com_no_buffers increasing and packet loss

2010-03-09 Thread Ryan Stone
trash_ctor and trash_dtor? You're running with INVARIANTS. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: newfs_msdos and DVD-RAM

2010-03-29 Thread Ryan Stone
BTW, why can't gdb find any variables? They are just stack variables whose address is easy to find. ... #14 0x8042f24e in bread (vp=Variable vp is not available. ) at /usr/src/sys/kern/vfs_bio.c:748 ... and isn't vp a variable? Maybe the bad default -O2 is destroying

Re: pmap_extract question

2010-03-30 Thread Ryan Stone
Assuming that you're using the right pmap(it looks like you are, but it depends on the thread context in which you're running), that will only work if the userland application has touched the page and faulted it in. If it's never tried to access the page it will never be mapped into the process's

HEAD can't bring up APs on Intel LC5528(Jasper Forest)

2010-05-18 Thread Ryan Stone
I'm trying to bring up a new board based on Intel's Jasper Forest x86 processor. I can boot a kernel without SMP without any problems, but FreeBSD is not able to start up the Application Processors if I enable SMP. The error message that I get is: AP #2 (PHY# 2) failed! panic y/n? [y] This was

Re: HEAD can't bring up APs on Intel LC5528(Jasper Forest)

2010-05-18 Thread Ryan Stone
amd64 exhibits the same problem, except that it's not even polite and panics without even asking. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to

Re: HEAD can't bring up APs on Intel LC5528(Jasper Forest)

2010-05-19 Thread Ryan Stone
I've also tried a 6.1-derived kernel. I doubt that it was fixed for 8.0-RELEASE and then broken again on HEAD, but I'll check and be sure. My guess is that the problem is with the BIOS. We loaned our reference board to our BIOS vendor for development purposes and the BIOS they left on it is

Re: HEAD can't bring up APs on Intel LC5528(Jasper Forest)

2010-05-21 Thread Ryan Stone
Just wanted to give everybody some closure on this issue: Through the magic of a JTAG debugger, I was able to identify that the problem was an infinite loop in the BIOS's SMI handler. I'm not sure why this didn't effect Linux -- perhaps it brought up the APs before the SMI came in. In any case,

Re: nvidia-driver 195.22 use horribly broken on amd64 between r206173 and

2010-05-26 Thread Ryan Stone
I'm by no means an expert in this area, but isn't removing the locking on free a bad thing? Looking at the code, it seems that vm_page_unwire() only requires the page to be locked if it is managed. As it was acquired by contigmalloc, the page should be unmanaged so that should be ok. I am

  1   2   >