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

 
 

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

Submitter:  dean gaudet <dgaudet>
Submitted:  Sat 02 Jul 2005 09:36:59 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  bescoto
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Implemented as described earlier

Benedict Escoto <bescoto>
Group administrator
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>
Group administrator
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>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-10 bescoto StatusNone Fixed
    Open/ClosedOpen Closed
2005-08-07 bescoto Assigned toNone bescoto
2005-07-02 dgaudet Carbon-Copy- Added janjitsevenselaar<j.j.venselaar@phys.uu.nl>

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code