[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2020-07-10 Thread Josua Dietze
As a reminder, the file http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-versions.xml can be monitored for updates; it has download link and md5 value. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.ne

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2020-07-10 Thread Josua Dietze
I have released upstream version 2.6.1 which includes the fixes for recently reported problems. -- 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 SI

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2020-07-09 Thread Jakub Vaněk
Thank you, I've tested the fix and it mostly works. However, a minor fixup is needed for flawless switching of this particular modem, see https://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2915#p19606 -- You received this bug notification because you are a member of Ubuntu Bugs, wh

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2020-07-05 Thread Didier Raboud
FTR, uploaded 2.6.0-3 to Debian/unstable with the patch mentionned by @digidietze. -- 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 strr

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2020-07-05 Thread Josua Dietze
I've made an attempt to fix the problem of interfaces missing in the original Tcl wrapper. I intend to release 2.6.1 soon. If anybody wants to test, the files are here: https://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?p=19605#p19605 -- You received this bug notification because you a

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2020-07-02 Thread Sebastien Bacher
@Jakub, the change you proposed while fixing the segfault is creating issues for other users as description there https://bugs.launchpad.net/ubuntu/+source/usb- modeswitch/+bug/1866926/comments/8 is that something you would be interesting in trying to resolve? -- You received this bug notificat

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2020-01-08 Thread Launchpad Bug Tracker
This bug was fixed in the package usb-modeswitch - 2.5.2+repack0-2ubuntu2 --- usb-modeswitch (2.5.2+repack0-2ubuntu2) focal; urgency=medium * debian/patches/dispatcher-c-rewrite.patch: fix SIGSEGV occuring when device has no usb interface 0 and serialization of a NULL pointer

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2020-01-08 Thread Sebastien Bacher
Thanks Jakub for the debugging work you put there and the fixes! I've upload now those changes to the current 'focal' Ubuntu serie (tweaking a bit the packaging, I merged the fixes in the patch doing the rewrite in C rather than stacking patches) Some notes/questions - the fixes look like they wo

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2020-01-08 Thread Sebastien Bacher
** Changed in: usb-modeswitch (Ubuntu) Status: Confirmed => Fix Committed ** Changed in: usb-modeswitch (Ubuntu) Importance: Medium => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1676

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
The two patches inside the debdiff fix these bugs: * First issue is that usb_modeswitch_dispatcher.c crashes when a device presented to it has no USB interface 0. This is caused by improper checking for a NULL pointer returned by a interface-lookup function. It is fixed by adding a null-check and

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
This is a debdiff for Bionic applicable to usb- modeswitch_2.5.2+repack0-2ubuntu1. I built this in pbuilder and it builds successfully, and I installed it, the patch works as intended. ** Patch added: "debdiff against usb-modeswitch_2.5.2+repack0-2ubuntu1" https://bugs.launchpad.net/ubuntu/+s

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
** Patch removed: "debian patch against usb-modeswitch_2.5.2+repack0-2ubuntu1" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+attachment/5316289/+files/bionic.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ub

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
** Information type changed from Public Security to Public -- 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 notific

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Ubuntu Foundations Team Bug Bot
The attachment "debian patch against usb- modeswitch_2.5.2+repack0-2ubuntu1" seems to be a debdiff. The ubuntu- sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the a

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
The patch for bionic should be applicable to focal as well (current development branch; currently reading https://wiki.ubuntu.com/StableReleaseUpdates ). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
I am sorry for uploading the patches multiple times, I wanted them to be clean (i.e. patches ending with .patch, having consistent directory versions, etc) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
** Patch added: "debian patch against usb-modeswitch_2.2.5+repack0-1ubuntu1" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+attachment/5316290/+files/xenial.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubun

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
** Patch removed: "debian patch against usb-modeswitch_2.5.2+repack0-2ubuntu1" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+attachment/5316287/+files/bionic.patch ** Patch added: "debian patch against usb-modeswitch_2.5.2+repack0-2ubuntu1" https://bugs.launchpad.n

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
** Patch removed: "debian patch against usb-modeswitch_2.5.2+repack0-2ubuntu1" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+attachment/5316282/+files/bionic.patch ** Patch added: "debian patch against usb-modeswitch_2.5.2+repack0-2ubuntu1" https://bugs.launchpad.n

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
** Patch added: "debian patch against usb-modeswitch_2.2.5+repack0-1ubuntu1" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+attachment/5316288/+files/xenial.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubun

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
I'm sending patch for Xenial. ** Patch added: "debian patch against usb-modeswitch_2.2.5+repack0-1ubuntu1" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+attachment/5316286/+files/xenial.patch -- You received this bug notification because you are a member of Ubuntu Bu

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
Thanks! I have attached a patch for the Bionic release. ** Patch added: "debian patch against usb-modeswitch_2.5.2+repack0-2ubuntu1" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1676763/+attachment/5316282/+files/bionic.patch -- You received this bug notification because yo

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Josua Dietze
Thanks for the thorough analysis! I will check your patches and apply them upstream accordingly. It's amazing what device engineers come up with to make life more "interesting" ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-29 Thread Jakub Vaněk
I have realized that these are two different issues. 1) Ubuntu's version of usb_modeswitch_dispatcher crashes when there is no interface 0. 2) All versions exit prematurely (non-Ubuntu versions exit gracefully) and do not switch the device. Therefore I'd include a fix only for (1) - to make the

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-25 Thread Jakub Vaněk
Upstream bugreport: http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2915 -- 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

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-25 Thread Jakub Vaněk
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

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-25 Thread Jakub Vaněk
EDIT: the null-pointer bug only exists in Ubuntu, the interface error bug may exist in upstream as well. -- 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 crashe

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-25 Thread Jakub Vaněk
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

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-25 Thread Jakub Vaněk
I think that upgrading the modem firmware (I have Sierra Wireless EM7305) might help, but that does not fix the underlying bug / broken assumptions. ** Tags added: bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.la

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-25 Thread Jakub Vaněk
Ah, it starts to make sense. usb_modeswitch_dispatcher is called correctly, but it cannot find interface 0 on the device to be switched. However, dmesg contains warning about the same thing: [2.369824] usb 1-11: new high-speed USB device number 5 using xhci_hcd [2.520482] usb 1-11: config

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2019-12-25 Thread Jakub Vaněk
Very similar crash happens to me on Bionic as well. So far it seems to me that usb_modeswitch_dispatcher is called incorrectly and therefore it crashes when it eventually encounters a NULL pointer. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed

[Bug 1676763] Re: usb_modeswitch_dispatcher crashed with SIGSEGV in strrchr()

2017-03-30 Thread Toni
** Information type changed from Private to Public Security -- 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 notifi