Your message dated Fri, 08 Mar 2013 11:18:07 +0000
with message-id <[email protected]>
and subject line Bug#702503: fixed in blender 2.66a-2
has caused the Debian Bug report #702503,
regarding blender 2.66a-1 crashes at launch, when looking for locales dir
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
702503: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702503
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: blender
Version: 2.66a-1
Severity: important
Tags: upstream

Dear Maintainer,

blender-2.66a-1 from experimental crashes here, this is the backtrace:

-----------------------------------------------------------------------
(gdb) run
Starting program: /usr/bin/blender 
warning: no loadable sections found in added symbol-file system-supplied DSO at 
0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe5e32700 (LWP 30189)]
Color management: using fallback mode for management
connect failed: No such file or directory

Program received signal SIGSEGV, Segmentation fault.
memchr () at ../sysdeps/x86_64/memchr.S:33
33      ../sysdeps/x86_64/memchr.S: File o directory non esistente.
(gdb) bt full
#0  memchr () at ../sysdeps/x86_64/memchr.S:33
No locals.
#1  0x0000000000f0b02e in BLI_strnlen (str=str@entry=0x0, 
maxlen=maxlen@entry=1024)
    at /tmp/buildd/blender-2.66a/source/blender/blenlib/intern/string.c:436
        end = <optimized out>
#2  0x0000000000f03ba6 in BLI_join_dirfile (dst=dst@entry=0x0, 
maxlen=maxlen@entry=1024, dir=dir@entry=0x0, 
    file=file@entry=0x17f34c8 "languages") at 
/tmp/buildd/blender-2.66a/source/blender/blenlib/intern/path_util.c:1521
        dirlen = <optimized out>
#3  0x000000000132e312 in fill_locales () at 
/tmp/buildd/blender-2.66a/source/blender/blenfont/intern/blf_lang.c:88
        lines = 0x0
        line = <optimized out>
        str = <optimized out>
        idx = 0
        languages_path = 0x0
#4  BLF_lang_init () at 
/tmp/buildd/blender-2.66a/source/blender/blenfont/intern/blf_lang.c:192
        messagepath = <optimized out>
        __func__ = "BLF_lang_init"
#5  0x00000000008bbe6d in WM_init (C=C@entry=0x2984c78, argc=argc@entry=1, 
argv=argv@entry=0x7fffffffe038)
    at 
/tmp/buildd/blender-2.66a/source/blender/windowmanager/intern/wm_init_exit.c:156
No locals.
#6  0x00000000008a537f in main (argc=1, argv=0x7fffffffe038) at 
/tmp/buildd/blender-2.66a/source/creator/creator.c:1548
        C = 0x2984c78
        syshandle = 0x298cba0
        ba = 0x298cc18
(gdb) 
-----------------------------------------------------------------------

A strace capture shows what the program was doing before crashing:

-----------------------------------------------------------------------
....
stat("/home/ao2/.config/blender/2.66/datafiles/locale", 0x7fff6f95bac0) = -1 
ENOENT (No such file or directory)
stat("/usr/bin/2.66/datafiles/locale", 0x7fff6f95bad0) = -1 ENOENT (No such 
file or directory)
stat("/home/ao2/Proj/debian/Src/blender/release/datafiles/locale", 
0x7fff6f95b2b0) = -1 ENOENT (No such file or directory)
stat("/usr/bin/release/datafiles/locale", 0x7fff6f95b2b0) = -1 ENOENT (No such 
file or directory)
stat("/usr/share/blender/2.66/datafiles/locale", 0x7fff6f95b2b0) = -1 ENOENT 
(No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
-----------------------------------------------------------------------

We have to fix fill_locales(), which still thinks the locale files are in
BLENDER_SYSTEM_DATAFILES.

I have an experimental patch which fixes the crash, I am going to post it as
a follow up mail, so I can use use the report number in it.

BTW, I think that blender should fail gracefully when it does not find
a directory or a file, it should not crash, maybe something like this can be
upstreamed:

-----------------------------------------------------------------------
diff --git a/source/blender/blenfont/intern/blf_lang.c 
b/source/blender/blenfont/intern/blf_lang.c
index 73294f1..23dd3d5 100644
--- a/source/blender/blenfont/intern/blf_lang.c
+++ b/source/blender/blenfont/intern/blf_lang.c
@@ -76,16 +76,16 @@ static void free_locales(void)
        num_locales = num_locales_menu = 0;
 }

