You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Julian Foad <ju...@btopenworld.com> on 2005/07/25 02:13:10 UTC
Re: [PATCH] Issue 1628: use a custom crash handler on Windows
Branko Čibej wrote:
> Servers usually run unattended.
Well, how about using this crash-reporting DLL in just the client-side programs
for now? That would avoid the need for a substantial amount of additional
design and coding right now, and get us more than half the benefit (clients
being more numerous, more complex, and more varied in their usage patterns than
servers).
The server-side requirements can be considered later.
- Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] Issue 1628: use a custom crash handler on Windows
Posted by Jonathan Gilbert <o2...@sneakemail.com>.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] Issue 1628: use a custom crash handler on Windows
Posted by SteveKing <st...@gmx.ch>.
> > I've also uploaded the updated crash report dll to
> > http://tortoisesvn.tigris.org/files/documents/406/24329/CrashRpt.dll
> > There's a slight problem: that binary was compiled with VS.NET, so it
> > relies on the 7.1 C-Runtime. And since svn is compiled with VC6, you
> > might want to recompile the dll with VC6 too to avoid additional
> > dependencies.
>
> I suppose we should do that... Looking at the DLL API, I assume that if
> a version of this DLL that's compiled with VS.NET happens to be on the
> system, and gets picked up by the VC6-compiled command-line tools, the
> different runtimes shouldn't be a problem. Is that correct?
If the runtime the dll requires are present, then it wont' be a problem at
all.
But of course if only the VS.NET built dll is present without the
corresponding runtimes, then the dll won't load (but svn will still work,
just as if the dll wasn't present).
> All right. The part that really doesn't fit our style are the TypeNames
> and variableNames that we'd write as type_names and variable_names. I'll
> fix those when I commit.
Ah, ok. Next time, please just tell what's wrong the first time ;)
Stefan
--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] Issue 1628: use a custom crash handler on Windows
Posted by Branko Čibej <br...@xbc.nu>.
SteveKing wrote:
> Ok, I guess this will be my last try:
Thanks for persevering, Stefan. I'll commit this in the next few days,
as soon as I find the time to test it.
> I've also uploaded the updated crash report dll to
> http://tortoisesvn.tigris.org/files/documents/406/24329/CrashRpt.dll
> There's a slight problem: that binary was compiled with VS.NET, so it
> relies on the 7.1 C-Runtime. And since svn is compiled with VC6, you
> might want to recompile the dll with VC6 too to avoid additional
> dependencies.
I suppose we should do that... Looking at the DLL API, I assume that if
a version of this DLL that's compiled with VS.NET happens to be on the
system, and gets picked up by the VC6-compiled command-line tools, the
different runtimes shouldn't be a problem. Is that correct?
> If you guys find some styling issues with the patch, please just
> correct them yourself (or at least specify *what* and *where* the
> style doesn't suit your needs, I'm tired of trying to find out what
> exactly you don't like) - fixing the style of this patch would take
> you no more than 5 minutes, but writing a mail about that, me reading
> it, trying to find out what's wrong this time, fix it, write another
> mail, attach the patch again, ... takes much more time.
All right. The part that really doesn't fit our style are the TypeNames
and variableNames that we'd write as type_names and variable_names. I'll
fix those when I commit.
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] Issue 1628: use a custom crash handler on Windows
Posted by SteveKing <st...@gmx.ch>.
Ok, I guess this will be my last try:
I've changed the crash reporting dll so it can save the zipped report
automatically and print a message with the location to where it was
saved to stderr.
Also, I've added a function to enable/disable the UI part after the dll
was loaded. That way, the svn client could enable the UI part later on
when the command line params are read (I don't know enough to add such a
param myself, I have to leave that to someone else).
By default, all svn apps now use the crash reporter in console mode,
i.e. without popping up a dialog but just saving the report and print
info about it to the console stderr.
I've also uploaded the updated crash report dll to
http://tortoisesvn.tigris.org/files/documents/406/24329/CrashRpt.dll
There's a slight problem: that binary was compiled with VS.NET, so it
relies on the 7.1 C-Runtime. And since svn is compiled with VC6, you
might want to recompile the dll with VC6 too to avoid additional
dependencies.
If you guys find some styling issues with the patch, please just correct
them yourself (or at least specify *what* and *where* the style doesn't
suit your needs, I'm tired of trying to find out what exactly you don't
like) - fixing the style of this patch would take you no more than 5
minutes, but writing a mail about that, me reading it, trying to find
out what's wrong this time, fix it, write another mail, attach the patch
again, ... takes much more time.
Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.tigris.org
Re: [PATCH] Issue 1628: use a custom crash handler on Windows
Posted by Michael Sweet <mi...@easysw.com>.
Branko Čibej wrote:
> ...
> We'd also need a small change in "almost every" command-line tool so
> that it calls the new function in addition to svn_cmline_init. (Or
> perhaps insted of, if the new function is a wrapper for the old one?
> Maybe we could even do it by revving to svn_cmdline_init2?).
Rev the svn_cmdline_init() API with a new "use crash reporter"
argument, have svn_cmdline_init() call svn_cmdline_init2() asking
for the crash reporter, and update svnserve to use the new API and
ask not to have the crash reporter?
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Document Software http://www.easysw.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] Issue 1628: use a custom crash handler on Windows
Posted by Branko Čibej <br...@xbc.nu>.
Julian Foad wrote:
> Branko Čibej wrote:
>
>> Servers usually run unattended.
>
>
> Well, how about using this crash-reporting DLL in just the client-side
> programs for now? That would avoid the need for a substantial amount
> of additional design and coding right now, and get us more than half
> the benefit (clients being more numerous, more complex, and more
> varied in their usage patterns than servers).
>
> The server-side requirements can be considered later.
I had thought of that. Doing so would of course mean that the patch has
to change a bit, since putting the loading into svn_cmdline_init would
no longer be appropriate (that function is called by all command-line
tools, including svnserve). That requires a new public API to set up
crash reporting, and that API would need at least a parameter (not used
yet) throught which you'd tell it if you want online (i.e.,
dialogue-based) reporting of offline (file-based) reporting.
We'd also need a small change in "almost every" command-line tool so
that it calls the new function in addition to svn_cmline_init. (Or
perhaps insted of, if the new function is a wrapper for the old one?
Maybe we could even do it by revving to svn_cmdline_init2?).
I'd find this solution acceptable.
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org