OS-X-SAT-SMART-Driver icon indicating copy to clipboard operation
OS-X-SAT-SMART-Driver copied to clipboard

driver causes apps that check S.M.A.R.T. status to crash

Open core-code opened this issue 10 years ago • 10 comments
trafficstars

we received several crash reports via iTunesConnect about our app crashing when checking the SMART status. the crash happens right in your driver code in response to our app calling IODestroyPlugInInterface()

the crash seems to be present in versions 0.5 through 0.10

crash logs:

http://dl.dropboxusercontent.com/u/7221986/_crash_kasbert.zip

core-code avatar Apr 20 '15 21:04 core-code

I have no idea. My only guess is that opening the client fails, because there can be only one client at the same time. I guess you haven't been able to reproduce the problem either. I suggest adding some logging to the code containing IODestroyPlugInInterface. Then use other tools to reserve the driver.

kasbert avatar Apr 22 '15 08:04 kasbert

hello kasbert

My only guess is that opening the client fails, because there can be only one client at the same time

no the crash has to have another cause. our code is based directly on Apple Sample Code for S.M.A.R.T. status checking and exits when IOCreatePlugInInterfaceForService() fails. i just tested this by starting two instances of our app in the debugger. here is the code in detail: https://gist.github.com/core-code/79505e6782f0e3fda2ac

to get to the IODestroyPlugInInterface(), IOCreatePlugInInterfaceForService() must have returned kIOReturnSuccess

no, i've never been able to reproduce it, but as i said its happening on customer macs

core-code avatar Apr 22 '15 11:04 core-code

FWIW I've seen this behavior and similar interaction, but I think I was leaning towards GenericXHCI as the more likely source in my case — any chance your customers are using that extension, @core-code

emory avatar Jun 08 '15 15:06 emory

no, as you can see in the crash logs, only 'OS-X-SAT-SMART-Driver' is present and the crash is happening right in its code

core-code avatar Jun 08 '15 15:06 core-code

i had to change the location of the crash logs

they are here now:

http://pastebin.com/RsUR6NXU

core-code avatar Aug 03 '15 10:08 core-code

Guys, please forgive me for posting this here but I don't know where else to get in touch with the developers for this driver. Today I installed the SAT SMART driver (or rather, DriveDX installed it for me) and caused a bit of a problem. DriveDX worked fine, and your driver allowed me to check my external drives, but I also use Chameleon SSD Optimizer to enable Trim on my aftermarket SSD, and launching it after using DriveDX caused my computer to hard restart. When it came back up one of my external drives was not mounting. Disk Utility would not fix it, so I had to purchase Disk Warrior, which fixed it instantly. First thing I did was remove the SAT SMART driver, and launched Chameleon. It came up without a hitch this time. Just thought this would be good information to pass along. Sorry if this isn't the place.

DorianHeckler avatar Aug 09 '15 06:08 DorianHeckler

its quite unnerving that people think that our SMARTReporter is crashing while its really the "OS-X-SAT-SMART-Driver" thats crashing.

i've thought about refusing to launch when the driver is installed, since these crash reports seem to be quite frequent.

could you at least turn on debug symbols in your official binaries so that the generated debug logs could point to the source of the problem?

core-code avatar Oct 17 '16 14:10 core-code

I'll try to find time to look at the issue.

kasbert avatar Oct 18 '16 05:10 kasbert

What about a donation @core-code? Just a suggestion. :)

JanX2 avatar Oct 18 '16 06:10 JanX2

is there a way to donate to this project or this bug report? bountysource?

core-code avatar Oct 18 '16 13:10 core-code