NetBSD Problem Report #47798

From www@NetBSD.org  Mon May  6 11:36:06 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 59C5D63F569
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  6 May 2013 11:36:06 +0000 (UTC)
Message-Id: <20130506113559.D9D6663F569@www.NetBSD.org>
Date: Mon,  6 May 2013 11:35:59 +0000 (UTC)
From: jun@soum.co.jp
Reply-To: jun@soum.co.jp
To: gnats-bugs@NetBSD.org
Subject: [arm-netbsdelf] /usr/pkgsrc/net/mikutter: core/mui/gtk_web_image_loader.rb:242: [BUG] Segmentation fault
X-Send-Pr-Version: www-1.0

>Number:         47798
>Category:       port-arm
>Synopsis:       [arm-netbsdelf] gcc -fipa-sra generates broken binaries
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 06 11:40:00 +0000 2013
>Closed-Date:    Fri Mar 01 22:57:50 +0000 2019
>Last-Modified:  Fri Mar 01 22:57:50 +0000 2019
>Originator:     Jun Ebihara
>Release:        NetBSD 6.99.19
>Organization:
SOUM Corporation
>Environment:
NetBSD amiws11 6.99.19 NetBSD 6.99.19 (WZERO3) #3: Tue Apr 30 14:23:03 JST 2013  jun@soum.co.jp:/usr/obj/hpcarm.hpcarm/sys/arch/hpcarm/compile/WZERO3 hpcarm
>Description:
/usr/pkgsrc/net/mikutter on arm-netbsdelf 
On viewing twitter timeline,mikutter fall into Segmentation fault.

/usr/pkg/share/mikutter/core/plugin/display_requirements/display_requirements.rb:5: warning: already initialized constant CACHE_DIR
gui_pane_join_window :default, :default
/usr/pkg/share/mikutter/core/plugin/gtk/gtk.rb: line 377
   Gtk-CRITICAL **:IA__gtk_window_set_focus: assertion `gtk_widget_get_can_focus (focus)' failed
/usr/pkg/share/mikutter/core/plugin/gtk/gtk.rb: line 377
   Gtk-CRITICAL **:IA__gtk_window_set_focus: assertion `gtk_widget_get_can_focus (focus)' failed
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:242: [BUG] Segmentation fault
ruby 1.9.3p392 (2013-02-22 revision 39386) [arm-netbsdelf]

-- Control frame information -----------------------------------------------
c:0019 p:---- s:0079 b:0079 l:000078 d:000078 CFUNC  :write
c:0018 p:0049 s:0075 b:0075 l:000074 d:000074 METHOD /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:242
c:0017 p:0054 s:0066 b:0063 l:001dc4 d:000062 BLOCK  /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:210
c:0016 p:---- s:0056 b:0056 l:000055 d:000055 FINISH
c:0015 p:---- s:0054 b:0054 l:000053 d:000053 CFUNC  :call
c:0014 p:0266 s:0048 b:0048 l:000030 d:000047 BLOCK  /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:115
c:0013 p:0005 s:0041 b:0041 l:000035 d:000040 BLOCK  /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader_image_cache.rb:28
c:0012 p:0019 s:0039 b:0039 l:000038 d:000038 METHOD /usr/pkg/lib/ruby/1.9.3/monitor.rb:211
c:0011 p:0037 s:0036 b:0036 l:000035 d:000035 METHOD /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader_image_cache.rb:27
c:0010 p:0019 s:0031 b:0031 l:000030 d:000030 METHOD /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:94
c:0009 p:0015 s:0026 b:0026 l:001e04 d:000025 BLOCK  /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:84
c:0008 p:---- s:0024 b:0024 l:000023 d:000023 FINISH
c:0007 p:---- s:0022 b:0022 l:000021 d:000021 CFUNC  :call
c:0006 p:0032 s:0019 b:0019 l:0022b4 d:000484 BLOCK  /usr/pkg/share/mikutter/core/serialthread.rb:63
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 FINISH
c:0004 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC  :call
c:0003 p:0016 s:0010 b:0010 l:001bd4 d:000009 BLOCK  /usr/pkg/share/mikutter/core/lib/deferred/deferred.rb:71
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP   

-- Ruby level backtrace information ----------------------------------------
/usr/pkg/share/mikutter/core/lib/deferred/deferred.rb:71:in `block in initialize'
/usr/pkg/share/mikutter/core/lib/deferred/deferred.rb:71:in `call'
/usr/pkg/share/mikutter/core/serialthread.rb:63:in `block in new_thread'
/usr/pkg/share/mikutter/core/serialthread.rb:63:in `call'
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:84:in `block in get_raw_data'
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:94:in `get_raw_data_load_proc'
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader_image_cache.rb:27:in `synchronize'
/usr/pkg/lib/ruby/1.9.3/monitor.rb:211:in `mon_synchronize'
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader_image_cache.rb:28:in `block in synchronize'
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:115:in `block in get_raw_data_load_proc'
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:115:in `call'
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:210:in `block in via_internet'
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:242:in `inmemory2pixbuf'
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:242:in `write'

-- Other runtime information -----------------------------------------------

* Loaded script: /usr/pkg/share/mikutter/mikutter.rb

