Opened 15 years ago
Closed 14 years ago
#285 closed defect (invalid)
Assertion failed (driver->state == DRIVER_STARTING) at file 'devman.c', line 521
| Reported by: | Jakub Jermář | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 0.5.0 |
| Component: | helenos/srv/devman | Version: | |
| Keywords: | Cc: | vojtech.horky@… | |
| Blocker for: | Depends on: | ||
| See also: |
Description
After applying the attached patch on top of mainline,784, devamn hit the following assertion:
void set_driver_phone(driver_t *driver, sysarg_t phone)
{
fibril_mutex_lock(&driver->driver_mutex);
assert(driver->state == DRIVER_STARTING);
driver->phone = phone;
fibril_mutex_unlock(&driver->driver_mutex);
}
I am also attaching a screenshot that shows what devman had been doing before it hit the assertion.
Attachments (2)
Change History (6)
by , 15 years ago
by , 15 years ago
| Attachment: | Screenshot-QEMU.png added |
|---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
| Cc: | added |
|---|
comment:3 by , 15 years ago
| Milestone: | 0.4.3 → 0.5.0 |
|---|
comment:4 by , 14 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
This ticket is no longer relevant as there have been major changes to devman in the meantime and the set_driver_phone() along with the assert has been removed in mainline,924.
Note:
See TracTickets
for help on using tickets.

I am not sure whether this is not completely different issue. But this assertion is hit when the driver specifies wrong name. I encountered this assertion when I copied skeleton of an existing driver and forgot to change
driver_t.nameto reflect the new name.Completely off topic note: such assertion could be very dangerous because malicious client can "murder"
devmanby simply sending a register message with name of already running driver.