From: Hihin Ruslan <ruslandh@gmail.com>
To: devel@lists.altlinux.org
Subject: [devel] Выпадение 32-х битной palemoon
Date: Fri, 17 Jul 2015 06:44:01 +0300
Message-ID: <201507170644.07030@ruslandh> (raw)
[-- Attachment #1: Type: text/plain, Size: 1671 bytes --]
Здравствуйте!
Обращаюсь за помощью "клуба".
32-битный palemoon выпадает на в общем-то безобидном месте
(определено с помощью отладчика и установки отладчика)
Выделение командой malloc памяти под структуру, для описания
фонтов.
cairo-font-options. стр 107
http://git.altlinux.org/people/ruslandh/packages/?p=palemoon.git;a=blob;f=palemoon/gfx/cairo/cairo/src/cairo-font-options.c;h=5d59fb0f2427d0d7407124b4780a009eb0823449;hb=d8f53b0da04a66d18135f0bed0758369d2316b99
Вот на этой функции:
102 cairo_font_options_t *
103 cairo_font_options_create (void)
104 {
105 cairo_font_options_t *options;
106
107 options = malloc (sizeof (cairo_font_options_t));
108 if (!options) {
109 _cairo_error_throw (CAIRO_STATUS_NO_MEMORY);
110 return (cairo_font_options_t *)
&_cairo_font_options_nil;
111 }
112
113 _cairo_font_options_init_default (options);
114
115 return options;
116 }
Ни у кого нет идей, почему это может происходить?
Вроде единственное отличие - это размер структуры:
52 static const cairo_font_options_t _cairo_font_options_nil = {
53 CAIRO_ANTIALIAS_DEFAULT,
54 CAIRO_SUBPIXEL_ORDER_DEFAULT,
55 CAIRO_LCD_FILTER_DEFAULT,
56 CAIRO_HINT_STYLE_DEFAULT,
57 CAIRO_HINT_METRICS_DEFAULT,
58 CAIRO_ROUND_GLYPH_POS_DEFAULT
59 };
Члены этой структуры - это переменные типа enum, как я понимаю -
enum представляется int - и собственно разный размер структуры.
Но вроде это никак на функциональность не должно влиять.
--
А ещё говорят так (fortune):
genlock, n.: Why he stays in the bottle.
________________________________________________________________________
С уважением Хихин Руслан
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next reply other threads:[~2015-07-17 3:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 3:44 Hihin Ruslan [this message]
2015-07-17 3:48 ` Hihin Ruslan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201507170644.07030@ruslandh \
--to=ruslandh@gmail.com \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git