NetBSD-Bugs archive

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

Re: port-arm/47798: [arm-netbsdelf] /usr/pkgsrc/net/mikutter: core/mui/gtk_web_image_loader.rb:242: [BUG] Segmentation fault



The following reply was made to PR port-arm/47798; it has been noted by GNATS.

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
Cc: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Subject: Re: port-arm/47798: [arm-netbsdelf] /usr/pkgsrc/net/mikutter:
 core/mui/gtk_web_image_loader.rb:242: [BUG] Segmentation fault
Date: Thu, 13 Jun 2013 17:12:36 +0200

 Oh, and one more thing -- upstream also asked:
 
 --- begin quote ---
  The backtrace contained this line:
 #5 0x228a13fc in png_chunk_warning () from /usr/pkg/lib/libpng16.so.16
 
 which suggests a possible problem in png_chunk_format_buffer().
 
 I assume with "-O" it would go ahead and issue a warning about an
 invalid sRGB chunk instead of crashing.
 --- end quote ---
 
 Is there a warning printed when you run it compiled with -O?
  Thomas
 
 On Thu, Jun 13, 2013 at 12:55:01PM +0000, Izumi Tsutsui wrote:
 > The following reply was made to PR port-arm/47798; it has been noted by 
 > GNATS.
 > 
 > From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc: tsutsui%ceres.dti.ne.jp@localhost
 > Subject: Re: port-arm/47798: [arm-netbsdelf] /usr/pkgsrc/net/mikutter: 
 > core/mui/gtk_web_image_loader.rb:242:
 >       [BUG] Segmentation fault
 > Date: Thu, 13 Jun 2013 21:50:06 +0900
 > 
 >  ruby193.core says it fails in new libpng16:
 >  ---
 >  (gdb) bt
 >  #0 0x203746e0 in _lwp_kill () from /usr/lib/libc.so.12
 >  #1 0x203728d4 in abort () from /usr/lib/libc.so.12
 >  #2 0x20080814 in rb_bug () from /usr/pkg/lib/libruby193.so.19
 >  #3 0x20121bd8 in sigsegv () from /usr/pkg/lib/libruby193.so.19
 >  #4 0x20304a7c in __gesf2 () from /usr/lib/libc.so.12
 >  #5 0x228a13fc in png_chunk_warning () from /usr/pkg/lib/libpng16.so.16
 >  #6 0x228a027c in png_icc_set_sRGB () from /usr/pkg/lib/libpng16.so.16
 >  #7 0x228b1950 in png_handle_iCCP () from /usr/pkg/lib/libpng16.so.16
 >  #8 0x228a3b34 in png_push_read_chunk () from /usr/pkg/lib/libpng16.so.16
 >  #9 0x228a4758 in png_process_data () from /usr/pkg/lib/libpng16.so.16
 >  #10 0x228a4758 in png_process_data () from /usr/pkg/lib/libpng16.so.16
 >  Backtrace stopped: previous frame identical to this frame (corrupt stack?)
 >  (gdb)
 >  ---
 >  
 >  and building pkgsrc/graphics/png with -O seems to work around.
 >  
 >  --- /dev/null       2013-06-13 11:45:22.000000000 +0000
 >  +++ pkgsrc/graphics/png/hacks.mk
 >  @@ -0,0 +1,15 @@
 >  +# $NetBSD$
 >  +
 >  +.if !defined(PNG_HACKS_MK)
 >  +PNG_HACKS_MK=      defined
 >  +
 >  +.include "../../mk/compiler.mk"
 >  +
 >  +### gcc-4.5.3 in NetBSD/arm 6.1 causes SEGV in some png functions.
 >  +### -O seems to work around.
 >  +.if !empty(MACHINE_PLATFORM:MNetBSD-*-arm) && !empty(CC_VERSION:Mgcc-4.5.*)
 >  +PKG_HACKS+=                optimisation
 >  +BUILDLINK_TRANSFORM+=      rename:-O[0-9]*:-O
 >  +.endif
 >  +
 >  +.endif     # PNG_HACKS_MK
 >  
 >  ---
 >  Izumi Tsutsui
 >  
 > 
 


Home | Main Index | Thread Index | Old Index