Bug 244976 - programs that call snd_pcm_open segfault if debugged inside kdevelop
Summary: programs that call snd_pcm_open segfault if debugged inside kdevelop
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kdevelop
Version: 7
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-20 11:39 UTC by Frank Duignan
Modified: 2008-08-02 23:40 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-04-25 04:12:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Duignan 2007-06-20 11:39:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070603 Fedora/2.0.0.4-2.fc7 Firefox/2.0.0.4

Description of problem:
Program code to cause bug (paste over a simple kdevelop C, "Hello World" program).  Note: must link against libasound:
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <alsa/asoundlib.h>

main (int argc, char *argv[])

{
	int i;
	int err;
	short buf[128];
	snd_pcm_t *capture_handle;
	snd_pcm_hw_params_t *hw_params;
        printf("opening %s ... \n",argv[1]);
        i = 0;

	if ((err = snd_pcm_open (&capture_handle, argv[1], SND_PCM_STREAM_CAPTURE, 0)) < 0) {
		fprintf (stderr, "cannot open audio device %s (%s)\n", 
			 argv[1],
			 snd_strerror (err));
		exit (1);
	}
	   
	printf("Open worked\n");
	snd_pcm_close (capture_handle); 
	exit (0);
}

Version-Release number of selected component (if applicable):
kdevelop-3.3.6

How reproducible:
Always


Steps to Reproduce:
1. Start a new C "hello world" project in Kdevelop
2. Paste over template code with code from description section
3. Build
4. Run works fine.
5. Set a breakpoint anywhere and try debug (run to breakpoint)

Actual Results:
Segmentation fault

Expected Results:
Program should have debugged

Additional info:

Comment 1 Rex Dieter 2007-06-20 11:46:12 UTC
This looks like a good candidate to be reported upstream to bugs.kde.org.

In the meantime, would you be willing to try kdevelop-3.4.1 in updates-testing
to see if it resolves your issue?

Comment 2 Brian Powell 2008-04-25 04:12:20 UTC
The information we've requested above is required in order
to review this problem report further and diagnose/fix the
issue if it is still present.  Since there have not been any
updates to the report since thirty (30) days or more since we
requested additional information, we're assuming the problem
is either no longer present in the current Fedora release, or
that there is no longer any interest in tracking the problem.

Setting status to "CLOSED INSUFFICIENT_DATA".  If you still
experience this problem after updating to our latest Fedora
release and can provide the information previously requested, 
please feel free to reopen the bug report.

Thank you in advance.

Note that maintenance for Fedora 7 will end 30 days after the GA of Fedora 9.


Note You need to log in before you can comment on or make changes to this bug.