devkit-disks-helper-ata-smart-collect assert failure: devkit-disks-helper-ata-smart-collect: atasmart.c:2687: sk_disk_get_blob: Assertion `(size_t) ((uint8_t*) p - (uint8_t*) d->blob) == size' failed.

Bug #419662 reported by Atanas Atanasov
This bug affects 251 people
Affects Status Importance Assigned to Milestone
libatasmart (Fedora)
Won't Fix
Medium
libatasmart (Ubuntu)
Fix Released
High
Martin Pitt
Karmic
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: devicekit-disks

Crashed without any specific reason.

ProblemType: Crash
Architecture: amd64
AssertionMessage: devkit-disks-helper-ata-smart-collect: atasmart.c:2687: sk_disk_get_blob: Assertion `(size_t) ((uint8_t*) p - (uint8_t*) d->blob) == size' failed.
Date: Wed Aug 26 19:54:28 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect
Package: devicekit-disks 006-0ubuntu1
ProcCmdline: /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect /dev/sdb 1
ProcEnviron: PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.31-7.27-generic
Signal: 6
SourcePackage: devicekit-disks
StacktraceTop:
 raise () from /lib/libc.so.6
 abort () from /lib/libc.so.6
 __assert_fail () from /lib/libc.so.6
 sk_disk_get_blob () from /usr/lib/libatasmart.so.4
 ?? ()
Title: devkit-disks-helper-ata-smart-collect assert failure: devkit-disks-helper-ata-smart-collect: atasmart.c:2687: sk_disk_get_blob: Assertion `(size_t) ((uint8_t*) p - (uint8_t*) d->blob) == size' failed.
Uname: Linux 2.6.31-7-generic x86_64
UserGroups:

Revision history for this message
Atanas Atanasov (thenasko) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:raise () from /lib/libc.so.6
abort () from /lib/libc.so.6
__assert_fail () from /lib/libc.so.6
sk_disk_get_blob (d=0xb01010, blob=0x7fffdc256578,
main (argc=<value optimized out>,

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in devicekit-disks (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
visibility: private → public
Martin Pitt (pitti)
affects: devicekit-disks (Ubuntu) → libatasmart (Ubuntu)
Changed in libatasmart (Ubuntu):
importance: Medium → High
status: New → Confirmed
Revision history for this message
In , Martin (martin-redhat-bugs) wrote :

libatasmart 0.16

We get quite a number of duplicates about an assertion failure in sk_disk_set_blob() when being called from DeviceKit-disks' devkit-disks-helper-ata-smart-collect:

#3 0x00007ff8d256c7b2 in sk_disk_get_blob (d=0xb01010, blob=0x7fffdc256578,
    rsize=0x7fffdc256570) at atasmart.c:2687
 size = 1572
 good = 1
 have_good = 1
 p = <value optimized out>
 __PRETTY_FUNCTION__ = "sk_disk_get_blob"
#4 0x0000000000400b7e in main (argc=<value optimized out>,
    argv=<value optimized out>) at job-ata-smart-collect.c:89
 ret = <value optimized out>
 device = 0x7fffdc256ede "/dev/sdb"
 d = (SkDisk *) 0xb01010
 smart_is_available = 1
 awake = 1
 blob = <value optimized out>
 blob_size = <value optimized out>

The 25ish duplicates distribute pretty evenly between i386 and x86_64, so I don't think it's an architecture specific problem.

Is there something the reporters could do to collect further information here?

Changed in libatasmart (Fedora):
status: Unknown → Confirmed
Revision history for this message
santa (alice-tut) wrote :

This bug usually happens after #bug 419662

Revision history for this message
Claes Wallin (clacke) wrote :

Got this just after bug #419663

Revision history for this message
Michael Hind (mike-hind) wrote :

The previous comments apply to me - I get a failure and as soon as soon as I report it (or cancel) (I think one of the two numbers above) and this one is then there waiting to be reported.

Revision history for this message
GATails (jenrichmichael) wrote :

I got this on boot along with bug #419663

Revision history for this message
Will Daniels (wdaniels) wrote :

I get this occasionally with no discernible pattern or cause and though I have seen the other bugs mentioned also, this specific crash occurred just now since a clean boot several hours previous, without any other crash occurring beforehand. Unfortunately, I just have no idea what this program is, or what it is doing, so it's hard to think of which other details might be pertinent to the matter!?

Revision history for this message
xavxa (xavxa) wrote :

i got it all time i run Palimpsest 2.28.0 with 2 usb disk, usualy after #419663 bug
some times i got it without running palimpsest

Revision history for this message
JohnMitchell (johnlmitchell) wrote :

If this helps: I have two 1.5T disks, ext4, and lvm2 in the mix, in addition to a bunch of usb-disk ports, and of course the normal hard drive, dvd, and NVidia graphics card.

Revision history for this message
In , David (david-redhat-bugs) wrote :

Hey Martin,

Lennart showed me this bug. FWIW, never seen this on Fedora. Btw, there's a libatasmart bugtracker on fd.o now: https://bugs.freedesktop.org/enter_bug.cgi?product=libatasmart

Revision history for this message
In , Lennart (lennart-redhat-bugs) wrote :
Changed in libatasmart (Fedora):
status: Confirmed → Fix Released
Revision history for this message
ClaudiaD (claudia-dorset) wrote :

Happens just after login.

Revision history for this message
Martin Pitt (pitti) wrote :

Fix committed upstream.

Changed in libatasmart (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in 0.17-1 in Debian.

Changed in libatasmart (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
status: In Progress → Fix Committed
Revision history for this message
Marcelo (marcelo-no-log) wrote :

The crash appends with two similar PCs (AMD64 dual core)...
The second one is which i make this bug report, with every packet up to date..

I was trying to read a Sony 1Gb mp3 player that seemed to have a bad partitioning table (impossible to erase partitions, impossible to join both existing fat partitions... imposible to reformat these to fat, they supposed to already be in fat...)

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks Marcelo. Please note that the crash is already understood and fixed, so no need for further data. It will be fixed in Ubuntu 10.04.

Revision history for this message
Stilor (stilor) wrote : Re: [Bug 419662] Re: devkit-disks-helper-ata-smart-collect assert failure: devkit-disks-helper-ata-smart-collect: atasmart.c:2687: sk_disk_get_blob: Assertion `(size_t) ((uint8_t*) p - (uint8_t*) d->blob) == size' failed.

