Debian Bug report logs - #441216
blender: save files are not endian-safe

version graph

Package: blender; Maintainer for blender is Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>; Source for blender is src:blender (PTS, buildd, popcon).

Reported by: Bas Wijnen <wijnen@debian.org>

Date: Fri, 7 Sep 2007 13:33:02 UTC

Severity: important

Found in version blender/2.44-2

Fixed in version blender/2.45-5

Done: Cyril Brulebois <kibi@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Blender Maintainers <pkg-blender-maintainers@lists.alioth.debian.org>:
Bug#441216; Package blender. (full text, mbox, link).


Acknowledgement sent to Bas Wijnen <wijnen@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Blender Maintainers <pkg-blender-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Bas Wijnen <wijnen@debian.org>
To: submit@bugs.debian.org
Subject: blender: save files are not endian-safe
Date: Fri, 7 Sep 2007 15:28:15 +0200
[Message part 1 (text/plain, inline)]
Package: blender
Version: 2.44-2+b1
Severity: important

It took some time, so bug #330920 has been archived, but this is really
a follow-up to that.

The error has changed, though, now it says:

	guessing 'blender-bin' == '/usr/bin/blender-bin'
	Compiled with Python version 2.4.4.
	Checking for installed Python... got it!
	Loading ./art/marbles.blend failed: File incomplete

	Error: no such file or Blender text -- initdir.
	ERROR: No camera

	Blender quit

