This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITP] rebase


Max,

On Sun, Feb 09, 2003 at 12:41:43AM -0000, Max Bowsher wrote:
> > On Sat, Feb 08, 2003 at 04:47:51PM -0000, Max Bowsher wrote:
> >> got a segfault whilst processing:
> >> /usr/lib/perl5/5.6.1/cygwin-multi/auto/SDBM_File/SDBM_File.dll
> >> from Cygwin perl-5.6.1-2.
> 
> Jason Tishler wrote:
> > I get the following:
> >
> >     $ rebase -v -b 0x68000000 SDBM_File.dll
> >     ReBaseImage (SDBM_File.dll) failed with last error = 6
> 
> I played around a bit - turns out that if the dll is readonly, the
> error you give above occurs. If the dll is writeable, rebase
> segfaults.

Thanks for the above.  Sorry, for giving up so quickly, but I was
bathing my kids... :,)

I can reproduce it now.  I will debug and try to fix it myself.  If I'm
unsuccessful, then I will ask Ralf for help.

All,

The above has raised two issues:

1. How should rebase deal with the above.  Should it temporarily chmod
to writable, rebase, and reset to the original permissions?  Or, should
it just fail on read-only files?

2. Should rebase quit on the first failure or just skip problematic
files?  Note that my original version was greedy.  I changed it to stop
on the first failure when I switched to using Ralf's imagehelper
library.  There are pros and cons to both policies.  I'm not sure which
one is best.

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]