Is the fix going to be in the updates to 9.10 or will it be in 10.04 only?

Regards,
Alexey.

On Wednesday 28 October 2009 02:30:12 pm Martin Pitt wrote:
> Thanks Marcelo. Please note that the crash is already understood and
> fixed, so no need for further data. It will be fixed in Ubuntu 10.04.

Revision history for this message
Martin Pitt (pitti) wrote :

Stilor [2009-10-28 21:51 -0000]:
> Is the fix going to be in the updates to 9.10 or will it be in 10.04
> only?

I don't think that it is terribly important to have in 9.10, since the
only thing that it causes is that the SMART monitor wouldn't work (but
it's not clear whether it would work on your device anyway).

Revision history for this message
Stilor (stilor) wrote :

Thanks for the explanation of the possible consequences. I saw this
assertion when my Seagate FreeAgent comes out of a power-saving mode - so
I was not sure if it could cause some more serious issues (e.g. some
earlier kernels lost this device completely when power-saving occurred -
leading to filesystem corruption).

Regards,
Alexey.

Revision history for this message
Kevin Christmas (kachristmas) wrote :

Martin, please reconsider backporting the fix to 9.10. Kubuntu doesn't have the nice option of being able to ignore crashes of this type like Ubuntu does. Constantly having to dismiss this error gets annoying. Thanks.

Revision history for this message
Martin Pitt (pitti) wrote :

Kevin Christmas [2009-11-01 16:23 -0000]:
> Martin, please reconsider backporting the fix to 9.10. Kubuntu doesn't
> have the nice option of being able to ignore crashes of this type like
> Ubuntu does. Constantly having to dismiss this error gets annoying.

Neither Ubuntu nor Kubuntu is supposed to have Apport enabled by
default in the first place. This is probably an upgrade error in your
case, see bug 465619.

Revision history for this message
stevem10 (steve10m) wrote :

"Stilor wrote on 2009-10-28: #18

Thanks for the explanation of the possible consequences. I saw this
assertion when my Seagate FreeAgent comes out of a power-saving mode - so
I was not sure if it could cause some more serious issues (e.g. some
earlier kernels lost this device completely when power-saving occurred -
leading to filesystem corruption).

Regards,
Alexey."

I also have a Seagate FreeAgent connected to my system.

~Steve

Revision history for this message
Martin Pitt (pitti) wrote :

0.17-1 synced into lucid, which fixes this.

Changed in libatasmart (Ubuntu):
status: Fix Committed → Fix Released
pinky (bjornhenrik)
Changed in libatasmart (Ubuntu):
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
Changed in libatasmart (Ubuntu):
status: Fix Released → Confirmed
Martin Pitt (pitti)
Changed in libatasmart (Ubuntu):
status: Confirmed → Fix Released
Changed in libatasmart (Ubuntu Karmic):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
tomnic (p-launchpad-1to1products-com) wrote :

