← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 473173] Re: Crash when hashing files

 

I'm working on porting it to latest dcpp trunk and the latest trunk
handles exiting from fastHash differently than our version. Can you take
a look at my attached patch and see if it looks ok? It also includes an
extra call to munmap since memory may potentially be leaking in certain
scenarios (like the final read when size_left <= 0). Also, shouldn't
sigsetjmp be called before mmap since mmap could potentially throw a
SIGBUS before it gets to sigsetjmp?

** Attachment added: "sigbus.patch"
   http://launchpadlibrarian.net/37602174/sigbus.patch

-- 
Crash when hashing files
https://bugs.launchpad.net/bugs/473173
You received this bug notification because you are a member of LinuxDC++
Team, which is subscribed to LinuxDC++.

Status in Linux DC++: Fix Committed

Bug description:
My linuxdcpp 1.0.3 crashes when hashing files from an external usb drive in a reiserfs partition.

I attach the bugreport. The error is this:

linuxdcpp: xcb_io.c:176: process_responses: La declaración `!(req && current_request && !(((long) (req->sequence) - (long) (current_request)) <= 0))' no se cumple.
Multiple segmentation faults occurred; can't display error dialog

I don't know why but sometimes restarting the program solves the error, but with some concrete files it always crashes!
So I think it depens on the file.

Thanks





References