* [ALSA - lib 0000455]: segfault when trying to connect dmix->plug
@ 2004-11-09 15:32 bugtrack
0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2004-11-09 15:32 UTC (permalink / raw)
To: alsa-devel
The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=455>
======================================================================
Reported By: stsp
Assigned To: tiwai
======================================================================
Project: ALSA - lib
Issue ID: 455
Category: pcm - digital audio
Reproducibility: always
Severity: major
Priority: normal
Status: closed
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 08-18-2004 20:20 CEST
Last Modified: 11-09-2004 16:32 CET
======================================================================
Summary: segfault when trying to connect dmix->plug
Description:
Hi.
With the attached configuration I get
segmentation fault:
---
$ ogg123 mise02-ulicka.ogg
ALSA lib pcm_dmix.c:873:(snd_pcm_dmix_open) dmix plugin can be only
connected to hw plugin
Segmentation fault
---
Here is the problematic place:
---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078196992 (LWP 30505)]
snd_pcm_plug_open (pcmp=0xbffff7c0, name=0x43653b13 "default",
sformat=1131543104, schannels=1131543104, srate=1131543104,
route_policy=1131543104, ttable=0x4371fa40, tt_ssize=1131543104,
tt_cused=1131543104, tt_sused=1131543104, slave=0x428c6fdc,
close_slave=1131543104) at pcm_plug.c:1034
1034 pcm->fast_ops = slave->fast_ops;
(gdb) p pcm->fast_ops
$1 = (snd_pcm_fast_ops_t *) 0x0
---
So it is trying to assign to NULL.
======================================================================
----------------------------------------------------------------------
stsp - 09-13-04 18:36
----------------------------------------------------------------------
I guess I have to add the proper description to that patch:
------------
Summary: [ALSA-LIB] dmix: dont forget to return -EINVAL on errors
Description:
snd_pcm_dmix_open() returns success if the open fails attempting
to open not the HW plugin (dmix seems to be limited to use only
the HW plugin right now). This leads to memory corruptions and
eventually a SIGSEGV. The attached patch fixes the omission.
Signed-off-by: Stas Sergeev <stsp@aknet.ru>
----------------------------------------------------------------------
tiwai - 09-15-04 20:44
----------------------------------------------------------------------
Thanks, applied to CVS now.
Issue History
Date Modified Username Field Change
======================================================================
08-18-04 20:20 stsp New Issue
08-18-04 20:20 stsp File Added: asound.conf
08-19-04 10:21 stsp Note Added: 0001589
08-19-04 10:22 stsp File Added: logs.tar.gz
08-19-04 10:23 stsp Issue Monitored: stsp
08-22-04 17:56 stsp File Added: pcm_dmix.c.diff
08-22-04 17:58 stsp Note Added: 0001609
09-13-04 18:36 stsp Note Added: 0001753
09-13-04 18:37 stsp File Added: dmix_ret_fix.diff
09-15-04 20:44 tiwai Status new => resolved
09-15-04 20:44 tiwai Resolution open => fixed
09-15-04 20:44 tiwai Assigned To => tiwai
09-15-04 20:44 tiwai Note Added: 0001764
11-09-04 16:32 tiwai Status resolved => closed
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ALSA - lib 0000455]: segfault when trying to connect dmix->plug
@ 2004-09-15 18:44 bugtrack
0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2004-09-15 18:44 UTC (permalink / raw)
To: alsa-devel
The following bug has been RESOLVED.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000455
======================================================================
Reported By: stsp
Assigned To: tiwai
======================================================================
Project: ALSA - lib
Bug ID: 455
Category: pcm - digital audio
Reproducibility: always
Severity: major
Priority: normal
Status: resolved
Resolution: fixed
======================================================================
Date Submitted: 08-18-2004 20:20 CEST
Last Modified: 09-15-2004 20:44 CEST
======================================================================
Summary: segfault when trying to connect dmix->plug
Description:
Hi.
With the attached configuration I get
segmentation fault:
---
$ ogg123 mise02-ulicka.ogg
ALSA lib pcm_dmix.c:873:(snd_pcm_dmix_open) dmix plugin can be only
connected to hw plugin
Segmentation fault
---
Here is the problematic place:
---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078196992 (LWP 30505)]
snd_pcm_plug_open (pcmp=0xbffff7c0, name=0x43653b13 "default",
sformat=1131543104, schannels=1131543104, srate=1131543104,
route_policy=1131543104, ttable=0x4371fa40, tt_ssize=1131543104,
tt_cused=1131543104, tt_sused=1131543104, slave=0x428c6fdc,
close_slave=1131543104) at pcm_plug.c:1034
1034 pcm->fast_ops = slave->fast_ops;
(gdb) p pcm->fast_ops
$1 = (snd_pcm_fast_ops_t *) 0x0
---
So it is trying to assign to NULL.
======================================================================
----------------------------------------------------------------------
stsp - 08-19-2004 10:21 CEST
----------------------------------------------------------------------
> $1 = (snd_pcm_fast_ops_t *) 0x0
> So it is trying to assign to NULL.
OK, never mind, of course that assignment is valid.
Nothing wrong with the slave->fast_fops either.
But it segfaults here only when some memory debugger
is used (njamd, efence), otherwise it segfaults much
later. Might be some memory corruption.
Attached are backtraces at a crash points: log1 - with
memory debugger; log2 - without. Both looks pretty
useless...
----------------------------------------------------------------------
stsp - 08-22-2004 17:58 CEST
----------------------------------------------------------------------
This was trivial to resolve, patch attached.
Btw, any plans to make dmix to be attachable to other plugins?
----------------------------------------------------------------------
stsp - 09-13-2004 18:36 CEST
----------------------------------------------------------------------
I guess I have to add the proper description to that patch:
------------
Summary: [ALSA-LIB] dmix: dont forget to return -EINVAL on errors
Description:
snd_pcm_dmix_open() returns success if the open fails attempting
to open not the HW plugin (dmix seems to be limited to use only
the HW plugin right now). This leads to memory corruptions and
eventually a SIGSEGV. The attached patch fixes the omission.
Signed-off-by: Stas Sergeev <stsp@aknet.ru>
----------------------------------------------------------------------
tiwai - 09-15-2004 20:44 CEST
----------------------------------------------------------------------
Thanks, applied to CVS now.
Bug History
Date Modified Username Field Change
======================================================================
08-18-04 20:20 stsp New Bug
08-18-04 20:20 stsp File Added: asound.conf
08-19-04 10:21 stsp Bugnote Added: 0001589
08-19-04 10:22 stsp File Added: logs.tar.gz
08-19-04 10:23 stsp Bug Monitored: stsp
08-22-04 17:56 stsp File Added: pcm_dmix.c.diff
08-22-04 17:58 stsp Bugnote Added: 0001609
09-13-04 18:36 stsp Bugnote Added: 0001753
09-13-04 18:37 stsp File Added: dmix_ret_fix.diff
09-15-04 20:44 tiwai Bugnote Added: 0001764
09-15-04 20:44 tiwai Assigned To => tiwai
09-15-04 20:44 tiwai Resolution open => fixed
09-15-04 20:44 tiwai Status new => resolved
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ALSA - lib 0000455]: segfault when trying to connect dmix->plug
@ 2004-09-13 16:36 bugtrack
0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2004-09-13 16:36 UTC (permalink / raw)
To: alsa-devel
A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000455
======================================================================
Reported By: stsp
Assigned To:
======================================================================
Project: ALSA - lib
Bug ID: 455
Category: pcm - digital audio
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 08-18-2004 20:20 CEST
Last Modified: 09-13-2004 18:36 CEST
======================================================================
Summary: segfault when trying to connect dmix->plug
Description:
Hi.
With the attached configuration I get
segmentation fault:
---
$ ogg123 mise02-ulicka.ogg
ALSA lib pcm_dmix.c:873:(snd_pcm_dmix_open) dmix plugin can be only
connected to hw plugin
Segmentation fault
---
Here is the problematic place:
---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078196992 (LWP 30505)]
snd_pcm_plug_open (pcmp=0xbffff7c0, name=0x43653b13 "default",
sformat=1131543104, schannels=1131543104, srate=1131543104,
route_policy=1131543104, ttable=0x4371fa40, tt_ssize=1131543104,
tt_cused=1131543104, tt_sused=1131543104, slave=0x428c6fdc,
close_slave=1131543104) at pcm_plug.c:1034
1034 pcm->fast_ops = slave->fast_ops;
(gdb) p pcm->fast_ops
$1 = (snd_pcm_fast_ops_t *) 0x0
---
So it is trying to assign to NULL.
======================================================================
----------------------------------------------------------------------
stsp - 08-19-2004 10:21 CEST
----------------------------------------------------------------------
> $1 = (snd_pcm_fast_ops_t *) 0x0
> So it is trying to assign to NULL.
OK, never mind, of course that assignment is valid.
Nothing wrong with the slave->fast_fops either.
But it segfaults here only when some memory debugger
is used (njamd, efence), otherwise it segfaults much
later. Might be some memory corruption.
Attached are backtraces at a crash points: log1 - with
memory debugger; log2 - without. Both looks pretty
useless...
----------------------------------------------------------------------
stsp - 08-22-2004 17:58 CEST
----------------------------------------------------------------------
This was trivial to resolve, patch attached.
Btw, any plans to make dmix to be attachable to other plugins?
----------------------------------------------------------------------
stsp - 09-13-2004 18:36 CEST
----------------------------------------------------------------------
I guess I have to add the proper description to that patch:
------------
Summary: [ALSA-LIB] dmix: dont forget to return -EINVAL on errors
Description:
snd_pcm_dmix_open() returns success if the open fails attempting
to open not the HW plugin (dmix seems to be limited to use only
the HW plugin right now). This leads to memory corruptions and
eventually a SIGSEGV. The attached patch fixes the omission.
Signed-off-by: Stas Sergeev <stsp@aknet.ru>
Bug History
Date Modified Username Field Change
======================================================================
08-18-04 20:20 stsp New Bug
08-18-04 20:20 stsp File Added: asound.conf
08-19-04 10:21 stsp Bugnote Added: 0001589
08-19-04 10:22 stsp File Added: logs.tar.gz
08-19-04 10:23 stsp Bug Monitored: stsp
08-22-04 17:56 stsp File Added: pcm_dmix.c.diff
08-22-04 17:58 stsp Bugnote Added: 0001609
09-13-04 18:36 stsp Bugnote Added: 0001753
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ALSA - lib 0000455]: segfault when trying to connect dmix->plug
@ 2004-08-22 15:58 bugtrack
0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2004-08-22 15:58 UTC (permalink / raw)
To: alsa-devel
A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000455
======================================================================
Reported By: stsp
Assigned To:
======================================================================
Project: ALSA - lib
Bug ID: 455
Category: pcm - digital audio
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 08-18-2004 20:20 CEST
Last Modified: 08-22-2004 17:58 CEST
======================================================================
Summary: segfault when trying to connect dmix->plug
Description:
Hi.
With the attached configuration I get
segmentation fault:
---
$ ogg123 mise02-ulicka.ogg
ALSA lib pcm_dmix.c:873:(snd_pcm_dmix_open) dmix plugin can be only
connected to hw plugin
Segmentation fault
---
Here is the problematic place:
---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078196992 (LWP 30505)]
snd_pcm_plug_open (pcmp=0xbffff7c0, name=0x43653b13 "default",
sformat=1131543104, schannels=1131543104, srate=1131543104,
route_policy=1131543104, ttable=0x4371fa40, tt_ssize=1131543104,
tt_cused=1131543104, tt_sused=1131543104, slave=0x428c6fdc,
close_slave=1131543104) at pcm_plug.c:1034
1034 pcm->fast_ops = slave->fast_ops;
(gdb) p pcm->fast_ops
$1 = (snd_pcm_fast_ops_t *) 0x0
---
So it is trying to assign to NULL.
======================================================================
----------------------------------------------------------------------
stsp - 08-19-2004 10:21 CEST
----------------------------------------------------------------------
> $1 = (snd_pcm_fast_ops_t *) 0x0
> So it is trying to assign to NULL.
OK, never mind, of course that assignment is valid.
Nothing wrong with the slave->fast_fops either.
But it segfaults here only when some memory debugger
is used (njamd, efence), otherwise it segfaults much
later. Might be some memory corruption.
Attached are backtraces at a crash points: log1 - with
memory debugger; log2 - without. Both looks pretty
useless...
----------------------------------------------------------------------
stsp - 08-22-2004 17:58 CEST
----------------------------------------------------------------------
This was trivial to resolve, patch attached.
Btw, any plans to make dmix to be attachable to other plugins?
Bug History
Date Modified Username Field Change
======================================================================
08-18-04 20:20 stsp New Bug
08-18-04 20:20 stsp File Added: asound.conf
08-19-04 10:21 stsp Bugnote Added: 0001589
08-19-04 10:22 stsp File Added: logs.tar.gz
08-19-04 10:23 stsp Bug Monitored: stsp
08-22-04 17:56 stsp File Added: pcm_dmix.c.diff
08-22-04 17:58 stsp Bugnote Added: 0001609
======================================================================
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ALSA - lib 0000455]: segfault when trying to connect dmix->plug
@ 2004-08-19 8:21 bugtrack
0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2004-08-19 8:21 UTC (permalink / raw)
To: alsa-devel
A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000455
======================================================================
Reported By: stsp
Assigned To:
======================================================================
Project: ALSA - lib
Bug ID: 455
Category: pcm - digital audio
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 08-18-2004 20:20 CEST
Last Modified: 08-19-2004 10:21 CEST
======================================================================
Summary: segfault when trying to connect dmix->plug
Description:
Hi.
With the attached configuration I get
segmentation fault:
---
$ ogg123 mise02-ulicka.ogg
ALSA lib pcm_dmix.c:873:(snd_pcm_dmix_open) dmix plugin can be only
connected to hw plugin
Segmentation fault
---
Here is the problematic place:
---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078196992 (LWP 30505)]
snd_pcm_plug_open (pcmp=0xbffff7c0, name=0x43653b13 "default",
sformat=1131543104, schannels=1131543104, srate=1131543104,
route_policy=1131543104, ttable=0x4371fa40, tt_ssize=1131543104,
tt_cused=1131543104, tt_sused=1131543104, slave=0x428c6fdc,
close_slave=1131543104) at pcm_plug.c:1034
1034 pcm->fast_ops = slave->fast_ops;
(gdb) p pcm->fast_ops
$1 = (snd_pcm_fast_ops_t *) 0x0
---
So it is trying to assign to NULL.
======================================================================
----------------------------------------------------------------------
stsp - 08-19-2004 10:21 CEST
----------------------------------------------------------------------
> $1 = (snd_pcm_fast_ops_t *) 0x0
> So it is trying to assign to NULL.
OK, never mind, of course that assignment is valid.
Nothing wrong with the slave->fast_fops either.
But it segfaults here only when some memory debugger
is used (njamd, efence), otherwise it segfaults much
later. Might be some memory corruption.
Attached are backtraces at a crash points: log1 - with
memory debugger; log2 - without. Both looks pretty
useless...
Bug History
Date Modified Username Field Change
======================================================================
08-18-04 20:20 stsp New Bug
08-18-04 20:20 stsp File Added: asound.conf
08-19-04 10:21 stsp Bugnote Added: 0001589
======================================================================
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ALSA - lib 0000455]: segfault when trying to connect dmix->plug
@ 2004-08-18 18:20 bugtrack
0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2004-08-18 18:20 UTC (permalink / raw)
To: alsa-devel
The following bug has been SUBMITTED.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000455
======================================================================
Reported By: stsp
Assigned To:
======================================================================
Project: ALSA - lib
Bug ID: 455
Category: pcm - digital audio
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 08-18-2004 20:20 CEST
Last Modified: 08-18-2004 20:20 CEST
======================================================================
Summary: segfault when trying to connect dmix->plug
Description:
Hi.
With the attached configuration I get
segmentation fault:
---
$ ogg123 mise02-ulicka.ogg
ALSA lib pcm_dmix.c:873:(snd_pcm_dmix_open) dmix plugin can be only
connected to hw plugin
Segmentation fault
---
Here is the problematic place:
---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078196992 (LWP 30505)]
snd_pcm_plug_open (pcmp=0xbffff7c0, name=0x43653b13 "default",
sformat=1131543104, schannels=1131543104, srate=1131543104,
route_policy=1131543104, ttable=0x4371fa40, tt_ssize=1131543104,
tt_cused=1131543104, tt_sused=1131543104, slave=0x428c6fdc,
close_slave=1131543104) at pcm_plug.c:1034
1034 pcm->fast_ops = slave->fast_ops;
(gdb) p pcm->fast_ops
$1 = (snd_pcm_fast_ops_t *) 0x0
---
So it is trying to assign to NULL.
======================================================================
Bug History
Date Modified Username Field Change
======================================================================
08-18-04 20:20 stsp New Bug
08-18-04 20:20 stsp File Added: asound.conf
======================================================================
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-11-09 15:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 15:32 [ALSA - lib 0000455]: segfault when trying to connect dmix->plug bugtrack
-- strict thread matches above, loose matches on Subject: below --
2004-09-15 18:44 bugtrack
2004-09-13 16:36 bugtrack
2004-08-22 15:58 bugtrack
2004-08-19 8:21 bugtrack
2004-08-18 18:20 bugtrack
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.