You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/04 02:25:52 UTC

[GitHub] [incubator-nuttx] masayuki2009 commented on pull request #2124: arch/sim: add sim audio support

masayuki2009 commented on pull request #2124:
URL: https://github.com/apache/incubator-nuttx/pull/2124#issuecomment-721475927


   @GUIDINGLI @xiaoxiang781216 
   I tried this PR with ubuntu18.04 x86_64, but nuttx crashed when playback an WAV file via hostfs.
   Could you tell me what environment are you using?
   
   ```
   Thread 1 "nuttx" received signal SIGSEGV, Segmentation fault.                                                                                                                   
   0x00005555555714a2 in file_vioctl (filep=0x10000000d8, req=4100, ap=0x7ffff2c8b520) at vfs/fs_ioctl.c:87                                                                        
   87        inode = filep->f_inode;                                                                                                                                                                                                                                                                                                                     
   p filep                                                                                                                                                                         
   $1 = (struct file *) 0x10000000d8                                                                                                                                               
   (gdb) p *filep                                                                                                                                                                  
   Cannot access memory at address 0x10000000d8                                                                                                                                    
   (gdb) up                                                                                                                                                                        
   #1  0x0000555555571682 in nx_vioctl (fd=4, req=4100, ap=0x7ffff2c8b520) at vfs/fs_ioctl.c:173                                                                                   
   173           ret = file_vioctl(filep, req, ap);                                                                                                                                
   (gdb) where                                                                                                                                                                     
   #0  0x00005555555714a2 in file_vioctl (filep=0x10000000d8, req=4100, ap=0x7ffff2c8b520) at vfs/fs_ioctl.c:87                                                                    
   #1  0x0000555555571682 in nx_vioctl (fd=4, req=4100, ap=0x7ffff2c8b520) at vfs/fs_ioctl.c:173                                                                                   
   #2  0x000055555557197a in ioctl (fd=4, req=4100) at vfs/fs_ioctl.c:259                                                                                                          
   #3  0x000055555558f487 in nxplayer_setvolume (pplayer=0x7ffff2bfa0f0, volume=400) at nxplayer.c:1226                                                                            
   #4  0x000055555558f164 in nxplayer_playthread (pvarg=0x7ffff2bfa0f0) at nxplayer.c:957                                                                                          
   #5  0x0000555555583970 in pthread_start () at pthread/pthread_create.c:192                                                                                                      
   #6  0x0000000000000000 in ?? ()     
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org