pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53369: audio/mpg321 coredumps with SIGSEGV



>Number:         53369
>Category:       pkg
>Synopsis:       audio/mpg321 coredumps with SIGSEGV
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 15 19:15:00 +0000 2018
>Originator:     Sevan Janiyan
>Release:        pkgsrc-current
>Organization:
>Environment:
NetBSD 8.0_RC1 macppc powerpc

>Description:
Attempting to play a .wav or .mp3 file with mpg321 results in a coredump, sometimes just executing mpg321 without any options also coredumps.

Core was generated by `mpg321'.                                                                                                                                                
Program terminated with signal SIGSEGV, Segmentation fault.                                                                                                                    
#0  0xfdeb50a8 in sem_post () from /usr/lib/libpthread.so.1                                                                                                                    
(gdb) bt                                                                                                                                                                       
#0  0xfdeb50a8 in sem_post () from /usr/lib/libpthread.so.1                                                                                                                    
#1  0x0180aadc in main (argc=<optimized out>, argv=0xffffe8f4) at mpg321.c:755                                                                                                 
(gdb)  x/i $pc                                                                                                                                                                 
=> 0xfdeb50a8 <sem_post+36>:    lwz     r3,12(r9)                                                                                                                              
(gdb) disassemble                                                                                                                                                              
Dump of assembler code for function sem_post:                                                                                                                                  
   0xfdeb5084 <+0>:     mflr    r0                                                                                                                                             
   0xfdeb5088 <+4>:     stwu    r1,-16(r1)                                                                                                                                     
   0xfdeb508c <+8>:     bcl     20,4*cr7+so,0xfdeb5090 <sem_post+12>                                                                                                           
   0xfdeb5090 <+12>:    stw     r30,8(r1)                                                                                                                                      
   0xfdeb5094 <+16>:    mflr    r30                                                                                                                                            
   0xfdeb5098 <+20>:    stw     r0,20(r1)                                                                                                                                      
   0xfdeb509c <+24>:    lwz     r9,0(r3)                                                                                                                                       
   0xfdeb50a0 <+28>:    addis   r30,r30,2
   0xfdeb50a4 <+32>:    addi    r30,r30,21752
=> 0xfdeb50a8 <+36>:    lwz     r3,12(r9)
   0xfdeb50ac <+40>:    bl      0xfdebe3a0 <00008000.got2.plt_pic32._ksem_post>
   0xfdeb50b0 <+44>:    lwz     r0,20(r1)
   0xfdeb50b4 <+48>:    lwz     r30,8(r1)
   0xfdeb50b8 <+52>:    mtlr    r0
   0xfdeb50bc <+56>:    addi    r1,r1,16
   0xfdeb50c0 <+60>:    blr
End of assembler dump.
(gdb) info registers
r0             0x180aadc        25209564
r1             0xffffded0       4294958800
r2             0xfdedf008       4260229128
r3             0x18206e4        25298660
r4             0x182476c        25315180
r5             0x0      0
r6             0x2580   9600
r7             0x2580   9600
r8             0x1824740        25315136
r9             0x0      0
r10            0x0      0
r11            0x83     131
r12            0xfdef8000       4260331520
r13            0x182867c        25331324
r14            0x0      0
r15            0xfda01800       4255127552
r16            0x0      0
r17            0x1820000        25296896
r18            0x0      0
r19            0x0      0
r20            0x0      0
r21            0x1820000        25296896
r22            0x1820000        25296896
r23            0x0      0
r24            0x0      0
r25            0x1824744        25315140
r26            0xffffe8f4       4294961396
r27            0x0      0
r28            0xfdee0000       4260233216
r29            0x1820690        25298576
r30            0xfdeda588       4260210056
r31            0x18206e4        25298660
pc             0xfdeb50a8       0xfdeb50a8 <sem_post+36>
msr            <unavailable>
cr             0x24000882       603981954
lr             0xfdeb5090       0xfdeb5090 <sem_post+12>
ctr            0xfdeb5084       4260057220
xer            0x20000000       536870912

>How-To-Repeat:
just run mpg321 or try to play a mp3 or wav file
>Fix:



Home | Main Index | Thread Index | Old Index