I have tried installing the package from Buster. That has resolved the crash - the program ended gracefully. However the underlying problem is still there - devices without interface 0 will not work. I think this is present in upstream as well.
USB_ModeSwitch log from Wed Dec 25 16:35:30 CET 2019 Use global config file: /etc/usb_modeswitch.conf Raw parameters: {--switch-mode} {1-11} Use top device dir /sys/bus/usb/devices/1-11 Check class of first interface ... No access to interface 0. Exit -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to usb-modeswitch in Ubuntu. https://bugs.launchpad.net/bugs/1676763 Title: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr() Status in usb-modeswitch package in Ubuntu: Confirmed Bug description: Description: Ubuntu Zesty Zapus (development branch) Release: 17.04 usb-modeswitch: Instalados: 2.4.0+repack0-1ubuntu1 Candidato: 2.4.0+repack0-1ubuntu1 Tabla de versión: *** 2.4.0+repack0-1ubuntu1 500 500 http://es.archive.ubuntu.com/ubuntu zesty/main amd64 Packages 100 /var/lib/dpkg/status This error appears just after login. ProblemType: Crash DistroRelease: Ubuntu 17.04 Package: usb-modeswitch 2.4.0+repack0-1ubuntu1 ProcVersionSignature: Ubuntu 4.10.0-14.16-generic 4.10.3 Uname: Linux 4.10.0-14-generic x86_64 ApportVersion: 2.20.4-0ubuntu2 Architecture: amd64 CrashCounter: 1 Date: Tue Mar 28 09:40:09 2017 ExecutablePath: /usr/sbin/usb_modeswitch_dispatcher InstallationDate: Installed on 2017-03-24 (3 days ago) InstallationMedia: Ubuntu-MATE 17.04 "Zesty Zapus" - Alpha amd64 (20170125) ProcCmdline: /usr/sbin/usb_modeswitch_dispatcher --switch-systemd 1-6 ProcEnviron: LANG=es_ES.UTF-8 PATH=(custom, no user) Signal: 11 SourcePackage: usb-modeswitch StacktraceTop: strrchr () at ../sysdeps/x86_64/strrchr.S:32 ?? () __libc_start_main (main=0x555ed4e5f970, argc=3, argv=0x7ffd50b28338, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd50b28328) at ../csu/libc-start.c:291 ?? () Title: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr() UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp