connman-gnome crashes netwoks with no DHCP servers configured"

Bug #1181260 reported by Emilia Ciobanu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Connection Manager
New
Undecided
Unassigned

Bug Description

    In networks that don't have a DHCP server configured, ipv4 address
    allocation fails and the ipv4 structure doesn't get populated. When
    the GUI is trying to read the ipv4_config.method field to see whether
    it contains "dhcp" string, a segmentation fault is generated.

    Steps to reproduce:
    1. On a network that doesn't has a DHCP server configured, start
       connman-properties. Use the wired network.
    2. Go to Ethernet tag and hit Apply button for DHCP configurations.
    3. Switch to System Configuration tag.
    4. Switch back to Ethernet tag.

Revision history for this message
Emilia Ciobanu (emilia-maria-silvia-ciobanu) wrote :

When using manual ip the ipv4_config structure has all fields populated
and this condition is skipped. The only case when the data structure
fields are NULL is when we have DHCP settings and for different reasons
network configurations are not done. In this case, connman automatically
renews the ipv4 configurations, but that takes a while. After this time
the structure gets populated and the application works as expected.
The patch prevents the unexpected quit.

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.