This seems to happen only on big-endian machines (so far, mips and s390,
it hasn't been built yet on m68k and hppa) and not on little-endian
machines.  The .blend file was generated on ia-32.

For the complete test case, see the gfpoken source package,
art/marbles.blend (version is currently 0.30-2, but the blend file will
not change unless suggested here).  For the error messages, see the
buildd logs at http://buildd.debian.org/pkg.cgi?pkg=gfpoken .

Thanks,
Bas Wijnen

-- 
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
   in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://pcbcn10.phys.rug.nl/e-mail.html
[signature.asc (application/pgp-signature, inline)]

Blocking bugs of 441126 added: 441216 Request was from Bas Wijnen <wijnen@debian.org> to control@bugs.debian.org. (Sat, 08 Sep 2007 11:45:02 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Blender Maintainers <pkg-blender-maintainers@lists.alioth.debian.org>:
Bug#441216; Package blender. (full text, mbox, link).


Acknowledgement sent to Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>:
Extra info received and forwarded to list. Copy sent to Debian Blender Maintainers <pkg-blender-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #12 received at 441216@bugs.debian.org (full text, mbox, reply):

From: Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>
To: Bas Wijnen <wijnen@debian.org>, 441216@bugs.debian.org
Subject: Re: [Pkg-blender-maintainers] Bug#441216: blender: save files are not endian-safe
Date: Mon, 10 Sep 2007 10:52:34 +0200
[Message part 1 (text/plain, inline)]
Hi.

Bas Wijnen <wijnen@debian.org> (07/09/2007):
> It took some time, so bug #330920 has been archived, but this is
> really a follow-up to that.

You could have unarchived it but OK for a new bug anyway.

> The error has changed, though, now it says:
> 
> 	guessing 'blender-bin' == '/usr/bin/blender-bin'
> 	Compiled with Python version 2.4.4.
> 	Checking for installed Python... got it!
> 	Loading ./art/marbles.blend failed: File incomplete
> 
> 	Error: no such file or Blender text -- initdir.
> 	ERROR: No camera
> 
> 	Blender quit
> 
> This seems to happen only on big-endian machines (so far, mips and
> s390, it hasn't been built yet on m68k and hppa) and not on
> little-endian machines.  The .blend file was generated on ia-32.

Well, I'm not sure the endianness is the (only) problem:
0.30-3 (powerpc) (latest build at Sep 7 15:19: maybe-successful)

And I can't reproduce the bug on my iBook (PowerPC, G4), by opening this
file and rendering it.

Using the art/mkmarbles script is also OK.

> For the complete test case, see the gfpoken source package,
> art/marbles.blend (version is currently 0.30-2, but the blend file
> will not change unless suggested here).  For the error messages, see
> the buildd logs at http://buildd.debian.org/pkg.cgi?pkg=gfpoken .

According to the first bytes of the file, it looks like is has last been
saved with blender 2.44, so it *should* be portable (according to what
upstream considers portable…) accross platforms. I'll report that on an
upstream mailing list.

Cheers,

-- 
Cyril Brulebois
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Blender Maintainers <pkg-blender-maintainers@lists.alioth.debian.org>:
Bug#441216; Package blender. (full text, mbox, link).


Acknowledgement sent to Stefan Gartner <stefang@aon.at>:
Extra info received and forwarded to list. Copy sent to Debian Blender Maintainers <pkg-blender-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #17 received at 441216@bugs.debian.org (full text, mbox, reply):

From: Stefan Gartner <stefang@aon.at>
To: 441216@bugs.debian.org
Subject: RE: blender: save files are not endian-safe
Date: Sun, 16 Mar 2008 22:41:18 +0100
[Message part 1 (text/plain, inline)]
Hi,

this bug is indeed endian-specific, because there are some architecture 
specific macros in the source code to determine the endianess (powerpc is not 
affected, because it is an officially supported platform). See 
http://projects.blender.org/tracker/index.php?func=detail&aid=8584&group_id=9&atid=127 
for a fix for hppa. For mips and s390 similar measures should be taken. The 
easiest way probably is to add "-D__BIG_ENDIAN__" to the preprocessor flags.

greetings,
stefan
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Blender Maintainers <pkg-blender-maintainers@lists.alioth.debian.org>:
Bug#441216; Package blender. (full text, mbox, link).


Acknowledgement sent to Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>:
Extra info received and forwarded to list. Copy sent to Debian Blender Maintainers <pkg-blender-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #22 received at 441216@bugs.debian.org (full text, mbox, reply):

From: Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>
To: Stefan Gartner <stefang@aon.at>, 441216@bugs.debian.org
Subject: Re: [Pkg-blender-maintainers] Bug#441216: blender: save files are not endian-safe
Date: Mon, 17 Mar 2008 00:12:08 +0100
[Message part 1 (text/plain, inline)]
On 16/03/2008, Stefan Gartner wrote:
> this bug is indeed endian-specific, because there are some
> architecture specific macros in the source code to determine the
> endianess (powerpc is not affected, because it is an officially
> supported platform).

Which explains why I couldn't trigger it.

> See
> http://projects.blender.org/tracker/index.php?func=detail&aid=8584&group_id=9&atid=127
> for a fix for hppa. For mips and s390 similar measures should be
> taken. The easiest way probably is to add "-D__BIG_ENDIAN__" to the
> preprocessor flags.

I'll have a look at this soonish.

Thanks for pointing this out.

Cheers,

-- 
Cyril Brulebois
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Cyril Brulebois <kibi@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Bas Wijnen <wijnen@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #27 received at 441216-close@bugs.debian.org (full text, mbox, reply):

From: Cyril Brulebois <kibi@debian.org>
To: 441216-close@bugs.debian.org
Subject: Bug#441216: fixed in blender 2.45-5
Date: Fri, 25 Apr 2008 21:32:05 +0000
Source: blender
Source-Version: 2.45-5

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:

blender_2.45-5.diff.gz
  to pool/main/b/blender/blender_2.45-5.diff.gz
blender_2.45-5.dsc
  to pool/main/b/blender/blender_2.45-5.dsc
blender_2.45-5_i386.deb
  to pool/main/b/blender/blender_2.45-5_i386.deb



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 441216@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Cyril Brulebois <kibi@debian.org> (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 ftpmaster@debian.org)


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

Format: 1.8
Date: Fri, 25 Apr 2008 22:50:31 +0200
Source: blender
Binary: blender
Architecture: source i386
Version: 2.45-5
Distribution: unstable
Urgency: high
Maintainer: Cyril Brulebois <kibi@debian.org>
Changed-By: Cyril Brulebois <kibi@debian.org>
Description: 
 blender    - Very fast and versatile 3D modeller/renderer
Closes: 441216 463749 477761 477808
Changes: 
 blender (2.45-5) unstable; urgency=high
 .
   * debian/control:
      - Adjust Maintainer and Uploaders according to last years' activity.
      - Update my mail address. Many thanks to Florian Ernst who sponsored
        all my uploads.
   * Switch from python2.4 to python2.5 (Closes: #477761):
      - Replace python2.4-dev with python2.5-dev in Build-Depends.
      - Refresh the following patch to set BF_PYTHON_VERSION accordingly:
         - 50_debian_build_config.
   * Fix CVE-2008-1102: “Stack-based buffer overflow in the imb_loadhdr
     function allows user-assisted remote attackers to execute arbitrary
     code via a .blend file that contains a crafted Radiance RGBE image.”
     Add upstream patch as pointed to by Tomas Hoger <thoger@redhat.com>
     (thanks!), which basically adds a check on sscanf() return code and
     limits the size of accepted %s parameters (Closes: #477808):
      - 30_fix_CVE-2008-1102.
   * Bump urgency to “high” accordingly.
   * Disable the “-Wdeclaration-after-statement” C_WARN flag (which is only
     valid for C/ObjC but not for C++) in config/linux2-config.py, by
     updating the following patch:
      - 50_debian_build_config.
   * Use DEB_HOST_ARCH to determine whether the host architecture is
     big-endian so as to pass an extra “-D__BIG_ENDIAN__” flag to the
     compiler, thus fixing the buggy endianness detection (upstream lists
     every platform, but misses at least hppa, mips, and s390). Thanks to
     Stefan Gartner for the tip (Closes: #441216).
   * Make scons understand what is wanted from it:
      - Pass “-g” and “-O” options through CFLAGS.
      - Pass “-D” options through CPPFLAGS.
   * Add patch to make blender able to use the compatibility layer that
     scons is setting up for its Option->Variable transition, initiated in
     scons 0.98.2-1 (deprecation will follow, but Blender should be updated
     upstream in the meanwhile), thanks to Mark Brown (see #477912):
      - 40_workaround_scons_options_deprecation.
   * Switch from ttf-bitstream-vera to ttf-dejavu (Closes: #463749), thanks
     to Sven Arvidsson:
      - debian/control: Update Depends.
      - debian/rules: Update symlink.
Checksums-Sha1: 
 65c6c63b4fd52e5ba2ad94c3a5f9fc457bac1700 1349 blender_2.45-5.dsc
 67d5edcae9bb8dfbd8cbf2fb552ce5d2af930c6a 27898 blender_2.45-5.diff.gz
 08807fe398775c61f818b7827188275a06eb6c74 7356186 blender_2.45-5_i386.deb
Checksums-Sha256: 
 6c80c78bdc506bd314648bed06b60d710b02050e46abb3b490e891a47e028886 1349 blender_2.45-5.dsc
 1faf4f564eb1a61360e656b09cf9052f1b226295625e464a06ece4c60b169946 27898 blender_2.45-5.diff.gz
 f3f3cfb26b16064ae563274fe33bab427866b238b0d1fff784432dbf3d62ce94 7356186 blender_2.45-5_i386.deb
Files: 
 11e9908bbf67c791fb493381719df55e 1349 graphics optional blender_2.45-5.dsc
 36459ddf53b4c12da5a1c1ba5ef4a2cd 27898 graphics optional blender_2.45-5.diff.gz
 d8a27300fb559cdbf4c919ace56da31c 7356186 graphics optional blender_2.45-5_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIEkx9eGfVPHR5Nd0RAj4xAJ0Q9iyO75e9FzEoRQtCKXSWe7A/7gCeJg6q
RY21ywxXt36BtIY37k2xk0g=
=w+MP
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 18 Jul 2008 07:28:49 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 08:18:47 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.