All of lore.kernel.org
 help / color / mirror / Atom feed
* How to debug ?
@ 2003-04-01 22:48 Giuliano Pochini
  0 siblings, 0 replies; 21+ messages in thread
From: Giuliano Pochini @ 2003-04-01 22:48 UTC (permalink / raw)
  To: alsa-devel


My driver do not work anymore with xmms (alsa-xmms plugin) and
alsaplayer. I have no idea when that happened because I always use
alsa-utils to make tests and I made a lot of changes since the last time
I tested xmms and ap. Alsaplayer writes this:

[Giu@Jay Giu]$ alsaplayer 
ALSA lib pcm_mmap.c:351:(snd_pcm_mmap) mmap failed: Invalid argument
Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_BE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (23219 23220)
PERIOD_SIZE: 1024
PERIOD_BYTES: 4096
PERIODS: 8
BUFFER_TIME: (185759 185760)
BUFFER_SIZE: 8192
BUFFER_BYTES: 32768
TICK_TIME: 10000

But the ll driver writelogs:

pcm_hw_params (bufsize=32768B periods=16 persize=2048B)
pcm_hw_params ok
Prepare rate=44100 format=2 channels=2
Prepare ok
(Format 2 is S16_LE).

Xmms says "sample format not available:invalid argument". My driver do
not report any failure, so the error comes from the middle layer or from
alsa-lib. How can I debug it ? I'm using 0.9.2 release.


Bye.




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

^ permalink raw reply	[flat|nested] 21+ messages in thread
* How to debug?
@ 2012-01-27 22:51 Jalil Karimov <jukarimov@gmail.com>
  2012-01-27 19:05 ` Mulyadi Santosa
  2012-01-30 18:41 ` Littlefield, Tyler
  0 siblings, 2 replies; 21+ messages in thread
From: Jalil Karimov <jukarimov@gmail.com> @ 2012-01-27 22:51 UTC (permalink / raw)
  To: kernelnewbies


As I learn C, I decided to write a small dictionary program,
for my linux box.
Unfortunatly, I'm unable to proceed because of that weird bug which
I can't debug (no source of crash). Any help is appreciated.

strace:
read(3, "\270) file box\n 3) \321\200\320\260\320\267\320\263. \320\277\321\200\320\265"..., 4096) = 4096
read(3, "mixture of vodka and beer\n", 4096) = 26
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7860000, 4096)                = 0
write(4, "\320\275\320\276-\320\266\321\221\320\273\321\202\321\213\320\271 at 11618255\n\321\217\320\270\321"..., 3875) = 3875
close(4)                                = 0
munmap(0xb785f000, 4096)                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

gdb:
Program received signal SIGSEGV, Segmentation fault.
0x80d15d70 in ?? ()

valgrind:
==11809== Memcheck, a memory error detector
==11809== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==11809== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==11809== Command: ./dic -u
==11809== Parent PID: 1662
==11809== 
==11809== Jump to the invalid address stated on the next line
==11809==    at 0x80D15D70: ???
==11809==  Address 0x80d15d70 is not stack'd, malloc'd or (recently) free'd
==11809== 
==11809== 
==11809== Process terminating with default action of signal 11 (SIGSEGV)
==11809==  Access not within mapped region at address 0x80D15D70
==11809==    at 0x80D15D70: ???
==11809==  If you believe this happened as a result of a stack
==11809==  overflow in your program's main thread (unlikely but
==11809==  possible), you can try to increase the size of the
==11809==  main thread stack using the --main-stacksize= flag.
==11809==  The main thread stack size used in this run was 8388608.
==11809== 
==11809== HEAP SUMMARY:
==11809==     in use at exit: 70 bytes in 2 blocks
==11809==   total heap usage: 426,629 allocs, 426,627 frees, 224,953,822 bytes allocated
==11809== 
==11809== LEAK SUMMARY:
==11809==    definitely lost: 70 bytes in 2 blocks
==11809==    indirectly lost: 0 bytes in 0 blocks
==11809==      possibly lost: 0 bytes in 0 blocks
==11809==    still reachable: 0 bytes in 0 blocks
==11809==         suppressed: 0 bytes in 0 blocks
==11809== Rerun with --leak-check=full to see details of leaked memory
==11809== 
==11809== For counts of detected and suppressed errors, rerun with: -v
==11809== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 20 from 7)

