Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Herbert Xu
On Mon, Sep 09, 2002 at 12:04:14AM -0400, Daniel Jacobowitz wrote: > On Mon, Sep 09, 2002 at 12:36:51PM +1000, Herbert Xu wrote: > > > I was referring to that patch in the previous message. In the misaligned > > case, the code will always do two 8-byte loads if the dest misalignment > > is greate

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Daniel Jacobowitz
On Mon, Sep 09, 2002 at 12:36:51PM +1000, Herbert Xu wrote: > On Sun, Sep 08, 2002 at 10:02:48PM -0400, Daniel Jacobowitz wrote: > > > > > OK, I see what you mean now. However, there is still another SEGV > > > to fix. The first jump to u_head could cause two loads even if you're > > > just copy

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Herbert Xu
On Sun, Sep 08, 2002 at 10:02:48PM -0400, Daniel Jacobowitz wrote: > > > OK, I see what you mean now. However, there is still another SEGV > > to fix. The first jump to u_head could cause two loads even if you're > > just copying one byte. > > I think I forgot to CC you - did you see my followu

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Daniel Jacobowitz
On Mon, Sep 09, 2002 at 08:39:56AM +1000, Herbert Xu wrote: > On Mon, Sep 09, 2002 at 07:34:31AM +1000, herbert wrote: > > On Sun, Sep 08, 2002 at 11:57:36AM -0400, Daniel Jacobowitz wrote: > > > > > > This patch is incorrect, unfortunately: > > > > > > {standard input}:182: Error: symbol `xdr_b

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Herbert Xu
On Mon, Sep 09, 2002 at 07:34:31AM +1000, herbert wrote: > On Sun, Sep 08, 2002 at 11:57:36AM -0400, Daniel Jacobowitz wrote: > > > > This patch is incorrect, unfortunately: > > > > {standard input}:182: Error: symbol `xdr_bp_whoambp_wh' is already defined > > {standard input}:187: Error: symbol

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Herbert Xu
On Mon, Sep 09, 2002 at 07:34:31AM +1000, herbert wrote: > On Sun, Sep 08, 2002 at 11:57:36AM -0400, Daniel Jacobowitz wrote: > > > > This patch is incorrect, unfortunately: > > > > {standard input}:182: Error: symbol `xdr_bp_whoambp_wh' is already defined > > {standard input}:187: Error: symbol

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Adam Heath
On Sun, 8 Sep 2002, Herbert Xu wrote: > On Wed, Sep 04, 2002 at 06:33:18PM +, Adam Heath wrote: > > package: libc6.1 > > version: 2.2.5-11.1 > > severity: serious > > > > On lully, I have a repeatable segfault being caused by strncpy(which calls > > __stxncpy). > > Here is a patch which shoul

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Herbert Xu
On Sun, Sep 08, 2002 at 11:57:36AM -0400, Daniel Jacobowitz wrote: > > This patch is incorrect, unfortunately: > > {standard input}:182: Error: symbol `xdr_bp_whoambp_wh' is already defined > {standard input}:187: Error: symbol `$xdr_bp_whoambp_wh..ng' is already defined This error doesn't seem

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Daniel Jacobowitz
On Sun, Sep 08, 2002 at 07:38:53PM +1000, Herbert Xu wrote: > On Wed, Sep 04, 2002 at 06:33:18PM +, Adam Heath wrote: > > package: libc6.1 > > version: 2.2.5-11.1 > > severity: serious > > > > On lully, I have a repeatable segfault being caused by strncpy(which calls > > __stxncpy). > > Here

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Jeff Bailey
On Sun, Sep 08, 2002 at 07:38:53PM +1000, Herbert Xu wrote: > Here is a patch which should solve this problem. It still needs to > be analysed for scheduling. Can you please write a suitable ChangeLog entry for this so I can submit it upstream for you? I don't read enough assembly to actually

Bug#159633: strncpy on alpha/libc broken

2002-09-08 Thread Herbert Xu
On Wed, Sep 04, 2002 at 06:33:18PM +, Adam Heath wrote: > package: libc6.1 > version: 2.2.5-11.1 > severity: serious > > On lully, I have a repeatable segfault being caused by strncpy(which calls > __stxncpy). Here is a patch which should solve this problem. It still needs to be analysed fo

Bug#159633: strncpy on alpha/libc broken

2002-09-04 Thread Adam Heath
package: libc6.1 version: 2.2.5-11.1 severity: serious On lully, I have a repeatable segfault being caused by strncpy(which calls __stxncpy). dpkg calls strncpy to copy data from it's mmap'd buffer, into a tmp var, for moving around. mmap on alpha aligns the end of the data segment with a page