darcs

Issue 1154 hGetLine problem with posthook in push

Title hGetLine problem with posthook in push
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, marcot, thorkilnaur, twb
Assigned To
Topics

Created on 2008-10-22.13:58:20 by marcot, last changed 2009-08-30.14:50:44 by kowey.

Messages
msg6389 (view) Author: marcot Date: 2008-10-22.13:58:17
marcot@quindinho:~/Modelos/html/temp/pagina$ cat _darcs/prefs/defaults
apply posthook make
marcot@quindinho:~/Modelos/html/temp/pagina$ cd ../../pagina/
marcot@quindinho:~/Modelos/html/pagina$ darcs push
Pushing to "../temp/pagina"...
Wed Oct 22 11:47:59 BRST 2008  Marco T\c3\balio Gontijo e Silva <marcot@riseup.net>
  * modules
Shall I push this patch? (1/1)  [ynWvpxdaqjk], or ? for help: y
Finished applying...

The following command is set to execute.
Execute the following command now (yes or no)?
make
darcs: <stdin>: hGetLine: end of file

yes
^CwithSignalsHandled: Interrupted!
withSignalsHandled: Interrupted!
msg7199 (view) Author: twb Date: 2009-01-26.02:11:11
Hi Marco,

On Wed, Oct 22, 2008 at 02:58:17AM +0000, Marco Túlio Gontijo e Silva wrote:
> marcot@quindinho:~/Modelos/html/temp/pagina$ cat _darcs/prefs/defaults
> apply posthook make
> marcot@quindinho:~/Modelos/html/temp/pagina$ cd ../../pagina/
> marcot@quindinho:~/Modelos/html/pagina$ darcs push
> Pushing to "../temp/pagina"...
> Wed Oct 22 11:47:59 BRST 2008  Marco T\c3\balio Gontijo e Silva <marcot@riseup.net>
>   * modules
> Shall I push this patch? (1/1)  [ynWvpxdaqjk], or ? for help: y
> Finished applying...
> 
> The following command is set to execute.
> Execute the following command now (yes or no)?
> make
> darcs: <stdin>: hGetLine: end of file
> 
> yes
> ^CwithSignalsHandled: Interrupted!
> withSignalsHandled: Interrupted!

I suspect this might have the same underlying cause as issue1118,
which you also reported.  Just now I asked for some more information
on that issue; the same questions apply here:

    This is not a behaviour I have encountered before.
    Can you reproduce it reliably?  What does darcs --version say?
    Can you reproduce this problem with the current release, Darcs
    2.2.0?  Can you reproduce the problem in a new, empty repo?

Furthermore, in a shell where this problem occurs, please run the
following commands and provide us with their output:

    echo $TERM
    tput longname; echo
    uname -a
    locale

Also please tell us the name and version of the terminal emulator
(e.g. rxvt-unicode 9.05) and shell (e.g. bash 3.2.39) you're using.

Did you compile Darcs yourself?  Do you know if your darcs was
compiled with haskeline support?  If so, do you know what version of
haskeline was used?
msg7214 (view) Author: marcot Date: 2009-01-26.15:20:14
Hello Trent,

Em Seg, 2009-01-26 às 02:11 +0000, Trent Buck escreveu:
> Trent Buck <trentbuck@gmail.com> added the comment:
> On Wed, Oct 22, 2008 at 02:58:17AM +0000, Marco Túlio Gontijo e Silva wrote:
> > marcot@quindinho:~/Modelos/html/temp/pagina$ cat _darcs/prefs/defaults
> > apply posthook make
> > marcot@quindinho:~/Modelos/html/temp/pagina$ cd ../../pagina/
> > marcot@quindinho:~/Modelos/html/pagina$ darcs push
> > Pushing to "../temp/pagina"...
> > Wed Oct 22 11:47:59 BRST 2008  Marco T\c3\balio Gontijo e Silva <marcot@riseup.net>
> >   * modules
> > Shall I push this patch? (1/1)  [ynWvpxdaqjk], or ? for help: y
> > Finished applying...
> > 
> > The following command is set to execute.
> > Execute the following command now (yes or no)?
> > make
> > darcs: <stdin>: hGetLine: end of file
> > 
> > yes
> > ^CwithSignalsHandled: Interrupted!
> > withSignalsHandled: Interrupted!
> 
>     Can you reproduce it reliably?

