[systemd-devel] /sys/subsystem device dependency not working

Lennart Poettering lennart at poettering.net
Tue Aug 23 16:43:21 PDT 2011


On Fri, 19.08.11 16:48, Albert Strasheim (fullung at gmail.com) wrote:

> it does a goto fail at this point:
> 
> 151 if ((r = hashmap_put(u->meta.manager->units, s, u)) < 0) {
> (gdb) n
> 152 set_remove(u->meta.names, s);
> (gdb) n
> 153 goto fail;
> 
> where s = strdup(text), and text contains the alias string.
> 
> This is the only obvious difference I can see in the code that adds
> the original device and its alias.

Usually this is an indication that the name is already defined.

Can you do "print (char*) strerror(-r)" in gdb after the hashmap_put() failed?
This should tell us what is going wrong.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list