Hmmm, it seems that this bug exists *only* in Ubuntu and not in Debian. Ubuntu source package contains a patch that rewrites the usb_modeswitch_dispatcher program from Tcl to C. While there must have been good reasons to do this, there is at least one more bug in the rewritten version.
On line 422 in file usb_modeswitch_dispatcher.c there is an assignment of NULL to a char pointer. This pointer is later passed to printf when forming the usb_modeswitch command. Therefore there should be strdup("") instead of null pointer, as now usb_modeswitch is launched literally with "(null)" argument produced by printf. Would it be possible to remove the rewrite and switch back to Tcl (at least for new releases of Ubuntu)? It seems that the upstream package has switched to some lightweight Tcl interpreter (Jim). This could remove some of the reasons why it had to be rewritten (extra dependencies, boot time?). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1676763 Title: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs