Crash with "Bus error" when hashing

Bug #311478 reported by Steven Sheehy
This bug report is a duplicate of:  Bug #473173: Crash when hashing files. Edit Remove
4
Affects Status Importance Assigned to Milestone
LinuxDC++
Confirmed
Medium
Unassigned

Bug Description

Berlios Bug #13105: Bus error
https://developer.berlios.de/bugs/?func=detailbug&bug_id=13105&group_id=2230

Original Submission:
Just after running linuxdcpp it quits with comment Bus error:

$linuxdcpp
Thrown: FileException: Could not open file
Thrown: FileException: Could not open file
Thrown: FileException: Could not open file
FavoriteManager::load: FileException: Could not open file
Loading: Hash database
Loading: Shared Files
Thrown: FileException: Could not open file
FileException: Could not open file
Loading: Download Queue
Bus error (core dumped)

And a backtrace from gdb

#0 0x08176b29 in TigerHash::update (this=0xb707c080, data=0xb4c86000,
length=1024) at client/TigerHash.cpp:166
#1 0x080c2325 in MerkleTree<TigerHash, 1024u>::update (this=0xb707c314,
data=0xb407a000, len=16777216) at client/MerkleTree.h:105
#2 0x080db6fd in HashManager::Hasher::fastHash (this=0x831b178,
filename=@0xb707c2c4, tth=@0xb707c314, size=730607616, xcrc32=0x0)
at client/HashManager.cpp:629
#3 0x080df84e in HashManager::Hasher::run (this=0x831b178)
at client/HashManager.cpp:716
#4 0x081728cc in Thread::starter (p=0x831b178) at client/Thread.h:137
#5 0xb7f6646b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6 0xb75d96de in clone () from /lib/tls/i686/cmov/libc.so.6

Revision history for this message
Steven Sheehy (steven-sheehy) wrote :

I've seen this crash multiple times before. I think it's some type of unaligned access, but I don't know how to fix it. Hopefully someone with more knowledge in this area will submit a patch.

Changed in linuxdcpp:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Steven Sheehy (steven-sheehy) wrote :
Revision history for this message
Jan Hlodan (wewek) wrote :

I got this error (Bus error) when I enabled compiz (Ubuntu 8.10).
I haven't used compiz before and linuxdc++ ran well.
But now linuxdc++ crashes every time after few minutes. Disabling compiz or deleting ~/.dc++ didn't help.
Any idea how to fix it?
Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.