* Loaded features:

    0 enumerator.so
    1 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/enc/encdb.so
    2 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/enc/trans/transdb.so
    3 /usr/pkg/lib/ruby/1.9.3/rubygems/defaults.rb
    4 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/rbconfig.rb
    5 /usr/pkg/lib/ruby/1.9.3/rubygems/deprecate.rb
    6 /usr/pkg/lib/ruby/1.9.3/rubygems/exceptions.rb
    7 /usr/pkg/lib/ruby/1.9.3/rubygems/custom_require.rb
    8 /usr/pkg/lib/ruby/1.9.3/rubygems.rb
    9 /usr/pkg/lib/ruby/1.9.3/benchmark.rb
   10 /usr/pkg/lib/ruby/1.9.3/webrick/compat.rb
   11 /usr/pkg/lib/ruby/1.9.3/webrick/version.rb
   12 /usr/pkg/lib/ruby/1.9.3/webrick/httpversion.rb
   13 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/socket.so
   14 /usr/pkg/lib/ruby/1.9.3/socket.rb
   15 /usr/pkg/lib/ruby/1.9.3/delegate.rb
   16 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/etc.so
   17 /usr/pkg/lib/ruby/1.9.3/fileutils.rb
   18 /usr/pkg/lib/ruby/1.9.3/tmpdir.rb
   19 /usr/pkg/lib/ruby/1.9.3/thread.rb
   20 /usr/pkg/lib/ruby/1.9.3/tempfile.rb
   21 /usr/pkg/lib/ruby/1.9.3/webrick/httputils.rb
   22 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/fcntl.so
   23 /usr/pkg/lib/ruby/1.9.3/timeout.rb
   24 /usr/pkg/lib/ruby/1.9.3/singleton.rb
   25 /usr/pkg/lib/ruby/1.9.3/webrick/utils.rb
   26 /usr/pkg/lib/ruby/1.9.3/webrick/log.rb
   27 /usr/pkg/lib/ruby/1.9.3/webrick/config.rb
   28 /usr/pkg/lib/ruby/1.9.3/webrick/server.rb
   29 /usr/pkg/lib/ruby/1.9.3/webrick/accesslog.rb
   30 /usr/pkg/lib/ruby/1.9.3/webrick/htmlutils.rb
   31 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/date_core.so
   32 /usr/pkg/lib/ruby/1.9.3/date/format.rb
   33 /usr/pkg/lib/ruby/1.9.3/date.rb
   34 /usr/pkg/lib/ruby/1.9.3/time.rb
   35 /usr/pkg/lib/ruby/1.9.3/webrick/cookie.rb
   36 /usr/pkg/lib/ruby/1.9.3/webrick/httpstatus.rb
   37 /usr/pkg/lib/ruby/1.9.3/uri/common.rb
   38 /usr/pkg/lib/ruby/1.9.3/uri/generic.rb
   39 /usr/pkg/lib/ruby/1.9.3/uri/ftp.rb
   40 /usr/pkg/lib/ruby/1.9.3/uri/http.rb
   41 /usr/pkg/lib/ruby/1.9.3/uri/https.rb
   42 /usr/pkg/lib/ruby/1.9.3/uri/ldap.rb
   43 /usr/pkg/lib/ruby/1.9.3/uri/ldaps.rb
   44 /usr/pkg/lib/ruby/1.9.3/uri/mailto.rb
   45 /usr/pkg/lib/ruby/1.9.3/uri.rb
   46 /usr/pkg/lib/ruby/1.9.3/webrick/httprequest.rb
   47 /usr/pkg/lib/ruby/1.9.3/webrick/httpresponse.rb
   48 /usr/pkg/lib/ruby/1.9.3/webrick/httpservlet/abstract.rb
   49 /usr/pkg/lib/ruby/1.9.3/webrick/httpservlet/filehandler.rb
   50 /usr/pkg/lib/ruby/1.9.3/webrick/httpservlet/cgihandler.rb
   51 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/strscan.so
   52 /usr/pkg/lib/ruby/1.9.3/erb.rb
   53 /usr/pkg/lib/ruby/1.9.3/webrick/httpservlet/erbhandler.rb
   54 /usr/pkg/lib/ruby/1.9.3/webrick/httpservlet/prochandler.rb
   55 /usr/pkg/lib/ruby/1.9.3/webrick/httpservlet.rb
   56 /usr/pkg/lib/ruby/1.9.3/webrick/httpserver.rb
   57 /usr/pkg/lib/ruby/1.9.3/webrick/httpauth/authenticator.rb
   58 /usr/pkg/lib/ruby/1.9.3/webrick/httpauth/basicauth.rb
   59 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/digest.so
   60 /usr/pkg/lib/ruby/1.9.3/digest.rb
   61 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/digest/md5.so
   62 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/digest/sha1.so
   63 /usr/pkg/lib/ruby/1.9.3/webrick/httpauth/digestauth.rb
   64 /usr/pkg/lib/ruby/1.9.3/webrick/httpauth/userdb.rb
   65 /usr/pkg/lib/ruby/1.9.3/webrick/httpauth/htpasswd.rb
   66 /usr/pkg/lib/ruby/1.9.3/webrick/httpauth/htdigest.rb
   67 /usr/pkg/lib/ruby/1.9.3/webrick/httpauth/htgroup.rb
   68 /usr/pkg/lib/ruby/1.9.3/webrick/httpauth.rb
   69 /usr/pkg/lib/ruby/1.9.3/webrick.rb
   70 /usr/pkg/lib/ruby/1.9.3/optparse.rb
   71 /usr/pkg/share/mikutter/core/boot/option.rb
   72 /usr/pkg/lib/ruby/1.9.3/psych/syntax_error.rb
   73 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/psych.so
   74 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/stringio.so
   75 /usr/pkg/lib/ruby/1.9.3/psych/nodes/node.rb
   76 /usr/pkg/lib/ruby/1.9.3/psych/nodes/stream.rb
   77 /usr/pkg/lib/ruby/1.9.3/psych/nodes/document.rb
   78 /usr/pkg/lib/ruby/1.9.3/psych/nodes/sequence.rb
   79 /usr/pkg/lib/ruby/1.9.3/psych/nodes/scalar.rb
   80 /usr/pkg/lib/ruby/1.9.3/psych/nodes/mapping.rb
   81 /usr/pkg/lib/ruby/1.9.3/psych/nodes/alias.rb
   82 /usr/pkg/lib/ruby/1.9.3/psych/nodes.rb
   83 /usr/pkg/lib/ruby/1.9.3/psych/streaming.rb
   84 /usr/pkg/lib/ruby/1.9.3/psych/visitors/visitor.rb
   85 /usr/pkg/lib/ruby/1.9.3/psych/scalar_scanner.rb
   86 /usr/pkg/lib/ruby/1.9.3/psych/visitors/to_ruby.rb
   87 /usr/pkg/lib/ruby/1.9.3/psych/visitors/emitter.rb
   88 /usr/pkg/lib/ruby/1.9.3/psych/visitors/yaml_tree.rb
   89 /usr/pkg/lib/ruby/1.9.3/psych/json/ruby_events.rb
   90 /usr/pkg/lib/ruby/1.9.3/psych/visitors/json_tree.rb
   91 /usr/pkg/lib/ruby/1.9.3/psych/visitors/depth_first.rb
   92 /usr/pkg/lib/ruby/1.9.3/psych/visitors.rb
   93 /usr/pkg/lib/ruby/1.9.3/psych/handler.rb
   94 /usr/pkg/lib/ruby/1.9.3/psych/tree_builder.rb
   95 /usr/pkg/lib/ruby/1.9.3/psych/parser.rb
   96 /usr/pkg/lib/ruby/1.9.3/psych/omap.rb
   97 /usr/pkg/lib/ruby/1.9.3/psych/set.rb
   98 /usr/pkg/lib/ruby/1.9.3/psych/coder.rb
   99 /usr/pkg/lib/ruby/1.9.3/psych/core_ext.rb
  100 /usr/pkg/lib/ruby/1.9.3/psych/deprecated.rb
  101 /usr/pkg/lib/ruby/1.9.3/psych/stream.rb
  102 /usr/pkg/lib/ruby/1.9.3/psych/json/yaml_events.rb
  103 /usr/pkg/lib/ruby/1.9.3/psych/json/tree_builder.rb
  104 /usr/pkg/lib/ruby/1.9.3/psych/json/stream.rb
  105 /usr/pkg/lib/ruby/1.9.3/psych/handlers/document_stream.rb
  106 /usr/pkg/lib/ruby/1.9.3/psych.rb
  107 /usr/pkg/lib/ruby/1.9.3/yaml.rb
  108 /usr/pkg/lib/ruby/1.9.3/pstore.rb
  109 /usr/pkg/lib/ruby/1.9.3/monitor.rb
  110 /usr/pkg/lib/ruby/1.9.3/open-uri.rb
  111 /usr/pkg/lib/ruby/1.9.3/set.rb
  112 /usr/pkg/share/mikutter/core/miquire.rb
  113 /usr/pkg/share/mikutter/core/lib/lazy.rb
  114 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/memoize.rb
  115 /usr/pkg/share/mikutter/core/config.rb
  116 /usr/pkg/share/mikutter/core/environment.rb
  117 /usr/pkg/share/mikutter/core/utils.rb
  118 /usr/pkg/share/mikutter/core/boot/check_config_permission.rb
  119 /usr/pkg/share/mikutter/core/lib/weakstorage.rb
  120 /usr/pkg/share/mikutter/core/retriever.rb
  121 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/pathname.so
  122 /usr/pkg/lib/ruby/1.9.3/pathname.rb
  123 /usr/pkg/lib/ruby/1.9.3/English.rb
  124 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/glib2/deprecatable.rb
  125 /usr/pkg/lib/ruby/1.9.3/rubygems/version.rb
  126 /usr/pkg/lib/ruby/1.9.3/rubygems/requirement.rb
  127 /usr/pkg/lib/ruby/1.9.3/rubygems/platform.rb
  128 /usr/pkg/lib/ruby/1.9.3/rubygems/specification.rb
  129 /usr/pkg/lib/ruby/1.9.3/rubygems/path_support.rb
  130 /usr/pkg/lib/ruby/1.9.3/rubygems/dependency.rb
  131 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/arm-netbsdelf/glib2.so
  132 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/glib2.rb
  133 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/arm-netbsdelf/atk.so
  134 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/atk.rb
  135 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/color.rb
  136 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/paper.rb
  137 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/arm-netbsdelf/cairo.so
  138 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/constants.rb
  139 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/point.rb
  140 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/colors.rb
  141 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/papers.rb
  142 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/context/rectangle.rb
  143 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/context/triangle.rb
  144 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/context/circle.rb
  145 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/context/path.rb
  146 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/context/blur.rb
  147 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/context/color.rb
  148 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/context.rb
  149 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/device.rb
  150 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/surface.rb
  151 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/pattern.rb
  152 /usr/pkg/lib/ruby/1.9.3/forwardable.rb
  153 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo/path.rb
  154 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/cairo.rb
  155 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/arm-netbsdelf/pango.so
  156 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/pango.rb
  157 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/arm-netbsdelf/gdk_pixbuf2.so
  158 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/gdk_pixbuf2.rb
  159 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/arm-netbsdelf/gtk2.so
  160 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/gtk2/base.rb
  161 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/gtk2.rb
  162 /usr/pkg/share/mikutter/core/mui/gtk_skin.rb
  163 /usr/pkg/share/mikutter/core/user.rb
  164 /usr/pkg/share/mikutter/core/delayer.rb
  165 /usr/pkg/share/mikutter/core/serialthread.rb
  166 /usr/pkg/share/mikutter/core/miku/node.rb
  167 /usr/pkg/share/mikutter/core/miku/atom.rb
  168 /usr/pkg/share/mikutter/core/miku/error.rb
  169 /usr/pkg/share/mikutter/core/miku/macro.rb
  170 /usr/pkg/share/mikutter/core/miku/primitive.rb
  171 /usr/pkg/share/mikutter/core/miku/cons.rb
  172 /usr/pkg/share/mikutter/core/miku/list.rb
  173 /usr/pkg/share/mikutter/core/miku/array.rb
  174 /usr/pkg/share/mikutter/core/miku/hash.rb
  175 /usr/pkg/share/mikutter/core/miku/symbol.rb
  176 /usr/pkg/share/mikutter/core/miku/symboltable.rb
  177 /usr/pkg/share/mikutter/core/miku/nil.rb
  178 /usr/pkg/share/mikutter/core/miku/parser.rb
  179 /usr/pkg/share/mikutter/core/miku/miku.rb
  180 /usr/pkg/share/mikutter/core/lib/timelimitedqueue/timelimitedqueue.rb
  181 /usr/pkg/share/mikutter/core/lib/timelimitedqueue.rb
  182 /usr/pkg/share/mikutter/core/configloader.rb
  183 /usr/pkg/share/mikutter/core/autotag.rb
  184 /usr/pkg/share/mikutter/core/messageconverters.rb
  185 /usr/pkg/lib/ruby/1.9.3/net/protocol.rb
  186 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/zlib.so
  187 /usr/pkg/lib/ruby/1.9.3/net/http.rb
  188 /usr/pkg/lib/ruby/gems/1.9.3/gems/typed-array-0.1.2/lib/typed-array/functions.rb
  189 /usr/pkg/lib/ruby/gems/1.9.3/gems/typed-array-0.1.2/lib/typed-array.rb
  190 /usr/pkg/share/mikutter/core/userconfig.rb
  191 /usr/pkg/lib/ruby/gems/1.9.3/gems/addressable-2.3.3/lib/addressable/version.rb
  192 /usr/pkg/lib/ruby/gems/1.9.3/gems/addressable-2.3.3/lib/addressable/idna/pure.rb
  193 /usr/pkg/lib/ruby/gems/1.9.3/gems/addressable-2.3.3/lib/addressable/idna.rb
  194 /usr/pkg/lib/ruby/gems/1.9.3/gems/addressable-2.3.3/lib/addressable/uri.rb
  195 /usr/pkg/share/mikutter/core/entity.rb
  196 /usr/pkg/share/mikutter/core/message.rb
  197 /usr/pkg/share/mikutter/core/userlist.rb
  198 /usr/pkg/share/mikutter/core/lib/mikutwitter/basic.rb
  199 /usr/pkg/lib/ruby/1.9.3/cgi/core.rb
  200 /usr/pkg/lib/ruby/1.9.3/cgi/cookie.rb
  201 /usr/pkg/lib/ruby/1.9.3/cgi/util.rb
  202 /usr/pkg/lib/ruby/1.9.3/cgi.rb
  203 /usr/pkg/share/mikutter/core/lib/mikutwitter/utils.rb
  204 /usr/pkg/share/mikutter/core/lib/mikutwitter/authentication_failed_action.rb
  205 /usr/pkg/share/mikutter/core/lib/mikutwitter/rate_limiting.rb
  206 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/oauth.rb
  207 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/core_ext.rb
  208 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/client.rb
  209 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/openssl.so
  210 /usr/pkg/lib/ruby/1.9.3/openssl/bn.rb
  211 /usr/pkg/lib/ruby/1.9.3/openssl/cipher.rb
  212 /usr/pkg/lib/ruby/1.9.3/openssl/config.rb
  213 /usr/pkg/lib/ruby/1.9.3/openssl/digest.rb
  214 /usr/pkg/lib/ruby/1.9.3/openssl/buffering.rb
  215 /usr/pkg/lib/ruby/1.9.3/openssl/ssl-internal.rb
  216 /usr/pkg/lib/ruby/1.9.3/openssl/x509-internal.rb
  217 /usr/pkg/lib/ruby/1.9.3/openssl.rb
  218 /usr/pkg/lib/ruby/1.9.3/net/https.rb
  219 /usr/pkg/lib/ruby/1.9.3/base64.rb
  220 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/helper.rb
  221 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/request_proxy.rb
  222 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/request_proxy/base.rb
  223 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/request_proxy/net_http.rb
  224 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/client/net_http.rb
  225 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/errors/error.rb
  226 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/errors/unauthorized.rb
  227 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/errors/problem.rb
  228 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/errors.rb
  229 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/consumer.rb
  230 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/tokens/token.rb
  231 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/tokens/server_token.rb
  232 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/tokens/consumer_token.rb
  233 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/tokens/request_token.rb
  234 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/tokens/access_token.rb
  235 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/token.rb
  236 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/signature.rb
  237 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/signature/base.rb
  238 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/digest/hmac.rb
  239 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/signature/hmac/base.rb
  240 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/signature/hmac/sha1.rb
  241 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/client/helper.rb
  242 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/signature/rsa/sha1.rb
  243 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth/request_proxy/mock_request.rb
  244 /usr/pkg/lib/ruby/gems/1.9.3/gems/oauth-0.4.7/lib/oauth.rb
  245 /usr/pkg/share/mikutter/core/lib/mikutwitter/connect.rb
  246 /usr/pkg/share/mikutter/core/lib/mikutwitter/cache.rb
  247 /usr/pkg/share/mikutter/core/lib/mikutwitter/error.rb
  248 /usr/pkg/share/mikutter/core/lib/deferred/deferredable.rb
  249 /usr/pkg/share/mikutter/core/lib/deferred/deferred.rb
  250 /usr/pkg/share/mikutter/core/lib/deferred.rb
  251 /usr/pkg/share/mikutter/core/lib/mikutwitter/query.rb
  252 /usr/pkg/lib/ruby/1.9.3/json/version.rb
  253 /usr/pkg/lib/ruby/1.9.3/json/common.rb
  254 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/enc/utf_16be.so
  255 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/enc/utf_16le.so
  256 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/enc/utf_32be.so
  257 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/enc/utf_32le.so
  258 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/json/ext/parser.so
  259 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/json/ext/generator.so
  260 /usr/pkg/lib/ruby/1.9.3/json/ext.rb
  261 /usr/pkg/lib/ruby/1.9.3/json.rb
  262 /usr/pkg/share/mikutter/core/lib/mikutwitter/api_call_support.rb
  263 /usr/pkg/share/mikutter/core/lib/mikutwitter/api_shortcuts.rb
  264 /usr/pkg/share/mikutter/core/lib/mikutwitter/oauth_hacks.rb
  265 /usr/pkg/share/mikutter/core/lib/mikutwitter/streaming_failed_actions.rb
  266 /usr/pkg/share/mikutter/core/lib/mikutwitter.rb
  267 /usr/pkg/share/mikutter/core/service.rb
  268 /usr/pkg/share/mikutter/core/mui/cairo_coordinate_module.rb
  269 /usr/pkg/share/mikutter/core/mui/cairo_icon_over_button.rb
  270 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/continuation.so
  271 /usr/pkg/share/mikutter/core/mui/cairo_textselector.rb
  272 /usr/pkg/share/mikutter/core/lib/uithreadonly.rb
  273 /usr/pkg/share/mikutter/core/mui/cairo_sub_parts_helper.rb
  274 /usr/pkg/share/mikutter/core/mui/cairo_replyviewer.rb
  275 /usr/pkg/share/mikutter/core/mui/cairo_sub_parts_voter.rb
  276 /usr/pkg/share/mikutter/core/mui/cairo_sub_parts_favorite.rb
  277 /usr/pkg/share/mikutter/core/mui/cairo_sub_parts_retweet.rb
  278 /usr/pkg/share/mikutter/core/mui/cairo_markup_generator.rb
  279 /usr/pkg/lib/ruby/1.9.3/arm-netbsdelf/enc/trans/single_byte.so
  280 /usr/pkg/share/mikutter/core/mui/cairo_miracle_painter.rb
  281 /usr/pkg/share/mikutter/core/mui/cairo_cell_renderer_message.rb
  282 /usr/pkg/share/mikutter/core/mui/gtk_extension.rb
  283 /usr/pkg/share/mikutter/core/mui/gtk_contextmenu.rb
  284 /usr/pkg/share/mikutter/core/mui/gtk_crud.rb
  285 /usr/pkg/share/mikutter/core/mui/gtk_timeline_utils.rb
  286 /usr/pkg/share/mikutter/core/mui/cairo_pseudo_message_widget.rb
  287 /usr/pkg/share/mikutter/core/mui/gtk_intelligent_textview.rb
  288 /usr/pkg/share/mikutter/core/mui/gtk_postbox.rb
  289 /usr/pkg/share/mikutter/core/mui/gtk_dark_matter_prification.rb
  290 /usr/pkg/share/mikutter/core/lib/reserver.rb
  291 /usr/pkg/share/mikutter/core/mui/cairo_timeline.rb
  292 /usr/pkg/share/mikutter/core/mui/gtk_tree_view_pretty_scroll.rb
  293 /usr/pkg/lib/ruby/vendor_ruby/1.9.3/bsearch.rb
  294 /usr/pkg/share/mikutter/core/mui/cairo_inner_tl.rb
  295 /usr/pkg/share/mikutter/core/mui/gtk_keyconfig.rb
  296 /usr/pkg/share/mikutter/core/mui/gtk_listlist.rb
  297 /usr/pkg/share/mikutter/core/mui/gtk_selectbox.rb
  298 /usr/pkg/share/mikutter/core/mui/gtk_mtk.rb
  299 /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader_image_cache_raw.rb
  300 /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader_image_cache_pixbuf.rb
  301 /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader_image_cache.rb
  302 /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb
  303 /usr/pkg/lib/ruby/1.9.3/observer.rb
  304 /usr/pkg/share/mikutter/core/mui/gtk_webicon.rb
  305 /usr/pkg/share/mikutter/core/mui/gtk_message_picker.rb
  306 /usr/pkg/share/mikutter/core/mui/gtk_pseudo_signal_handler.rb
  307 /usr/pkg/share/mikutter/core/mui/gtk_userlist.rb
  308 /usr/pkg/share/mikutter/core/plugin.rb
  309 /usr/pkg/share/mikutter/core/plugin/alsa/alsa.rb
  310 /usr/pkg/share/mikutter/core/plugin/gui/dsl.rb
  311 /usr/pkg/share/mikutter/core/plugin/gui/cuscadable.rb
  312 /usr/pkg/share/mikutter/core/plugin/gui/hierarchy_parent.rb
  313 /usr/pkg/share/mikutter/core/plugin/gui/widget.rb
  314 /usr/pkg/share/mikutter/core/plugin/gui/window.rb
  315 /usr/pkg/share/mikutter/core/plugin/gui/hierarchy_child.rb
  316 /usr/pkg/share/mikutter/core/plugin/gui/pane.rb
  317 /usr/pkg/share/mikutter/core/plugin/gui/tablike.rb
  318 /usr/pkg/share/mikutter/core/plugin/gui/tab_toolbar.rb
  319 /usr/pkg/share/mikutter/core/plugin/gui/tab.rb
  320 /usr/pkg/share/mikutter/core/plugin/gui/profile.rb
  321 /usr/pkg/share/mikutter/core/plugin/gui/profiletab.rb
  322 /usr/pkg/share/mikutter/core/plugin/gui/timeline.rb
  323 /usr/pkg/share/mikutter/core/plugin/gui/tab_child_widget.rb
  324 /usr/pkg/share/mikutter/core/plugin/gui/postbox.rb
  325 /usr/pkg/share/mikutter/core/plugin/gui/command.rb
  326 /usr/pkg/share/mikutter/core/plugin/gtk/mikutter_window.rb
  327 /usr/pkg/share/mikutter/core/plugin/gtk/tab_container.rb
  328 /usr/pkg/share/mikutter/core/plugin/gtk/tab_toolbar.rb
  329 /usr/pkg/share/mikutter/core/plugin/gtk/delayer.rb
  330 /usr/pkg/share/mikutter/core/plugin/gtk/slug_dictionary.rb
  331 /usr/pkg/share/mikutter/core/plugin/aspectframe/aspectframe.rb
  332 /usr/pkg/share/mikutter/core/plugin/bitly/bitly.rb
  333 /usr/pkg/share/mikutter/core/plugin/command/conditions.rb
  334 /usr/pkg/share/mikutter/core/plugin/command/command.rb
  335 /usr/pkg/share/mikutter/core/plugin/console/console_control.rb
  336 /usr/pkg/share/mikutter/core/plugin/console/console.rb
  337 /usr/pkg/share/mikutter/core/plugin/direct_message/userlist.rb
  338 /usr/pkg/share/mikutter/core/plugin/direct_message/sender.rb
  339 /usr/pkg/share/mikutter/core/plugin/direct_message/dmlistview.rb
  340 /usr/pkg/share/mikutter/core/plugin/direct_message/direct_message.rb
  341 /usr/pkg/share/mikutter/core/plugin/display_requirements/display_requirements.rb
  342 /usr/pkg/share/mikutter/core/plugin/followingcontrol/followingcontrol.rb
  343 /usr/pkg/share/mikutter/core/plugin/gtk/gtk.rb
  344 /usr/pkg/share/mikutter/core/plugin/gui/gui.rb
  345 /usr/pkg/share/mikutter/core/plugin/home_timeline/home_timeline.rb
  346 /usr/pkg/share/mikutter/core/plugin/image_file_cache/image_file_cache.rb
  347 /usr/pkg/share/mikutter/core/plugin/libnotify/notify-send.rb
  348 /usr/pkg/share/mikutter/core/plugin/libnotify/libnotify.rb
  349 /usr/pkg/share/mikutter/core/plugin/mentions/mentions.rb
  350 /usr/pkg/share/mikutter/core/plugin/openimg/openimg.rb
  351 /usr/pkg/share/mikutter/core/plugin/profile/profile.rb
  352 /usr/pkg/share/mikutter/core/plugin/ratelimit/ratelimit.rb
  353 /usr/pkg/share/mikutter/core/plugin/rest/rest.rb
  354 /usr/pkg/share/mikutter/core/plugin/search/search.rb
  355 /usr/pkg/share/mikutter/core/plugin/settings/select.rb
  356 /usr/pkg/share/mikutter/core/plugin/settings/multiselect.rb
  357 /usr/pkg/share/mikutter/core/plugin/settings/listener.rb
  358 /usr/pkg/share/mikutter/core/plugin/settings/builder.rb
  359 /usr/pkg/share/mikutter/core/plugin/settings/basic_settings.rb
  360 /usr/pkg/share/mikutter/core/plugin/activity/activity.rb
  361 /usr/pkg/share/mikutter/core/plugin/extract/extract.rb
  362 /usr/pkg/share/mikutter/core/plugin/proxy/proxy.rb
  363 /usr/pkg/share/mikutter/core/plugin/settings/settings.rb
  364 /usr/pkg/share/mikutter/core/plugin/shortcutkey/shortcutkey.rb
  365 /usr/pkg/share/mikutter/core/plugin/smartthread/smartthread.rb
  366 /usr/pkg/share/mikutter/core/plugin/streaming/streamer_error.rb
  367 /usr/pkg/share/mikutter/core/plugin/streaming/streamer.rb
  368 /usr/pkg/share/mikutter/core/plugin/streaming/parma_streamer.rb
  369 /usr/pkg/share/mikutter/core/plugin/streaming/filter.rb
  370 /usr/pkg/share/mikutter/core/plugin/streaming/streaming.rb
  371 /usr/pkg/share/mikutter/core/plugin/tco/tco.rb
  372 /usr/pkg/share/mikutter/core/plugin/api_request_file_cache.rb
  373 /usr/pkg/share/mikutter/core/plugin/bugreport.rb
  374 /usr/pkg/share/mikutter/core/plugin/list/list.rb
  375 /usr/pkg/share/mikutter/core/plugin/saved_search/saved_search.rb
  376 /usr/pkg/share/mikutter/core/plugin/change_account.rb
  377 /usr/pkg/share/mikutter/core/plugin/core.rb
  378 /usr/pkg/share/mikutter/core/plugin/notify.rb
  379 /usr/pkg/share/mikutter/core/plugin/set_input.rb
  380 /usr/pkg/share/mikutter/core/plugin/set_view.rb
  381 /usr/pkg/share/mikutter/core/boot/load_plugin.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort

