Openmoko Bug #2073: voice-recording.state + arecord: Unable to handle kernel NULL pointer dereference at virtual address 00000000

Openmoko Public Trac bugs at docs.openmoko.org
Sat Jan 24 11:32:02 CET 2009


#2073: voice-recording.state + arecord: Unable to handle kernel NULL pointer
dereference at virtual address 00000000
---------------------+------------------------------------------------------
 Reporter:  lindi    |          Owner:  openmoko-devel
     Type:  defect   |         Status:  new           
 Priority:  normal   |      Milestone:                
Component:  unknown  |        Version:                
 Severity:  normal   |       Keywords:                
 Haspatch:  0        |      Blockedby:                
Estimated:           |    Patchreview:                
 Blocking:           |   Reproducible:  always        
---------------------+------------------------------------------------------

Comment(by lindi):

 If I just avoid dereferencing the NULL pointer I can still sometimes make
 the kernel crash differently. I did

 {{{

 lindi at ginger:/etc/alsa-scenarios$ sudo chvt 1
 lindi at ginger:/etc/alsa-scenarios$ alsactl -f stereoout.state restore
 lindi at ginger:/etc/alsa-scenarios$ alsactl -f voice-recording.state restore
 lindi at ginger:/etc/alsa-scenarios$ arecord -f S16_LE -c1 -r44100
 /dev/shm/a.wav &
 [1] 1777
 lindi at ginger:/etc/alsa-scenarios$ arecord: main:564: audio open error:
 Invalid argument

 [1]+  Exit 1                  arecord -f S16_LE -c1 -r44100 /dev/shm/a.wav
 lindi at ginger:/etc/alsa-scenarios$ alsactl -f stereoout.state restore
 lindi at ginger:/etc/alsa-scenarios$ arecord -f S16_LE -c1 -r44100
 /dev/shm/a.wav &
 [1] 1780
 lindi at ginger:/etc/alsa-scenarios$ Recording WAVE '/dev/shm/a.wav' : Signed
 16 bit Little Endian, Rate 44100 Hz, Mono

 lindi at ginger:/etc/alsa-scenarios$ alsactl -f stereoout.state restore
 }}}

 and with the patch for #2135 I was able to capture the full crash message
 after reboot. I'll attach a complete version to this report but the
 interesting parts are:

 {{{
 INFO: trying to register non-static key.
 [21474693.155000] the code is fine but needs lockdep annotation.
 [21474693.155000] turning off the locking correctness validator.
 [21474693.155000] [<c03a6378>] (dump_stack+0x0/0x14) from [<c0075a74>]
 (__lock_acquire+0x1a0/0x794)
 ...
 [21474693.155000] Unable to handle kernel NULL pointer dereference at
 virtual address 00000004
 ...
 [21474693.155000] [<c02e6b40>] (s3c24xx_pcm_pointer+0x0/0x84) from
 [<c02d3e34>] (snd_pcm_period_elapsed+0xbc/0x330)
 [21474693.155000]  r6:c7a64200 r5:c04f41fc r4:c7a73000
 [21474693.155000] [<c02d3d78>] (snd_pcm_period_elapsed+0x0/0x330) from
 [<c02e6f6c>] (s3c24xx_audio_buffdone+0x2c/0xd0)
 [21474693.155000] [<c02e6f40>] (s3c24xx_audio_buffdone+0x0/0xd0) from
 [<c00431e8>] (s3c2410_dma_irq+0xc4/0x4c4)
 [21474693.155000]  r7:00000022 r6:00000000 r5:c04f41fc r4:c7a163c0
 [21474693.155000] [<c0043124>] (s3c2410_dma_irq+0x0/0x4c4) from
 [<c00830c8>] (handle_IRQ_event+0x2c/0x68)
 [21474693.155000]  r7:00000022 r6:00000000 r5:00000000 r4:c6c4f980
 ...
 [21474693.160000] Kernel panic - not syncing: Fatal exception in interrupt
 [21474693.165000] Rebooting in 10 seconds..arch_reset: attempting watchdog
 reset
 }}}

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2073#comment:12>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the devel mailing list