Mathieu Trudel-Lapierre (mathieu-tl) you are extreme optimistic:
Feb 20 13:42:41 oak kernel: [23799.840389] usb_modeswitch_[32188]: segfault at 4beeb4 ip b76160d6 sp bff20ba0 error 4 in libc-2.17.so[b759c000+1ae000] Feb 20 13:50:02 oak kernel: [24240.638396] usb_modeswitch_[32254]: segfault at 4b0eb4 ip b75fa0d6 sp bfbc0040 error 4 in libc-2.17.so[b7580000+1ae000] Feb 20 13:50:15 oak kernel: [24253.583514] usb_modeswitch_[32269]: segfault at 227eb4 ip b760a0d6 sp bffeddb0 error 4 in libc-2.17.so[b7590000+1ae000] ubuntu 13.10, 12.LTS huawei e171 (12d1/155b) kernel 3.11.0-17-generic usb-modem-manager 1.2.3+repack0 (gdb) bt (recompiled with -g) #0 _IO_new_fclose (fp=0x392f68) at iofclose.c:49 #1 0x0804d670 in read_attrs (subsystem=0x8050334 "USB", dev_type=0x8052208 <usb>, attr_list=0x8052160 <usb_attrs>, dir=0x939a020 "/sys/bus/usb/devices/1-1") at usb_modeswitch_dispatcher.c:1717 #2 0x0804d794 in read_usb_attrs (dir=0x939a020 "/sys/bus/usb/devices/1-1", ifdir=0x0) at usb_modeswitch_dispatcher.c:1743 #3 0x0804961a in main (argc=4, argv=0xbf95f2c4) at usb_modeswitch_dispatcher.c:319 run diag: if ((rc = fopen(attr_path, "r")) != NULL) { + printf("f before =%p\n", rc); if (fgets(value, PATH_MAX, rc) != NULL) { dev_type[i]->value = strdup(rtrim(value)); } else { dev_type[i]->value = 0; } + printf("f after =%p\n", rc); fclose(rc); } run: /home/opa/works/tst/vagon/huawei_e171/usb-modeswitch-1.2.3+repack0/usb_modeswitch_dispatcher --switch-mode /1-1:1.0 /lib/udev/usb_modeswitch f before =0x9b66f68 f after =0x9b66f68 f before =0x9b66f68 f after =0x9b66f68 f before =0x9b66f68 f after =0xb66f68 Where is 9? and fuck you Mathieu Trudel-Lapierre : --- usb_modeswitch_dispatcher.c.orig 2014-02-20 15:08:44.665397121 +0700 +++ usb_modeswitch_dispatcher.c 2014-02-20 17:04:27.269572144 +0700 @@ -838,7 +838,7 @@ { char* back = s + strlen(s); - while(isspace(*--back)); + while(back>=s && isspace(*--back)); *(back+1) = '\0'; WTF: bus_id[strlen(bus_id)] = '\0'; Mathieu, please use php and never use c. -- 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/927954 Title: Mobile broadband device causes segfault when plugged in (segfault in libc6 when using usb-modeswitch) Status in Usb Modeswitch: Fix Released Status in “usb-modeswitch” package in Ubuntu: Fix Released Bug description: When I plug in my 02 (UK) mobile broadband dongle, I get the following in syslog: Feb 6 22:03:06 mallory kernel: [34106.958301] usb_modeswitch_[9675]: segfault at 0 ip b766cfc1 sp bfb18bc0 error 4 in libc-2.13.so[b75f3000+179000] Feb 6 22:03:07 mallory kernel: [34107.899586] scsi 8:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 Feb 6 22:03:07 mallory kernel: [34107.899666] scsi 9:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 Feb 6 22:03:07 mallory kernel: [34107.900816] sd 9:0:0:0: Attached scsi generic sg1 type 0 Feb 6 22:03:07 mallory kernel: [34107.905205] sr0: scsi-1 drive Feb 6 22:03:07 mallory kernel: [34107.905846] sd 9:0:0:0: [sdb] Attached SCSI removable disk Feb 6 22:03:07 mallory kernel: [34107.905930] sr 8:0:0:0: Attached scsi CD-ROM sr0 Feb 6 22:03:07 mallory kernel: [34107.906017] sr 8:0:0:0: Attached scsi generic sg2 type 5 The device then doesn't get registered in network manager and I can't use it to connect to the Internet. It was working fine in oneiric, this is the first time I've tried it since the precise upgrade. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: linux-image-3.2.0-12-generic-pae 3.2.0-12.21 ProcVersionSignature: Ubuntu 3.2.0-12.21-generic-pae 3.2.2 Uname: Linux 3.2.0-12-generic-pae i686 AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24. ApportVersion: 1.91-0ubuntu1 Architecture: i386 ArecordDevices: **** List of CAPTURE Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: CONEXANT Analog [CONEXANT Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: mthaddon 1575 F.... pulseaudio Card0.Amixer.info: Card hw:0 'PCH'/'HDA Intel PCH at 0xf2520000 irq 45' Mixer name : 'Intel CougarPoint HDMI' Components : 'HDA:14f1506e,17aa21da,00100002 HDA:80862805,80860101,00100000' Controls : 26 Simple ctrls : 8 Card29.Amixer.info: Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw unknown' Mixer name : 'ThinkPad EC (unknown)' Components : '' Controls : 1 Simple ctrls : 1 Card29.Amixer.values: Simple mixer control 'Console',0 Capabilities: pswitch pswitch-joined penum Playback channels: Mono Mono: Playback [on] CheckboxSubmission: e9bd5d0c11367f73e7718b1ea675f7ba CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f Date: Mon Feb 6 23:15:37 2012 HibernationDevice: RESUME=UUID=17b37d47-31ac-4a51-af71-4f3661ab426b InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110921.2) Lsusb: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 04f2:b217 Chicony Electronics Co., Ltd MachineType: LENOVO 4287CTO ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-12-generic-pae root=UUID=0021680f-1924-4d38-986d-52d44d79c9fd ro quiet splash vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-3.2.0-12-generic-pae N/A linux-backports-modules-3.2.0-12-generic-pae N/A linux-firmware 1.68 SourcePackage: linux StagingDrivers: mei UpgradeStatus: Upgraded to precise on 2012-02-02 (4 days ago) dmi.bios.date: 07/07/2011 dmi.bios.vendor: LENOVO dmi.bios.version: 8DET50WW (1.20 ) dmi.board.asset.tag: Not Available dmi.board.name: 4287CTO dmi.board.vendor: LENOVO dmi.board.version: Not Available dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvr8DET50WW(1.20):bd07/07/2011:svnLENOVO:pn4287CTO:pvrThinkPadX220:rvnLENOVO:rn4287CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 4287CTO dmi.product.version: ThinkPad X220 dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/usb-modeswitch/+bug/927954/+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