Yes.

> What does darcs --version say?

marcot@quindinho:~/Modelos/darcs/b/a$ darcs --version
2.2.0 (release)

>     Can you reproduce this problem with the current release, Darcs
>     2.2.0?

Yes.

>   Can you reproduce the problem in a new, empty repo?

No.  I've tried in both darcs-2 and old formats, but the problem seems
to be with something specific from this repository.

> Furthermore, in a shell where this problem occurs, please run the
> following commands and provide us with their output:
> 
>     echo $TERM

screen

>     tput longname; echo

VT 100/ANSI X3.64 virtual terminal

>     uname -a

Linux quindinho 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009
x86_64 GNU/Linux

>     locale

LANG=pt_BR.UTF-8
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC="pt_BR.UTF-8"
LC_TIME="pt_BR.UTF-8"
LC_COLLATE="pt_BR.UTF-8"
LC_MONETARY="pt_BR.UTF-8"
LC_MESSAGES="pt_BR.UTF-8"
LC_PAPER="pt_BR.UTF-8"
LC_NAME="pt_BR.UTF-8"
LC_ADDRESS="pt_BR.UTF-8"
LC_TELEPHONE="pt_BR.UTF-8"
LC_MEASUREMENT="pt_BR.UTF-8"
LC_IDENTIFICATION="pt_BR.UTF-8"
LC_ALL=

> Also please tell us the name and version of the terminal emulator
> (e.g. rxvt-unicode 9.05) and shell (e.g. bash 3.2.39) you're using.

GNOME gnome-terminal 2.22.3
GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu)

> Did you compile Darcs yourself?

No, I'm using darcs from debian sid.

> Do you know if your darcs was
> compiled with haskeline support?

haskeline is not in Debian, so I think it wasn't.

Greetings.
msg8529 (view) Author: kowey Date: 2009-08-27.08:53:30
Hi Marco,

Can you still reproduce this with Darcs 2.3 (which requires Haskeline)?
msg8600 (view) Author: marcot Date: 2009-08-30.14:33:21
Hi Eric.

(...)
> Can you still reproduce this with Darcs 2.3 (which requires Haskeline)?

No, I can't.  It's not asking for a confirmation before running posthook.

Greetings.

(...)
msg8602 (view) Author: kowey Date: 2009-08-30.14:50:43
I'm going to guess this is resolved by virtue of haskeline usage.  Thanks!
History
Date User Action Args
2008-10-22 13:58:20marcotcreate
2009-01-26 02:11:13twbsetstatus: unread -> unknown
nosy: + twb
messages: + msg7199
2009-01-26 02:11:29twbsetstatus: unknown -> waiting-for
nosy: kowey, dagit, simon, twb, marcot, thorkilnaur, dmitry.kurochkin
2009-01-26 15:20:19marcotsetnosy: kowey, dagit, simon, twb, marcot, thorkilnaur, dmitry.kurochkin
messages: + msg7214
2009-08-10 23:48:43adminsetnosy: - dagit
2009-08-25 17:31:41adminsetnosy: + darcs-devel, - simon
2009-08-27 08:53:32koweysetnosy: kowey, darcs-devel, twb, marcot, thorkilnaur, dmitry.kurochkin
messages: + msg8529
assignedto: marcot
2009-08-27 14:34:05adminsetnosy: kowey, darcs-devel, twb, marcot, thorkilnaur, dmitry.kurochkin
2009-08-30 14:33:23marcotsetnosy: kowey, darcs-devel, twb, marcot, thorkilnaur, dmitry.kurochkin
messages: + msg8600
2009-08-30 14:50:44koweysetstatus: waiting-for -> resolved
nosy: kowey, darcs-devel, twb, marcot, thorkilnaur, dmitry.kurochkin
messages: + msg8602
assignedto: marcot ->