Sign In
New User? Sign Up
exiv2
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can search the group for older messages.

Messages

  Messages Help
Advanced
.NET 2.0 AccessViolationException   Message List  
Reply | Forward Message #179 of 1513 |
Re: .NET 2.0 AccessViolationException

> The try throws an error that the catch doesn't catch (not sure what
> yet; it's hard to track things cross-language). I'll post a patch once
> we get this figured out.

Update, for anyone who might be interested:

This seems to be a straight invalid memory reference coming from
JpegBase::readMetadata(). We're trying to figure out where it's coming
from.





Sat Dec 3, 2005 10:31 am

maciek9billion
Offline Offline
Send Email Send Email

Forward
Message #179 of 1513 |
Expand Messages Author Sort by Date

My project, a .NET 2.0 app that uses exiv2 (via exivsimple), occasionally leads to exiv2 causing an AccessViolationException. Before we moved our app to 2.0,...
maciek9billion
Offline Send Email
Nov 28, 2005
12:17 am

... [...] ... ...might well be, this is a common problem in C and C++ programs. Unfortunately, they are difficult to find. To detect such bugs, I use Valgrind...
Andreas Huggel
zzzahu
Offline Send Email
Nov 28, 2005
3:56 pm

... don't cover ... Actually (amusingly enough), I'm the reporter on that ticket. We're using a sligthly customized version of the library that fixes this ...
maciek9billion
Offline Send Email
Nov 28, 2005
5:07 pm

Ok, so it looks like this bug pops up *more* often when we are using exiv2 to do read lots of pictures "at once". We are locking access to the library, due to...
maciek9billion
Offline Send Email
Nov 29, 2005
9:21 am

... No, exiv2 doesn't know about threads. -ahu....
Andreas Huggel
zzzahu
Offline Send Email
Nov 29, 2005
12:57 pm

... Ok, thanks. So I think this is due to exivsimple's lax file-access checking (we probably should have made it more robust before using it directly). If...
maciek9billion
Offline Send Email
Dec 3, 2005
1:08 am

... Update, for anyone who might be interested: This seems to be a straight invalid memory reference coming from JpegBase::readMetadata(). We're trying to...
maciek9billion
Offline Send Email
Dec 3, 2005
10:31 am

... I am... looks like you're almost there -ahu....
Andreas Huggel
zzzahu
Offline Send Email
Dec 3, 2005
1:43 pm

... Does this always happen with a specific image or sequence of images? -Brad...
Brad Schick
schickb
Online Now Send Email
Dec 3, 2005
7:00 pm

... I don't think so. At least three of my team members have been able to consistently reproduce this on totally different picture sets. I haven't tracked my...
maciek9billion
Offline Send Email
Dec 4, 2005
12:20 am

... I've checked, and it happens on various images. I've tracked it down to this: int scanned = sscanf(buf, format, &t.hour, &t.minute, &t.second, &plusMinus,...
maciek9billion
Offline Send Email
Dec 4, 2005
9:49 am

Another update: a member of my team tried ripping out all of the relevant exiv-calling code and put it in a absolutely-definitely-single-threaded driver class....
maciek9billion
Offline Send Email
Dec 6, 2005
4:26 am

... Is this code something you could send me to along with the images? I would not keep the code or the images around after looking into this problem. Also did...
Brad Schick
schickb
Online Now Send Email
Dec 6, 2005
7:18 am

... Can you strip this further to a plain C++ reproducer? Does it still happen? -ahu....
Andreas Huggel
zzzahu
Offline Send Email
Dec 6, 2005
2:56 pm

... happen? ... I should be able to, but not before this weekend at the earliest. Actually, the stripped .NET exposes some interesting determinism underlying...
maciek9billion
Offline Send Email
Dec 6, 2005
11:47 pm

... Can you share these two pictures? I'd like to have a closer look at them. You could upload them to the Files or Photos section here or send them to me...
Andreas Huggel
zzzahu
Offline Send Email
Dec 7, 2005
1:43 am

... +++ jpgimage.cpp (working copy) @@ -191,7 +191,7 @@ if (size < 16) throw Error(15); // Read the rest of the APP13 segment // needed if...
Andreas Huggel
zzzahu
Offline Send Email
Dec 7, 2005
4:27 pm

... BasicIo::cur); ... don't fully ... Nope. Hits the same error, unfortunately. I'll start on the C++ app to reproduce this tomorrow night--hopefully that...
maciek9billion
Offline Send Email
Dec 7, 2005
9:21 pm

... Ok, next try... Valgrind reports a problem at the same location that you found, within that sscanf call. This patch assumes sscanf reads beyond the end of...
Andreas Huggel
zzzahu
Offline Send Email
Dec 8, 2005
3:40 pm

Well I'll be a monkey's uncle. I think that's it. The test scanner does not crash anymore (and it used to crash consistenly on those two pics), and our app has...
maciek9billion
Offline Send Email
Dec 9, 2005
2:35 am

I was looking at a similar issue, but in the other Timevalue read method. I think we’ll want to make the change below since the docs I have say ...
Brad Schick
schickb
Online Now Send Email
Dec 10, 2005
8:30 am

... Ok scratch that, I remembered after sending that these methods are used to read data out of the middle of buffers that won't have nulls in them. Maybe the...
Brad Schick
schickb
Online Now Send Email
Dec 10, 2005
8:40 am

... Yes, the problem exists in a few places. See bug 447 / Rev. 656 (includes the c_str() change but not the asserts) ...
Andreas Huggel
zzzahu
Offline Send Email
Dec 10, 2005
10:49 am

... I added the v= parameter. This is a comma separated list that can also take ranges. For example: ...
Brad Schick
schickb
Online Now Send Email
Dec 11, 2005
8:44 am

... Excellent, thanks! -ahu....
Andreas Huggel
zzzahu
Offline Send Email
Dec 11, 2005
9:15 am
Advanced

Copyright © 2009 Yahoo! UK. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help