-static void fill_locales(void)
+static void fill_locales(char *locale_path)
 {
-       char *languages_path = BLI_get_folder(BLENDER_DATAFILES, "locale");
+       char *languages_path = locale_path;
        LinkNode *lines = NULL, *line;
        char *str;
        int idx = 0;

        free_locales();

-       BLI_join_dirfile(languages_path, FILE_MAX, languages_path, "languages");
+       BLI_join_dirfile(languages_path, FILE_MAX, locale_path, "languages");
        line = lines = BLI_file_read_as_lines(languages_path);

        /* This whole "parsing" code is a bit weak, in that it expects strictly 
formated input file...
@@ -189,7 +189,7 @@ void BLF_lang_init(void)

        if (messagepath) {
                bl_locale_init(messagepath, TEXT_DOMAIN_NAME);
-               fill_locales();
+               fill_locales(messagepath);
        }
        else {
                printf("%s: 'locale' data path for translations not found, 
continuing\n", __func__);

-----------------------------------------------------------------------

This would avoid a possible crash even for the pristine code as fill_locales()
is called only when messagepath has been found.

But I have no time to properly test it and upstream it for now.

Thanks,
   Antonio

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (900, 'unstable'), (600, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages blender depends on:
ii  fonts-droid                20111207+git-1
ii  libavcodec54               6:9.3-1
ii  libavdevice53              6:9.3-1
ii  libavformat54              6:9.3-1
ii  libavutil52                6:9.3-1
ii  libboost-date-time1.49.0   1.49.0-3.2
ii  libboost-filesystem1.49.0  1.49.0-3.2
ii  libboost-locale1.49.0      1.49.0-3.2
ii  libboost-regex1.49.0       1.49.0-3.2
ii  libboost-system1.49.0      1.49.0-3.2
ii  libboost-thread1.49.0      1.49.0-3.2
ii  libc6                      2.13-38
ii  libfftw3-3                 3.3.2-3.1
ii  libfontconfig1             2.9.0-7.1
ii  libfreetype6               2.4.9-1.1
ii  libgcc1                    1:4.7.2-5
ii  libgl1-mesa-glx [libgl1]   8.0.5-3
ii  libglew1.7                 1.7.0-3
ii  libglu1-mesa [libglu1]     8.0.5-3
ii  libgomp1                   4.7.2-5
ii  libilmbase6                1.0.1-6
ii  libjack0 [libjack-0.116]   1:0.121.3+20120418git75e3e20b-2.1
ii  libjpeg8                   8d-1
ii  libjs-jquery               1.7.2+dfsg-1
ii  libopenal1                 1:1.14-4
ii  libopenexr6                1.6.1-7
ii  libopenimageio1.1          1.1.3+dfsg0-1
ii  libopenjpeg2               1.3+dfsg-4.6
ii  libpng12-0                 1.2.49-3
ii  libpython3.3               3.3.0-12
ii  libsdl-1.3-0               1.3.0~20111204-1
ii  libsndfile1                1.0.25-5
ii  libspnav0                  0.2.2-1
ii  libstdc++6                 4.7.2-5
ii  libswscale2                6:9.3-1
ii  libtiff4                   3.9.6-11
ii  libx11-6                   2:1.5.0-1
ii  libxi6                     2:1.6.1-1
ii  python3                    3.3.0-2
ii  python3.3                  3.3.0-12
ii  zlib1g                     1:1.2.7.dfsg-13

blender recommends no packages.

Versions of packages blender suggests:
pn  yafaray-exporter  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: blender
Source-Version: 2.66a-2

We believe that the bug you reported is fixed in the latest version of
blender, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matteo F. Vescovi <[email protected]> (supplier of updated blender package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 08 Mar 2013 10:41:11 +0100
Source: blender
Binary: blender blender-dbg
Architecture: source amd64
Version: 2.66a-2
Distribution: experimental
Urgency: low
Maintainer: Debian Multimedia Maintainers 
<[email protected]>
Changed-By: Matteo F. Vescovi <[email protected]>
Description: 
 blender    - Very fast and versatile 3D modeller/renderer
 blender-dbg - debug symbols for Blender
Closes: 702503 702515
Changes: 
 blender (2.66a-2) experimental; urgency=low
 .
   * debian/patches/: re-worked to fix pending bugs.
     - #0005: updated to fix locale issue (Closes: #702503)
     - #0007: updated to fix system path issue (Closes: #702515)
     Thanks to Antonio Ospite for the hints.
Checksums-Sha1: 
 d7328d409b50e05cb614b99d22274bf6edac37a0 2703 blender_2.66a-2.dsc
 3f96f04ca108bc58dc99234630592c24725479a6 38959 blender_2.66a-2.debian.tar.gz
 6a1a80350515d3189a43280f61302af1c6c3338d 33990928 blender_2.66a-2_amd64.deb
 cb3316777a05c2b81549b9166371a5799868406b 146079146 
blender-dbg_2.66a-2_amd64.deb
Checksums-Sha256: 
 047442298934bfa7d959305bc16b410639b596acfb22198672d376a248281cd7 2703 
blender_2.66a-2.dsc
 fa6d7d825ce38a8679ea80cafdc881db30f9c4d1e92e55e6893bf9eadba281eb 38959 
blender_2.66a-2.debian.tar.gz
 8710f1f8651e6a6c26dec5276eefcf495ef510a9b7eb0c65d8bb90424fcf9c2f 33990928 
blender_2.66a-2_amd64.deb
 70a61054b3f4a4d1d19181c41909e72982bc4fa8fbce78c70a279b0590dc197e 146079146 
blender-dbg_2.66a-2_amd64.deb
Files: 
 8b6f363c35aec04cdd3a631d471fcaac 2703 graphics optional blender_2.66a-2.dsc
 6775f49ad0e0cc4d2350065f4581b1a7 38959 graphics optional 
blender_2.66a-2.debian.tar.gz
 bd6be8e965d5b07736c9d758e07543d9 33990928 graphics optional 
blender_2.66a-2_amd64.deb
 b65d7dcb62f1d67410e0159678925049 146079146 debug extra 
blender-dbg_2.66a-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Debian powered!

iQIcBAEBAgAGBQJROb6cAAoJEIBiOYmDss96sBsP/0SV2cTgojGOQOVTIKm0yCxz
S6/QAtgpHzJ+SVUZ7MKPFI7Tv+fmxc75l7+Ex7yQ7Lc7dtVfYP3ar6kaSJT2u+dM
1xgR5ypXoJI9IieQNB0XiXrKMI5z+kn+5s+4dZRh7PXkL/BeDbCz50sqAXL850jp
XHPWfreEI6PkgWPvQMJcTyB7KV4q6uyOWVo8vHiTFlb7Cfkmd50LBZ4/fJmY9l98
dH12R9zLG6RqdHRe2R9gkCNN01jXqa9YrQgDdFd1O0+yyDr6vCHR8hslWn3qUzd1
ov2iuuOk1M334U+QJw9IVwCD0w4uynEDXGINyEAF+21okOLj7Z2y1fVlEqCowM1y
h6M6XO9PgJ1vu2XoZ9DKeMBmR8U4F0TjWfkF3ql4dXkork0dZdcrI5h0j6pD5h2b
O+bsgtr00OVqoYcIlWAYwTQqDcSLxOkSRo/39wK3dOpDIP0boW3wEnFQYMXwYP/C
VYKiPz37bAUCZRtLTecdXY6pKb3V1aBN3MgQCCyUcjaxzt5sV+84p8CUeREHm2DS
tY7Qx4RbYMry+iFzPJ5N/QAjOsG7amxrlbh4go8OHVRHGkjpuokXZHcLfIk1ued0
z3YMmL1nA4bOl/tf4U2cbgdRDjZv5iLR4grpgB7+u4+0FU7Kuxyyt/FvYDIAtRcJ
7UmnW2SIk4WBxwalJ7QN
=9YQR
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to