Modify

Opened 4 years ago

Closed 4 years ago

#15305 closed defect (fixed)

Netifd and SIGSEV with 3G/PPP modems

Reported by: kristian.evensen@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Hello,

I have spent some days debugging an issue I am frequently seeing with netifd and ppp modems. When connecting the modem after having connected and disconnected it once, i.e., the second time netifd "sees" the modem, netifd frequently thows a sigsev.

After going through the code, adding printf's to see what happen and comparing with other types of interfaces/protocols, what seems to happen is that the device_user is not removed. When netifd does not crash, I see that the reference count is increasing. I am not sure if the error is in netifd, or in the 3g script.

The crash always happens with the first "message" received by netifd, in safe_list_for_each(&dev->users, device_broadcast_cb, &dev_ev) in device_broadcast_event().

My current work-around is to call device_release_user() from device_release(), if refcnt == 1. However, this dirty hack will come back and bit me :)

Does anyone have any ideas on what might be wrong or how I can progress in trying to solve this?

Thanks in advance for any help,
Kristian

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by nbd

please try this netifd patch: http://nbd.name/netifd-proto.patch

comment:2 Changed 4 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

should be fixed in r40384

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.