^ permalink raw reply	[flat|nested] 21+ messages in thread
* How to debug?
@ 2007-01-30 21:51 Ronny Standtke
  2007-02-02 18:14 ` Takashi Iwai
  0 siblings, 1 reply; 21+ messages in thread
From: Ronny Standtke @ 2007-01-30 21:51 UTC (permalink / raw)
  To: alsa-devel

Hi all,

I am desperately trying to use a webcam and a headset with my Linux-Desktop 
(KDE). You can read the whole thread here: 
http://lists.kde.org/?l=kde-linux&m=116749763322140&w=2
At the end someone from the KDE camp suggested that I come over here...

So I asked for help at the alsa-user mailing list:
http://www.mail-archive.com/alsa-user%40lists.sourceforge.net/msg18711.html
At the end nobody could tell me how to get more debugging info.

So please, how do I get more debugging info when reloading alsa? Or even 
better, does anybody know why my on-board soundcard disappears when I use the 
index options?

Greetings & Thank you

Ronny Standtke

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: How to debug ?
@ 2003-04-02  0:17 Giuliano Pochini
  2003-04-02 10:03 ` Takashi Iwai
  0 siblings, 1 reply; 21+ messages in thread
From: Giuliano Pochini @ 2003-04-02  0:17 UTC (permalink / raw)
  To: alsa-devel


> My driver do not work anymore with xmms (alsa-xmms plugin) and
> alsaplayer. [...]

I tried to force the alsaplayer plugin to set S16_LE format (data is BE
on powerpc) and it do not spit that errors anymore, but it do not play
anything and in the logs alsa prints:

ALSA ../alsa-kernel/core/pcm_lib.c:2219: BUG? (substream->ops->copy !=
((void *)0) || runtime->dma_area != ((void *)0)) (called from d2040794)
last message repeated 11886 times

I don't set .copy callback and ->dma_area should be 0 because the card
uses a sg-list. #:(

Bye.




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

^ permalink raw reply	[flat|nested] 21+ messages in thread
* how to debug?
@ 1999-08-23 13:33 Wang Yong
  0 siblings, 0 replies; 21+ messages in thread
From: Wang Yong @ 1999-08-23 13:33 UTC (permalink / raw)
  To: linuxppc mail list


Hi all:
  We are now working on a new version linux for PPC401GF embedded
controller. The problem is how to debug it? We have the evaluation board of
PPC401GF from IBM with a machine code level debuger, ROMMonitor. it's so
hard to use. I am considerring if I can debug the kernel on some kind of PC,
such as Apple Mac which uses PPC604 or PPC603 as cpu. Does anyone has
experience on it. How about share it? Thank you.

Regards,
Wang


[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-01-30 18:41 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-01 22:48 How to debug ? Giuliano Pochini
  -- strict thread matches above, loose matches on Subject: below --
2012-01-27 22:51 How to debug? Jalil Karimov <jukarimov@gmail.com>
2012-01-27 19:05 ` Mulyadi Santosa
2012-01-28  1:06   ` Jalil Karimov <jukarimov@gmail.com>
2012-01-28  4:39     ` Mulyadi Santosa
2012-01-30 18:41 ` Littlefield, Tyler
2007-01-30 21:51 Ronny Standtke
2007-02-02 18:14 ` Takashi Iwai
2007-02-02 20:44   ` Ronny Standtke
2007-02-05 15:43     ` Takashi Iwai
2007-02-06 22:14       ` Ronny Standtke
2003-04-02  0:17 How to debug ? Giuliano Pochini
2003-04-02 10:03 ` Takashi Iwai
2003-04-02 10:33   ` Giuliano Pochini
2003-04-02 10:40     ` Takashi Iwai
2003-04-02 10:55       ` Giuliano Pochini
2003-04-02 15:04         ` Takashi Iwai
2003-04-02 15:18           ` Giuliano Pochini
2003-04-02 16:05             ` Takashi Iwai
2003-04-03 15:14               ` Giuliano Pochini
1999-08-23 13:33 how to debug? Wang Yong

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.