>How-To-Repeat:
%  uname -psr
NetBSD 6.99.19 arm
% pkg_info |grep ruby
ruby193-memoize-1.3.1 Speeds up methods at the cost of memory (or disk space)
ruby193-mikutter-0.2.1.1141 Simply, powerfully, and moefully twitter client
ruby193-setup-3.4.1 Common installer script for ruby packages
ruby193-hmac-0.4.0  Common interface to HMAC functionality
ruby193-base-1.9.3p392 Ruby 1.9.3 release minimum base package
ruby193-rcairo-1.12.4 Ruby bindings for cairo
ruby193-gnome2-gdkpixbuf-1.2.6 Ruby binding of GdkPixbuf-2.x
ruby193-gnome2-glib-1.2.6 Ruby binding of GLib-2.x
ruby193-gnome2-gtk-1.2.6 Ruby binding of GTK+-2.x
ruby193-typed-array-0.1.2 Provides methods for creating type-enforced Arrays
ruby193-addressable-2.3.3 Replacement for the URI Implementation of standard librrary
ruby193-httpclient-2.3.3 HTTP accessing library for Ruby
ruby193-bsearch-1.5nb2 Binary search library for Ruby
ruby193-rdtool-0.6.38 RD (Ruby Document) converter to HTML/man/etc
ruby193-oauth-0.4.7 OAuth Core Ruby implementation
ruby193-pkg-config-1.1.4 pkg-config implemented by pure Ruby
ruby193-gnome2-atk-1.2.6 Ruby binding of ATK-1.0.x or later
ruby19-base-1.9.2pl320nb1 Ruby  1.9.2 release minimum package
ruby193-gnome2-pango-1.2.6 Ruby binding of pango-1.x
% mikutter
   :
/usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb:242: [BUG] Segmentation fault
>Fix:
[XXX] loader.write image_data fails on NetBSD armeb

 diff -u /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb.org /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb
--- /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb.org        2013-05-06 20:28:25.000000000 +0900
+++ /usr/pkg/share/mikutter/core/mui/gtk_web_image_loader.rb    2013-05-06 20:28:39.000000000 +0900
@@ -239,7 +239,7 @@
     rect = rect.dup
     loader = Gdk::PixbufLoader.new
     # loader.set_size(rect.width, rect.height) if rect
-    loader.write image_data
+    #loader.write image_data
     loader.close
     pb = loader.pixbuf
     pb.scale(*calc_fitclop(pb, rect))

>Release-Note:

>Audit-Trail:
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
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

From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
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 16:31:40 +0200

 --gBBFr7Ir9EOA20Yy
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Can you please try with 1.6.3beta07? Diff attached.
  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>
 > To: gnats-bugs@NetBSD.org
 > Cc: tsutsui@ceres.dti.ne.jp
 > 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
 >  
 > 

 --gBBFr7Ir9EOA20Yy
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="png-1.6.3beta07.diff"

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/graphics/png/Makefile,v
 retrieving revision 1.158
 diff -u -r1.158 Makefile
 --- Makefile	25 Apr 2013 22:01:14 -0000	1.158
 +++ Makefile	13 Jun 2013 14:29:40 -0000
 @@ -1,6 +1,6 @@
  # $NetBSD: Makefile,v 1.158 2013/04/25 22:01:14 wiz Exp $

 -DISTNAME=	libpng-1.6.2
 +DISTNAME=	libpng-1.6.3beta07
  PKGNAME=	${DISTNAME:S/lib//}
  CATEGORIES=	graphics
  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=libpng/} \
 Index: PLIST
 ===================================================================
 RCS file: /cvsroot/pkgsrc/graphics/png/PLIST,v
 retrieving revision 1.14
 diff -u -r1.14 PLIST
 --- PLIST	16 Feb 2013 11:16:06 -0000	1.14
 +++ PLIST	13 Jun 2013 14:29:40 -0000
 @@ -1,6 +1,8 @@
 -@comment $NetBSD: PLIST,v 1.14 2013/02/16 11:16:06 wiz Exp $
 +@comment $NetBSD$
  bin/libpng-config
  bin/libpng16-config
 +bin/png-fix-itxt
 +bin/png-fix-too-far-back
  include/libpng16/png.h
  include/libpng16/pngconf.h
  include/libpng16/pnglibconf.h
 Index: distinfo
 ===================================================================
 RCS file: /cvsroot/pkgsrc/graphics/png/distinfo,v
 retrieving revision 1.104
 diff -u -r1.104 distinfo
 --- distinfo	25 Apr 2013 22:01:14 -0000	1.104
 +++ distinfo	13 Jun 2013 14:29:40 -0000
 @@ -1,6 +1,6 @@
  $NetBSD: distinfo,v 1.104 2013/04/25 22:01:14 wiz Exp $

 -SHA1 (libpng-1.6.2.tar.xz) = 8820d2741ec2bd75a1ce984e72b56c888037f2db
 -RMD160 (libpng-1.6.2.tar.xz) = fbacb6416a3fd648581c956dd89bbdf6723cb3f6
 -Size (libpng-1.6.2.tar.xz) = 836536 bytes
 +SHA1 (libpng-1.6.3beta07.tar.xz) = 921d45e880f6389244019eb6c1d996b460ac570b
 +RMD160 (libpng-1.6.3beta07.tar.xz) = 82b1120a2daf7d3bf1ac02219f3776ad48917733
 +Size (libpng-1.6.3beta07.tar.xz) = 846016 bytes
  SHA1 (patch-aa) = 080c890ee48923db959fcdeeb12e4a5a27845138

 --gBBFr7Ir9EOA20Yy--

