bugrdiff-backup - Bugs: bug #13613, traceback likely from stuffing...

 
 

bug #13613: traceback likely from stuffing 64-bit time_t into 32-bit

Submitted by:  dean gaudet <dgaudet>
Submitted on:  Sat 02 Jul 2005 09:36:59 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Benedict Escoto <bescoto>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 10 Aug 2005 05:48:36 AM UTC, comment #2:

Implemented as described earlier

Benedict Escoto <bescoto>
Project AdministratorIn charge of this item.
Sun 07 Aug 2005 08:51:38 PM UTC, comment #1:

It seems that os.utime converts the given numbers into C longs. I don't think there is any easy way of making sure they will fit before we call utime. (int(modtime) may not do it, because Python now has a single integer type of arbitrary length I think.)

So I think we should just add try: clause that logs a warning if we get an overflow error.

Benedict Escoto <bescoto>
Project AdministratorIn charge of this item.
Sat 02 Jul 2005 09:36:59 PM UTC, original submission:

Sending back exception long int too large to convert to int of type
exceptions.OverflowError:

File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py", line
334,
in answer_request
result = apply(eval(request.function_string), argument_list)
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line 218, in
patch
ITR(diff.index, diff)
File "/usr/lib/python2.3/site-packages/rdiff_backup/rorpiter.py", line 279,
in
_call_
last_branch.fast_process(*args)
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line 476, in
fast_process
if self.patch_to_temp(rp, diff_rorp, tf):
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line 503, in
patch_to_temp
rpath.copy_attribs(diff_rorp, new)
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line 164, in
copy_attribs
if not rpin.isdev(): rpout.setmtime(rpin.getmtime())
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line 765, in
setmtime
self.conn.os.utime(self.path, (long(time.time()), modtime))

dean gaudet <dgaudet>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 10 Aug 2005 05:48:36 AM UTCbescotoStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Sun 07 Aug 2005 08:51:37 PM UTCbescotoAssigned toNone=>bescoto
Sat 02 Jul 2005 09:37:00 PM UTCdgaudetCarbon-Copy-=>Added janjitsevenselaar

Back to the top


Powered by Savane 3.1-cleanup1