Bug 605 - Segmentation fault when selecting device twice
Summary: Segmentation fault when selecting device twice
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: Acquisition (show other bugs)
Version: unreleased development snapshot
Hardware: x86 Linux
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
: 463 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-07 13:15 CEST by Oskari Teeri
Modified: 2015-09-04 12:51 CEST (History)
2 users (show)



Attachments
gdb bt and logs (2.02 KB, text/plain)
2015-07-07 13:15 CEST, Oskari Teeri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oskari Teeri 2015-07-07 13:15:04 CEST
Created attachment 139 [details]
gdb bt and logs

Hardware: 	CWAV USBee AX PRO
Driver:		fx2lafw
Software:	PulseView

Using libsigrok 0.3.0 (lib version 2:0:0).
Using libsigrokdecode 0.3.0 (lib version 2:0:0).

This segmentation fault happens when you don't notice the device is already being selected and you accidentally select it again, resulting in a segmentation fault when the 'Run'-button is being pressed.

Reproduce:

1. Connect the CWAV USBee AX PRO.
2. Open PulseView (should already see 'CWAV USBee AX' selected).
3. Scan for fx2lafw devices and select the 'CWAV USBee AX' from the device list.
	- Pop ups error message: "generic/unspecified error Failed to Select Device".
4. Press 'Run' for collecting samples.
	- Segmentation fault at this stage

If you skip step 3 (driver selection) everything works as it should, so the driver selection is not functioning properly.
Comment 2 Soeren Apel 2015-09-04 03:48:02 CEST
*** Bug 463 has been marked as a duplicate of this bug. ***
Comment 3 Uwe Hermann 2015-09-04 12:51:26 CEST
Fixed in 4d6c6ea3e6b069787c270d4911083dae05eae4c6, thanks!