GUIDINGLI edited a comment on pull request #2124:
URL: https://github.com/apache/incubator-nuttx/pull/2124#issuecomment-721485562


   > @masayuki2009 
   > 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 ?? ()     
   > ```
   
   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
   
   


----------------------------------------------------------------
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