Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 262 by
rainer.c...@sevenval.com: SIGBUS in HistogramAddEval() on
IRIX while encoding lossless images
https://code.google.com/p/webp/issues/detail?id=262
Using libwebp 0.4.2 and 0.4.3 on IRIX, compiled as n32 binaries using
MIPSPro c99 7.4.4, I get BUS errors when trying to use
WebPEncodeLosslessRGB(). WebPEncodeRGB works flawlessly. Changing the
assignment in histogram.c:336 from out->bit_cost_ = cost; into a memcpy()
fixes the problem and correct webp files can be created. I have not
encountered any problems writing lossy files so far. My quick attempt to
re-order or pad the members of VP8LHistogram has been unsuccessful.
Thread 0x10000
> 0 HistogramAddEval(a = 0x1066b0e0, b = 0x1066c208, out = 0x1026850c,
> cost_threshold = 924.255)
> ["/usr/people/canavan/src/libwebp/libwebp-0.4.3/src/enc/histogram.c":336,
> 0x44ee64]
1 HistogramCombineEntropyBin(image_histo = 0x10649ae0, histos =
0x1026850c, bin_map = 0x107e2348, bin_depth = 136, combine_cost_factor =
0.16)
["/usr/people/canavan/src/libwebp/libwebp-0.4.3/src/enc/histogram.c":542,
0x44fbfc]
2 VP8LGetHistoImageSymbols(xsize = 480, ysize = 270, refs = 0x7ffb7150,
quality = 70, histo_bits = 5, cache_bits = 0, image_histo = 0x10649ae0,
histogram_symbols = 0x1026cf10)
["/usr/people/canavan/src/libwebp/libwebp-0.4.3/src/enc/histogram.c":729,
0x4506c0]
3 EncodeImageInternal(bw = 0x7ffb7278, argb = 0x105abae8, hash_chain =
0x1042d1d0, refs_array = 0x1042d1a0, width = 480, height = 270, quality =
70, cache_bits = 0, histogram_bits = 5)
["/usr/people/canavan/src/libwebp/libwebp-0.4.3/src/enc/vp8l.c":600,
0x467b38]
4 VP8LEncodeStream(config = 0x7ffb7358, picture = 0x7ffb73d8, bw =
0x7ffb7278)
["/usr/people/canavan/src/libwebp/libwebp-0.4.3/src/enc/vp8l.c":1126,
0x469aa0]
5 VP8LEncodeImage(config = 0x7ffb7358, picture = 0x7ffb73d8)
["/usr/people/canavan/src/libwebp/libwebp-0.4.3/src/enc/vp8l.c":1211,
0x469e80]
6 WebPEncode(config = 0x7ffb7358, pic = 0x7ffb73d8)
["/usr/people/canavan/src/libwebp/libwebp-0.4.3/src/enc/webpenc.c":378,
0x46b2c0]
7 Encode(rgba = 0x1030fd90
= "\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\341\226\377\341\226\377\341\226\377\341\226\377\341\226\377\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\...",
width = 480, height = 270, stride = 1440, import = 0x459b30, quality_factor
= 70.0, lossless = 1, output = 0x7ffb7568)
["/usr/people/canavan/src/libwebp/libwebp-0.4.3/src/enc/picture.c":252,
0x453024]
8 WebPEncodeLosslessRGB(in = 0x1030fd90
= "\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\341\226\377\341\226\377\341\226\377\341\226\377\341\226\377\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\...",
w = 480, h = 270, bps = 1440, out = 0x7ffb7568)
["/usr/people/canavan/src/libwebp/libwebp-0.4.3/src/enc/picture.c":282,
0x45331c]
9 WriteWEBP(fp = 0xfb4f7f8, pic = 0x1030fd90
= "\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\226\226\377\341\226\377\341\226\377\341\226\377\341\226\377\341\226\377\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\223\223\374\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\370\220\220\...",
ptype = 0, w = 480, h = 270, rmap = 0x10111a70
= "\341\326\313\277\264\251\235\222\207{peYNC7\226\223\220\215\212\207\203\200}zwspmjgc`]ZWSPMJGD@=:740-*\'$
\035\032\027\024\020\r\n\a\004", gmap = 0x10111b70
= "\226\214\202xndZPF<2(\036\024\n", bmap = 0x10111c70
= "\377\364\350\334\320\304\270\254\241\225\211}qeYM\377\374\370\364\360\355\351\345\341\335\332\326\322\316\312\307\303\277\273\270\264\260\254\250\245\241\235\231\2
25\222\216\212\206\203\177{wsplhd`]YUQM\031")
["/usr/people/canavan/src/xv/xv-3.10a/xvwebp.c":444, 0x100f37d4]
10 writeWEBP() ["/usr/people/canavan/src/xv/xv-3.10a/xvwebp.c":371,
0x100f34b8]
11 doCmd(cmd = 0) ["/usr/people/canavan/src/xv/xv-3.10a/xvwebp.c":268,
0x100f309c]
12 clickWEBPD(x = 135, y = 156)
["/usr/people/canavan/src/xv/xv-3.10a/xvwebp.c":240, 0x100f2fb4]
13 WEBPCheckEvent(xev = 0x7ffb7b20)
["/usr/people/canavan/src/xv/xv-3.10a/xvwebp.c":127, 0x100f294c]
14 handleButtonEvent(event = 0x7ffb7b20, donep = 0x7ffb77e0, retvalp =
0x7ffb77e4) ["/usr/people/canavan/src/xv/xv-3.10a/xvevent.c":1359,
0x10021dac]
15 HandleEvent(event = 0x7ffb7b20, donep = 0x7ffb7abc)
["/usr/people/canavan/src/xv/xv-3.10a/xvevent.c":241, 0x1001e7e8]
16 EventLoop() ["/usr/people/canavan/src/xv/xv-3.10a/xvevent.c":143,
0x1001e564]
17 mainLoop() ["/usr/people/canavan/src/xv/xv-3.10a/xv.c":3813,
0x1001b18c]
18 main(argc = 1, argv = 0x7ffb7ee4)
["/usr/people/canavan/src/xv/xv-3.10a/xv.c":1046, 0x10010ce0]
19 __start()
["/xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M4/csu/crt1text.s":177,
0x1000e018]
The image data shown in the backtrace above is from
http://www.gstatic.com/webp/gallery/1.webp
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings