Hi,

I am using a 3.20b4 snapshot and experiencing problems with htmerge when memory usage exceeds 4Gb. I compiled on Solaris 8 with gcc -m64. To make it compile for 64 bit, I had to change a line in include/htconfig.h from:

/* Define this to the type of the third argument of getpeername() */
#define GETPEERNAME_LENGTH_T size_t

to:

/* Define this to the type of the third argument of getpeername() */
#define GETPEERNAME_LENGTH_T socklen_t

However when my databases get really big, htmerge causes a segmentation error while tyring to do a memcpy. I think I've isolated the function causing the segmentation error to

void String::copy_data_from(const char *s, int len, int dest_offset)
{
    memcpy(Data + dest_offset, s, len);
}

in htlib/String.cc (passing in an int for a size_t)

I'm wondering now whether the code is 64 bit clean. Could anyone help ? I'm at a loss as to how to debug this.

Thanks

zen



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to