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 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 : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp