Thus said Richard Hipp on Mon, 15 Dec 2014 21:39:53 -0500:

> It should  clone fossil.  And that  appears to  work, both  before and
> after the modifications above.

I was able to reproduce the  problem (which only happened with autosync;
triggered by commit), and can confirm that your changes (as suggested by
Ashwin) have corrected it in my environment:

$ fossil ci -m test
Autosync:  http://tester@remote/oldfossil/oldfossil.cgi/new
redirect to https://remote/fossil/fossil.cgi/new
Round-trips: 1   Artifacts sent: 0  received: 0
Pull finished with 747 bytes sent, 3143 bytes received
New_Version: 080129766ef6a2bf92d7db3468df5b2975169355
Autosync:  http://tester@remote/oldfossil/oldfossil.cgi/new
redirect to https://remote/fossil/fossil.cgi/new
Segmentation fault (core dumped) 
$ gdb fossil fossil.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd5.4"...
Core was generated by `fossil'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libssl.so.19.0...done.
Loaded symbols for /usr/lib/libssl.so.19.0
Reading symbols from /usr/lib/libcrypto.so.22.0...done.
Loaded symbols for /usr/lib/libcrypto.so.22.0
Reading symbols from /usr/lib/libz.so.4.1...done.
Loaded symbols for /usr/lib/libz.so.4.1
Reading symbols from /usr/lib/libc.so.69.0...done.
Loaded symbols for /usr/lib/libc.so.69.0
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  SSL_shutdown (s=0x898fda00)
    at /usr/src/lib/libssl/ssl/../src/ssl/ssl_lib.c:1011
1011            if (s->handshake_func == 0)
(gdb) bt
#0  SSL_shutdown (s=0x898fda00)
    at /usr/src/lib/libssl/ssl/../src/ssl/ssl_lib.c:1011
#1  0x0bd5b665 in ssl_ctrl (b=0x83b13c00, cmd=1, num=0, ptr=0x0)
    at /usr/src/lib/libssl/ssl/../src/ssl/bio_ssl.c:310
#2  0x0dc2b72a in BIO_ctrl (b=0x83b13c00, cmd=1, larg=0, parg=0x0)
    at /usr/src/lib/libssl/crypto/../src/crypto/bio/bio_lib.c:370
#3  0x1c03575f in ssl_close () at http_ssl.c:174
#4  0x1c036a9c in transport_close (pUrlData=0x3c090b54) at http_transport.c:203
#5  0x1c035014 in http_exchange (pSend=0xcfbbfee8, pReply=0xcfbbfed0, 
    useLogin=1, maxRedirect=19) at http.c:346
#6  0x1c086854 in client_sync (syncFlags=3, configRcvMask=0, configSendMask=0)
    at xfer.c:1590
#7  0x1c068fe4 in autosync (flags=3) at sync.c:76
#8  0x1c06907b in autosync_loop (flags=3, nTries=1) at sync.c:87
#9  0x1c015a9c in commit_cmd () at checkin.c:2008
#10 0x1c045b0c in main (argc=4, argv=0xcfbc02a8) at main.c:760

And here it is with the changes:

$ /tmp/fossil ci -m httpimproved
Autosync:  http://tester@remote/oldfossil/oldfossil.cgi/new
redirect to https://remote/fossil/fossil.cgi/new
Round-trips: 1   Artifacts sent: 0  received: 0
Pull finished with 743 bytes sent, 811 bytes received
New_Version: 2db78e625f39fec00548de4e0a03d7beac672be8
Autosync:  http://tester@remote/oldfossil/oldfossil.cgi/new
redirect to https://remote/fossil/fossil.cgi/new
Round-trips: 1   Artifacts sent: 2  received: 0
Sync finished with 1241 bytes sent, 860 bytes received

Andy
-- 
TAI64 timestamp: 40000000548fba7a


_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to