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


   > > 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 ?? ()     
   > > ```
   > 
   > @masayuki2009
   > 
   > Could you show me your nxplayer cmd line ?
   > 
   > mine :
   > nsh> mount -t hostfs -o fs=/home/ligd/platform/FFmpeg/st /data
   > nsh> nxplayer
   > nxplayer> device /dev/audio/pcm0p
   > nxplayer> playraw /data/test2.wav 1 16 48000
   
   @GUIDINGLI 
   The followings are actual sequences.
   
   ```
   NuttShell (NSH) NuttX-8.2.0                                                  
                                                                             
   nsh> mount -t hostfs -o fs=/home/ishikawa/nuttx_root /host                   
                                                                             
   mount -t hostfs -o fs=/home/ishikawa/nuttx_root /host                        
                                                                             
   nsh> ls -l /host                                                             
                                                                             
   ls -l /host                                                                  
                                                                             
   /host:                                                                       
                                                                             
    drwxrwxr-x    4096 ..                                                       
                                                                             
    -rw-rw-r--34108636 sample1.wav                                              
                                                                             
    drwxrwxr-x    4096 .                                                        
                                                                             
   nsh> ls -l /dev/audio                                                        
                                                                             
   ls -l /dev/audio                                                             
                                                                             
   /dev/audio:                                                                  
                                                                             
    crw-rw-rw-       0 pcm0c                                                    
                                                                             
    crw-rw-rw-       0 pcm0p                                                    
                                                                             
   nsh> nxplayer                                                                
                                                                             
   nxplayer                                                                     
                                                                             
   NxPlayer version 1.05                                                        
                                                                             
   h for commands, q to exit                                                    
                                                                             
                                                                                
                                                                             
   nxplayer> device /dev/audio/pcm0p                                            
                                                                             
   device /dev/audio/pcm0p                                                      
                                                                             
   nxplayer> playraw /host/sample1.wav 2 16 44100  
   ```
   


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to