Re: misc/177624: Swapcontext can get compiled incorrectly

2013-04-17 Thread David Xu
The following reply was made to PR kern/177624; it has been noted by GNATS. From: David Xu To: Bruce Evans Cc: freebsd-gnats-sub...@freebsd.org, freebsd-bugs@FreeBSD.org, Brian Demsky Subject: Re: misc/177624: Swapcontext can get compiled incorrectly Date: Wed, 17 Apr 2013 17:38:02

Re: misc/177624: Swapcontext can get compiled incorrectly

2013-04-17 Thread David Xu
I have worked out a patch: http://people.freebsd.org/~davidxu/patch/libc_swapcontext.diff ___ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebs

Re: misc/177624: Swapcontext can get compiled incorrectly

2013-04-06 Thread David Xu
The following reply was made to PR misc/177624; it has been noted by GNATS. From: David Xu To: Bruce Evans Cc: Brian Demsky , freebsd-bugs@FreeBSD.org, freebsd-gnats-sub...@freebsd.org Subject: Re: misc/177624: Swapcontext can get compiled incorrectly Date: Sun, 07 Apr 2013 10:41:29

Re: misc/177624: Swapcontext can get compiled incorrectly

2013-04-06 Thread David Xu
On 2013/04/05 03:38, Bruce Evans wrote: On Thu, 4 Apr 2013, Brian Demsky wrote: On Apr 4, 2013, at 8:16 AM, Bruce Evans wrote: On Fri, 5 Apr 2013, Bruce Evans wrote: On Thu, 4 Apr 2013, Brian Demsky wrote: Description: Here is the code for swap context: int swapcontext(ucontext_t *oucp,

Re: kern/175674: sem_open() should use O_EXLOCK with open() instead of a separate flock() call

2013-02-03 Thread David Xu
The following reply was made to PR kern/175674; it has been noted by GNATS. From: David Xu To: Jilles Tjoelker Cc: Giorgos Keramidas , Jukka Ukkonen , freebsd-gnats-sub...@freebsd.org Subject: Re: kern/175674: sem_open() should use O_EXLOCK with open() instead of a separate flock

Re: kern/175674: sem_open() should use O_EXLOCK with open() instead of a separate flock() call

2013-02-03 Thread David Xu
The following reply was made to PR kern/175674; it has been noted by GNATS. From: David Xu To: Giorgos Keramidas Cc: Jukka Ukkonen , freebsd-gnats-sub...@freebsd.org, jil...@freebsd.org Subject: Re: kern/175674: sem_open() should use O_EXLOCK with open() instead of a separate flock

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-29 Thread David Xu
On 2012/7/29 17:16, Bruce Evans wrote: On Sun, 29 Jul 2012, David Xu wrote: I have just written two quick-and-dirty test cases: http://people.freebsd.org/~davidxu/patch/fifopipe/fifo_selectread.c http://people.freebsd.org/~davidxu/patch/fifopipe/fifo_selectwrite.c without patch for kernel

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-28 Thread David Xu
On 2012/7/29 9:17, David Xu wrote: On 2012/7/29 9:02, Garrett Cooper wrote: On Sat, Jul 28, 2012 at 5:24 PM, David Xu wrote: On 2012/7/28 5:50, Garrett Cooper wrote: The following reply was made to PR kern/170203; it has been noted by GNATS. From: Garrett Cooper To: bug-follo

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-28 Thread David Xu
On 2012/7/29 9:02, Garrett Cooper wrote: On Sat, Jul 28, 2012 at 5:24 PM, David Xu wrote: On 2012/7/28 5:50, Garrett Cooper wrote: The following reply was made to PR kern/170203; it has been noted by GNATS. From: Garrett Cooper To: bug-follo...@freebsd.org, yaneg...@gmail.com Cc: Subject

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-28 Thread David Xu
On 2012/7/28 5:50, Garrett Cooper wrote: The following reply was made to PR kern/170203; it has been noted by GNATS. From: Garrett Cooper To: bug-follo...@freebsd.org, yaneg...@gmail.com Cc: Subject: Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo Date: Fri, 27

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread David Xu
The following reply was made to PR kern/170203; it has been noted by GNATS. From: David Xu To: Bruce Evans Cc: davi...@freebsd.org, Garrett Cooper , freebsd-bugs@FreeBSD.org, freebsd-gnats-sub...@freebsd.org Subject: Re: kern/170203: [kern] piped dd's don't behave sanely wh

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread David Xu
On 2012/7/27 19:08, Bruce Evans wrote: On Fri, 27 Jul 2012, David Xu wrote: On 2012/7/27 10:07, Bruce Evans wrote: I think it's working almost as expected. Large blocks give non-atomic I/O, so the reader sees small blocks, then EOF when it gets ahead of the writer. This always ha

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread David Xu
The following reply was made to PR kern/170203; it has been noted by GNATS. From: David Xu To: Bruce Evans Cc: Garrett Cooper , freebsd-bugs@FreeBSD.org, freebsd-gnats-sub...@freebsd.org Subject: Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo

2012-07-27 Thread David Xu
On 2012/7/27 10:07, Bruce Evans wrote: On Thu, 26 Jul 2012, Garrett Cooper wrote: Description: Creating a fifo and then dd'ing across the fifo using /dev/zero doesn't seem to yield the behavior one would expect to have; dd should either exit thanks to SIGPIPE being sent or the count being co

Re: kern/166706: [libc] sem_open(3) incorrectly returns the already opened named semaphore handle when O_EXCL is used [regression]

2012-04-08 Thread David Xu
The following reply was made to PR kern/166706; it has been noted by GNATS. From: David Xu To: Jilles Tjoelker Cc: bug-follo...@freebsd.org, davi...@freebsd.org, igaztan...@gmail.com Subject: Re: kern/166706: [libc] sem_open(3) incorrectly returns the already opened named semaphore handle when

Re: bin/164947: tee looses data when writing to non-blocking file descriptors

2012-02-10 Thread David Xu
The following reply was made to PR bin/164947; it has been noted by GNATS. From: David Xu To: Diomidis Spinellis Cc: freebsd-gnats-sub...@freebsd.org Subject: Re: bin/164947: tee looses data when writing to non-blocking file descriptors Date: Sat, 11 Feb 2012 11:21:38 +0800 On 2012/2/10 15

Re: kern/161043: [psm] PS/2 mouse does not work in 9.0-BETA2/-CURRENT [regression]

2012-02-01 Thread David Xu
his one. Seems like I have the same problem with Dell T7400 workstation at work. http://www.freebsd.org/cgi/query-pr.cgi?pr=161043 It is a long term bug, my machine has a USB keyboard, and a PS/2 mouse, the PS/2 mouse never works, although Windows works fine. Regards, David

Re: kern/156567: [kqueue] [patch] Add EV_CLEAR to AIO events in kqueue

2012-01-31 Thread David Xu
On 2012/1/31 16:10, David Xu wrote: The following reply was made to PR kern/156567; it has been noted by GNATS. From: David Xu To: igor Cc: bug-follo...@freebsd.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/156567: [kqueue] [patch] Add EV_CLEAR to AIO events in kqueue Date: Tue, 31 Jan 2012

Re: kern/156567: [kqueue] [patch] Add EV_CLEAR to AIO events in kqueue

2012-01-31 Thread David Xu
The following reply was made to PR kern/156567; it has been noted by GNATS. From: David Xu To: igor Cc: bug-follo...@freebsd.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/156567: [kqueue] [patch] Add EV_CLEAR to AIO events in kqueue Date: Tue, 31 Jan 2012 16:04:06 +0800 On 2012/1/31 4:47

Re: kern/156567: [kqueue] [patch] Add EV_CLEAR to AIO events in kqueue

2012-01-31 Thread David Xu
applications. The only reason I created it is because I wanted to use it for myself and it worked flawlessly. Please, anyone? It is better to allocate a member field from struct sigevent for kevent flags, we have spare fields available there, please check the union _sigev_un. Regards, David Xu

Re: kern/131597: [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64

2010-09-14 Thread David Xu
Bruce Evans wrote: On Tue, 14 Sep 2010, Tijl Coosemans wrote: On Thu, Jul 08, 2010 at 11:29:50AM -0400, John Baldwin wrote: > ...longjmp(3) isn't safe in a signal context... POSIX says it's supposed to be safe: "As it bypasses the usual function call and return mechanisms, longjmp() shall

Re: kern/131597: [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64

2010-09-13 Thread David Xu
The following reply was made to PR kern/131597; it has been noted by GNATS. From: David Xu To: John Baldwin Cc: Kostik Belousov , bug-follo...@freebsd.org, guilla...@morinfr.org, k...@freebsd.org Subject: Re: kern/131597: [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64 Date: Tue

Re: kern/150138: [patch] signal sent to stopped, traced process not immediately handled on continue

2010-08-30 Thread David Xu
The following reply was made to PR kern/150138; it has been noted by GNATS. From: David Xu To: Dan McNulty Cc: freebsd-gnats-sub...@freebsd.org Subject: Re: kern/150138: [patch] signal sent to stopped, traced process not immediately handled on continue Date: Tue, 31 Aug 2010 13:27:01 +

Re: kern/150138: [patch] signal sent to stopped, traced process not immediately handled on continue

2010-08-30 Thread David Xu
The following reply was made to PR kern/150138; it has been noted by GNATS. From: David Xu To: Dan McNulty Cc: freebsd-gnats-sub...@freebsd.org Subject: Re: kern/150138: [patch] signal sent to stopped, traced process not immediately handled on continue Date: Tue, 31 Aug 2010 13:00:28 +

Re: kern/150138: [patch] signal sent to stopped, traced process not immediately handled on continue

2010-08-30 Thread David Xu
The following reply was made to PR kern/150138; it has been noted by GNATS. From: David Xu To: Dan McNulty Cc: freebsd-gnats-sub...@freebsd.org Subject: Re: kern/150138: [patch] signal sent to stopped, traced process not immediately handled on continue Date: Tue, 31 Aug 2010 11:09:32

Re: kern/131597: [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64

2010-08-29 Thread David Xu
The following reply was made to PR kern/131597; it has been noted by GNATS. From: David Xu To: bug-follo...@freebsd.org, guilla...@morinfr.org Cc: Kostik Belousov , John Baldwin Subject: Re: kern/131597: [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64 Date: Sun, 29 Aug 2010 14:55:32

Re: kern/131597: [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64

2010-08-27 Thread David Xu
The following reply was made to PR kern/131597; it has been noted by GNATS. From: David Xu To: John Baldwin Cc: Kostik Belousov , bug-follo...@freebsd.org, guilla...@morinfr.org, k...@freebsd.org Subject: Re: kern/131597: [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64 Date: Fri

Re: threads/149366: pthread_cleanup_pop never runs the configured routine

2010-08-12 Thread David Xu
ttp://www.freebsd.org/cgi/query-pr.cgi?pr=149366 ___ You should link your program with libpthread, otherwise, it won't work. Regards, David Xu ___ freebsd-bugs@freebsd.org mailing list http://lists.fre