On 18/03/14 13:55, Frederico Rodrigues Abraham wrote:
> Here is the stack trace:
While we're at it, and in addition to the strace output, please try
applying the attached patch. It should solve the actual crash, but I
suspect rsyncrypto will still fail (just more gracefully).

Just cd to the source directory, run "patch -p0 < /tmp/crash.patch", and
then run "make" again. Let me know whether it solves the crash.

Shachar
Index: autommap.h
===================================================================
--- autommap.h	(revision 595)
+++ autommap.h	(working copy)
@@ -30,13 +30,13 @@
     // Disable default copy constructor
     autommap( const autommap & );
 public:
-    autommap() : ptr(reinterpret_cast<void *>(-1)), size(0)
+    autommap() : ptr(reinterpret_cast<void *>(-1l)), size(0)
     {
     }
     autommap(void *start, size_t length, int prot, int flags, int fd, off_t offset ) : 
                 ptr(mmap(start, length, prot, flags, fd, offset)), size(length)
     {
-        if( ptr==reinterpret_cast<void *>(-1) ) {
+        if( ptr==reinterpret_cast<void *>(-1l) ) {
             size=0;
 #if defined(EXCEPT_CLASS)
             throw EXCEPT_CLASS("mmap failed", errno);
@@ -44,7 +44,7 @@
         }
     }
     // Map an entire file into memory
-    autommap(file_t fd, int prot) : ptr(reinterpret_cast<void *>(-1)), size(0)
+    autommap(file_t fd, int prot) : ptr(reinterpret_cast<void *>(-1l)), size(0)
     {
         struct stat filestat;
         if( fstat(fd, &filestat)==0 ) {
@@ -76,17 +76,17 @@
         clear();
         ptr=that.ptr;
         size=that.size;
-        that.ptr=reinterpret_cast<void *>(-1);
+        that.ptr=reinterpret_cast<void *>(-1l);
         that.size=0;
 
         return *this;
     }
     void clear()
     {
-        if( ptr!=reinterpret_cast<void *>(-1) ) {
+        if( ptr!=reinterpret_cast<void *>(-1l) ) {
             munmap( ptr, size );
         }
-        ptr=reinterpret_cast<void *>(-1);
+        ptr=reinterpret_cast<void *>(-1l);
         size=0;
     }
 
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Rsyncrypto-devel mailing list
Rsyncrypto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsyncrypto-devel

Reply via email to