From: Thomas Klausner <wiz@NetBSD.org>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: NetBSD bugtracking <gnats-bugs@NetBSD.org>
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>
 > To: gnats-bugs@NetBSD.org
 > Cc: tsutsui@ceres.dti.ne.jp
 > 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
 >  
 > 

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: wiz@NetBSD.org
Cc: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: port-arm/47798: [arm-netbsdelf] /usr/pkgsrc/net/mikutter:core/mui/gtk_web_image_loader.rb:242:
	 [BUG] Segmentation fault
Date: Fri, 14 Jun 2013 00:47:37 +0900

 > Can you please try with 1.6.3beta07? Diff attached.

 It also dumps core (with the default -O2) and gets the same trace.
 ---
 Izumi Tsutsui

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: wiz@NetBSD.org
Cc: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: port-arm/47798: [arm-netbsdelf] /usr/pkgsrc/net/mikutter:core/mui/gtk_web_image_loader.rb:242:
	 [BUG] Segmentation fault
Date: Fri, 14 Jun 2013 00:53:04 +0900

 > Is there a warning printed when you run it compiled with -O?

 libpng is invoked via ruby193 -> ruby-gnome2-gdkpixbuf -> gdk-pixbuf2
 so I'm afraid it's hard to check warning messages from libpng.
 (at least mikutter doesn't show any warnings from libpng)

 Anyway there are some other packages that requries -O1 for gcc45 + arm
 (like devel/bison) and mikutter on sh3el (dreamcast and hpcsh) works fine
 so I guess it's gcc bug rather than libpng.

 ---
 Izumi Tsutsui

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: wiz@NetBSD.org
Cc: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: port-arm/47798: [arm-netbsdelf] /usr/pkgsrc/net/mikutter:core/mui/gtk_web_image_loader.rb:242:[BUG]
	 Segmentation fault
Date: Fri, 14 Jun 2013 01:01:51 +0900

 > > Can you please try with 1.6.3beta07? Diff attached.
 > 
 > It also dumps core (with the default -O2) and gets the same trace.

 And with -O1 it works.

 ---
 Izumi Tsutsui

From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Cc: port-arm-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: port-arm/47798: [arm-netbsdelf] /usr/pkgsrc/net/mikutter:
 core/mui/gtk_web_image_loader.rb:242: [BUG] Segmentation fault
Date: Fri, 14 Jun 2013 23:59:33 +0900 (JST)

 From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
 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 12:55:01 +0000 (UTC)

 With this work around,
 RPI(NetBSD/evbarm 6.99.19)+
 http://teokurebsd.org/netbsd/packages/arm/6.1_2013Q1/All/
 binary packages,mikutter works fine.

 >  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

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: wiz@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: port-arm/47798: [arm-netbsdelf] /usr/pkgsrc/net/mikutter:core/mui/gtk_web_image_loader.rb:242:
	 [BUG] Segmentation fault
Date: Sun, 16 Jun 2013 15:28:18 +0900

 According to analysis by a libpng guy, this is a bug of
 gcc-4.5.3 -fipa-sra optimization on ARM:
 http://sourceforge.net/mailarchive/message.php?msg_id=31057910

 --- snip ---
 I can confirm that it is a compiler bug in gcc 4.5.3.  The bug does not
 happen in 4.6.3, I haven't checked 4.5.4.  The bug can be avoided by
 compiling with -fno-ipa-sra (and I would guess this applies to the Bison
 problem too.)

 The bug happens somewhere inside png_chunk_warning and almost certainly in
 png_chunk_error as well.  The call to png_format_buffer has been
 'optimized' to pass png_ptr->chunk_name rather than png_ptr in the first
 argument; the optimization actually increases code size (by 4 bytes) but
 may have pipeline benefits on some architectures.  After png_format_buffer
 returns (successfully formatting the message) png_warning is called with a
 bogus value for png_ptr; on my system png_ptr is 0x5 and this leads to an
 immediate crash.

 The bug seems to be in png_format_buffer; it fails to preserve register
 r4.  In fact it fails to preserve a lot of registers that it should
 preserve - it looks totally broken to me.  The problem optimization is
 -fipa-sra (presumably the part that converts parameters passed by reference
 to ones passed by value), if I compile with -fno-ipa-sra the bug
 disappears, and, with -Os, the code size of libpng16.so drops from 152903
 bytes to 152887 bytes.
 --- snip ---

 With a quick glance, I can't see which changes after 4.5.3 are
 actually affected to this problem so backporting is not easy.
 I'll change the synopsis of this PR (i.e. gcc bug) to reflect this analysis.

 I wonder if we should specify -fno-ipa-sra by default at least for arm.
 opensuse has a patch for gcc-4.5.3 package that disable -fno-ipa-sra
 even if -O2 is specified and they say -fipa-sra makes debugging harder.

 ---
 Izumi Tsutsui

From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47798 CVS commit: pkgsrc/graphics/png
Date: Sun, 23 Jun 2013 05:20:33 +0000

 Module Name:	pkgsrc
 Committed By:	tsutsui
 Date:		Sun Jun 23 05:20:33 UTC 2013

 Modified Files:
 	pkgsrc/graphics/png: Makefile
 Added Files:
 	pkgsrc/graphics/png: hacks.mk

 Log Message:
 Add workaround for PR/47798 (png gets SEGV on NetBSD/arm 6.1 due to gcc bug).
  - specify "-O2 -fno-ipa-sra" for NetBSD/arm and gcc-4.5.* in hacks.mk
  - also bump PKGREVISION for explicit rebuild

 "Please commit that" from wiz@.


 To generate a diff of this commit:
 cvs rdiff -u -r1.158 -r1.159 pkgsrc/graphics/png/Makefile
 cvs rdiff -u -r0 -r1.3 pkgsrc/graphics/png/hacks.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->analyzed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 29 Jun 2013 02:19:11 +0000
State-Changed-Why:
gcc bug and reproducible by "pngtest --strict" in png-1.6.2.


State-Changed-From-To: analyzed->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Fri, 01 Mar 2019 10:08:37 +0000
State-Changed-Why:
A fix was committed in 2013, and the compiler is no longer
gcc 4.5. Is this still an issue?


From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@NetBSD.org, bsiegert@NetBSD.org
Cc: port-arm-maintainer@netbsd.org, netbsd-bugs@netbsd.org,
        gnats-admin@netbsd.org
Subject: Re: port-arm/47798 ([arm-netbsdelf] gcc -fipa-sra generates broken
 binaries)
Date: Fri, 01 Mar 2019 19:54:51 +0900 (JST)

 From: bsiegert@NetBSD.org
 Subject: Re: port-arm/47798 ([arm-netbsdelf] gcc -fipa-sra generates broken binaries)
 Date: Fri,  1 Mar 2019 10:08:38 +0000 (UTC)

 > State-Changed-Why:
 > A fix was committed in 2013, and the compiler is no longer
 > gcc 4.5. Is this still an issue?

 please close it,thanx for notify.

State-Changed-From-To: feedback->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Fri, 01 Mar 2019 22:57:50 +0000
State-Changed-Why:
problem worked around for relevant compilers, fixed in newer ones.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.