[darcs-devel] [issue1230] darcs changes segfaults when piped to a pager

Christian Kellermann bugs at darcs.net
Fri Nov 14 18:57:31 UTC 2008


New submission from Christian Kellermann <Christian.Kellermann at nefkom.net>:

When I run darcs changes |less on OpenBSD darcs segfaults.

A test case is:

darcs init
echo 1 > 1
darcs add 1
darcs record -am 'a commit' 1
darcs changes | echo # this causes darcs writing to a pipe that's not existing

Another test case is the darcs repo. Important here is that the pager has to
block the pipe, because it filles more than one screen.

A gdb stacktrace looks like this:

gdb> bt
#0  0x1c3c7c42 in deRefStablePtrzh_fast ()
#1  0x00000000 in ?? ()

which is not really helpful...

----------
messages: 6677
nosy: ckeen, dagit, dmitry.kurochkin, kowey, simon, thorkilnaur
priority: bug
status: unread
title: darcs changes segfaults when piped to a pager

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1230>
__________________________________


More information about the darcs-devel mailing list