monotone

Issue 192: mtn sync crashes on Cygwin (after recent Cygwin update)

Reported by Stephen Leake, Oct 5, 2011

Steps to reproduce the problem:
-------------------------------

1. update Cygwin (see attached log from cygcheck -s)
2. mtn sync <whatever>

Expected result:
----------------
normal sync

Actual results:
---------------
mtn aborts.

There have been many updates in Cygwin recently, mostly compiling 
with gcc 4.5. So I recompiled Cygwin from source (from monotone 
checkout of head: 06738e14fae8309878e62cab9ea191be8fe891ce); that 
gives the same error. 

Running that in gdb gives a stack trace:

#0  bug_signal (signo=6) at ../monotone/src/unix/main.cc:70
#1  0x610295c9 in _cygtls::call_signal_handler () from 
c:\bin\cygwin1.dll
#2  0x610c93c0 in sig_send () from c:\bin\cygwin1.dll
#3  0x610c6057 in _pinfo::kill () from c:\bin\cygwin1.dll
#4  0x610c643c in kill0 () from c:\bin\cygwin1.dll
#5  0x610c6551 in kill () from c:\bin\cygwin1.dll
#6  0x610c658c in raise () from c:\bin\cygwin1.dll
#7  0x610c65f5 in abort () from c:\bin\cygwin1.dll
#8  0x610f52dd in dlfree () from c:\bin\cygwin1.dll
#9  0x00679f9f in Botan::Library_State::option ()
#10 0x0067a1bd in Botan::Library_State::get_allocator ()
#11 0x0065670a in Botan::Allocator::get ()
#12 0x00677253 in Botan::Filter::Filter ()
#13 0x006539ba in Botan::Hash_Filter::Hash_Filter ()
#14 0x004acd4f in _fu1851___ZNSs4_Rep20_S_empty_rep_storageE () at 
../monotone/src/transforms.cc:62
#15 0x04b43430 in ?? ()
#16 0x0022bce8 in ?? ()
#17 0x00000000 in ?? ()

So the problem is in the Botan library

sleake@GSOD200817651L$ cygcheck -c botan
Cygwin Package Information
Package              Version        Status
botan                1.8.2-1        OK


Output of `mtn version --full`:
-------------------------------
monotone 1.0.90 (base revision: unknown)
Running on          : CYGWIN_NT-5.1 1.7.9(0.237/5/3) 2011-03-29 
10:10 i686
C++ compiler        : GNU C++ version 4.5.3
C++ standard library: GNU libstdc++ version 20110428
Boost version       : 1_46_1
SQLite version      : 3.7.3 (compiled against 3.7.3)
Lua version         : Lua 5.1
PCRE version        : 8.13 2011-08-16 (compiled against 8.13)
Botan version       : 1.8.2 (compiled against 1.8.2)
Changes since base revision:
unknown

Comment 1 by Stephen Leake, Oct 7, 2011

recompiling libbotan.a from the botan Cygwin source package, and 
then relinking mtn.exe with that, fixes the crash.

So we need a new upload of botan to Cygwin.

Comment 2 by Stephen Leake, Oct 7, 2011

I filed bug 156 at http:bugs.randombit.org.

Can we upload a new build of botan 1.8.2 (similar to a Debian 
binNMU), or does Jack Lloyd have to do that?

Comment 3 by Lapo Luchini, Oct 8, 2011

I am maintainer of both botan and monotone packages on Cygwin and 
will re-roll both of those shortly.
Status: Started

Comment 4 by Lapo Luchini, Oct 9, 2011

New packages on their way to cygwin mirrors.
Status: Fixed

Created: 13 years 2 months ago by Stephen Leake

Updated: 13 years 2 months ago

Status: Fixed

Followed by: 1 person

Labels:
Type:Incorrect Behavior
Priority:Medium

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status