Running the tools, eg. garmin_get_info results in segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
garmin-forerunner-tools (Debian) |
Fix Released
|
Unknown
|
|||
garmin-forerunner-tools (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Issue seems to have occurred and been fixed in Debian:
https:/
---
Information
1)
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
2)
$ apt-cache policy garmin-
garmin-
Installed: 0.10repacked-8
Candidate: 0.10repacked-8
Version table:
*** 0.10repacked-8 500
500 http://
100 /var/lib/
3)
When I run garmin_get_info, I expect it to load my running track from my Garmin Forerunner 305. It used to work in Ubuntu 14.04.
4)
$ garmin_get_info
Segmentation fault (core dumped)
---
$ garmin_get_info -v
[garmin] libusb_init succeeded
[garmin] found VID 091e, PID 0003[garmin] libusb_open = 0x14f3d90
[garmin] libusb_
[garmin] libusb_
[garmin] libusb_
[garmin] intr IN = 1
[garmin] bulk OUT = 2
[garmin] bulk IN = 3
<write type="0x00" id="0x0005" size="0"/>
<write type="0x00" id="0x0005" size="0"/>
<write type="0x00" id="0x0005" size="0"/>
<write type="0x14" id="0x00fe" size="0"/>
<garmin_unit id="0">
<garmin_product id="0" software_
<product_
</garmin_product>
<garmin_protocols>
<garmin_physical protocol="P000"/>
<garmin_link protocol="L000"/>
<garmin_command protocol="A000"/>
</garmin_
</garmin_unit>
---
$ valgrind garmin_get_info
==7921== Memcheck, a memory error detector
==7921== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==7921== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==7921== Command: garmin_get_info
==7921==
==7921== Use of uninitialised value of size 8
==7921== at 0x4E3C834: garmin_open (in /usr/lib/
==7921== by 0x4E455AF: garmin_init (in /usr/lib/
==7921== by 0x400774: ??? (in /usr/bin/
==7921== by 0x529582F: (below main) (libc-start.c:291)
==7921==
==7921== Invalid read of size 8
==7921== at 0x4E3C838: garmin_open (in /usr/lib/
==7921== by 0x4E455AF: garmin_init (in /usr/lib/
==7921== by 0x400774: ??? (in /usr/bin/
==7921== by 0x529582F: (below main) (libc-start.c:291)
==7921== Address 0xffffffff00000002 is not stack'd, malloc'd or (recently) free'd
==7921==
==7921==
==7921== Process terminating with default action of signal 11 (SIGSEGV)
==7921== Access not within mapped region at address 0xFFFFFFFF00000002
==7921== at 0x4E3C838: garmin_open (in /usr/lib/
==7921== by 0x4E455AF: garmin_init (in /usr/lib/
==7921== by 0x400774: ??? (in /usr/bin/
==7921== by 0x529582F: (below main) (libc-start.c:291)
==7921== If you believe this happened as a result of a stack
==7921== overflow in your program's main thread (unlikely but
==7921== possible), you can try to increase the size of the
==7921== main thread stack using the --main-stacksize= flag.
==7921== The main thread stack size used in this run was 8388608.
==7921==
==7921== HEAP SUMMARY:
==7921== in use at exit: 25,232 bytes in 52 blocks
==7921== total heap usage: 3,140 allocs, 3,088 frees, 1,913,408 bytes allocated
==7921==
==7921== LEAK SUMMARY:
==7921== definitely lost: 0 bytes in 0 blocks
==7921== indirectly lost: 0 bytes in 0 blocks
==7921== possibly lost: 360 bytes in 4 blocks
==7921== still reachable: 24,872 bytes in 48 blocks
==7921== suppressed: 0 bytes in 0 blocks
==7921== Rerun with --leak-check=full to see details of leaked memory
==7921==
==7921== For counts of detected and suppressed errors, rerun with: -v
==7921== Use --track-origins=yes to see where uninitialised values come from
==7921== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Killed
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: garmin-
ProcVersionSign
Uname: Linux 4.4.0-34-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Aug 13 22:30:39 2016
InstallationDate: Installed on 2014-01-04 (952 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: garmin-
UpgradeStatus: Upgraded to xenial on 2016-07-30 (14 days ago)
Changed in garmin-forerunner-tools (Debian): | |
status: | Unknown → Fix Released |
Changed in garmin-forerunner-tools (Ubuntu): | |
importance: | Undecided → Medium |
Status changed to 'Confirmed' because the bug affects multiple users.