I am running 9.10 within wubi. I also have a Seagate Freeagent drive attached via USB. I see this error come up when I power the system back up after suspending.

Revision history for this message
BlueT - Matthew Lien - 練喆明 (bluet) wrote :

Actually I can't see where and what bug fix had been released. I'm running Karmic, I got a Seagate Freeagent drive too, and this bug keep happening for many times these days and even just now.

Revision history for this message
BlueT - Matthew Lien - 練喆明 (bluet) wrote :

Sorry for that I didn't noticed the fix is only released for Lucid ONLY.

I spend many time and money on promoting ubuntu in my contry, to normal users, schools, and even gov. And there're two big stock company is contacting us and hoping us to help them to replace their hunderds or even thousonds staff desktop which is running WindowsXP now, by Ubuntu.

And I can say, Any End-User who see a bug/crash report might be panic. Especially when the same bug/crash keep happening and scaring them. They'll challenge the stability and software quality ofon Ubuntu just because of these kind of _tiny_ bugs.

I, and I think not only me, wish the fix could backport to 9.10 soon...
The bug is already fixed and the bug-fixed version is already exist in Lucid, isn't it?
Backporting the fix saves Ubuntu, and helps people who's promoting ubuntu like me.
Thanks alot!

John Stevenson (jr0cket)
description: updated
Revision history for this message
yasaswi (yasaswi-lakkaraju) wrote :

so I put in a Compact disk to write, I select the ISO right click on it and select "write to disk". bamp, something crashed......

Revision history for this message
A. Leon (aleon05) wrote : Re: [Bug 419662] Re: devkit-disks-helper-ata-smart-collect assert failure: devkit-disks-helper-ata-smart-collect: atasmart.c:2687: sk_disk_get_blob: Assertion `(size_t) ((uint8_t*) p - (uint8_t*) d->blob) == size' failed.

I change back to windows

On Wed, Feb 10, 2010 at 1:59 AM, yasaswi <email address hidden>wrote:

> so I put in a Compact disk to write, I select the ISO right click on it
> and select "write to disk". bamp, something crashed......
>
> --
> devkit-disks-helper-ata-smart-collect assert failure:
> devkit-disks-helper-ata-smart-collect: atasmart.c:2687: sk_disk_get_blob:
> Assertion `(size_t) ((uint8_t*) p - (uint8_t*) d->blob) == size' failed.
> https://bugs.launchpad.net/bugs/419662
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “libatasmart” package in Ubuntu: Fix Released
> Status in “libatasmart” source package in Karmic: Triaged
> Status in “libatasmart” package in Fedora: Fix Released
>
> Bug description:
> Binary package hint: devicekit-disks
>
> Crashed without any specific reason.
>
> ProblemType: Crash
> Architecture: amd64
> AssertionMessage: devkit-disks-helper-ata-smart-collect: atasmart.c:2687:
> sk_disk_get_blob: Assertion `(size_t) ((uint8_t*) p - (uint8_t*) d->blob) ==
> size' failed.
> Date: Wed Aug 26 19:54:28 2009
> DistroRelease: Ubuntu 9.10
> ExecutablePath:
> /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect
> Package: devicekit-disks 006-0ubuntu1
> ProcCmdline: /usr/lib/devicekit-disks/devkit-disks-helper-ata-smart-collect
> /dev/sdb 1
> ProcEnviron: PATH=(custom, no user)
> ProcVersionSignature: Ubuntu 2.6.31-7.27-generic
> Signal: 6
> SourcePackage: devicekit-disks
> StacktraceTop:
> raise () from /lib/libc.so.6
> abort () from /lib/libc.so.6
> __assert_fail () from /lib/libc.so.6
> sk_disk_get_blob () from /usr/lib/libatasmart.so.4
> ?? ()
> Title: devkit-disks-helper-ata-smart-collect assert failure:
> devkit-disks-helper-ata-smart-collect: atasmart.c:2687: sk_disk_get_blob:
> Assertion `(size_t) ((uint8_t*) p - (uint8_t*) d->blob) == size' failed.
> Uname: Linux 2.6.31-7-generic x86_64
> UserGroups:
>
>
>
> To unsubscribe from this bug, go to:
>
> https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/419662/+subscribe
>

Revision history for this message
elias1982 (elias1982orama) wrote :

i have the same problem today

Rolf Leggewie (r0lf)
Changed in libatasmart (Ubuntu Karmic):
status: Triaged → Won't Fix
Changed in libatasmart (Fedora):
importance: Unknown → Medium
status: Fix Released → Won't Fix
To post a comment you must log in.