Bug#721142: sam2p: Program always exits with the same error, not working at all.

2013-08-30 Thread Tanguy Ortolo
I have found one thing: it never happends on amd64, and always happen on 
i386. Recompiling it works, but changes nothing.


Now I am at a loss, however…

--
 ,--.
: /` )   Tanguy Ortolo  xmpp:tan...@ortolo.eu
| `-'Debian Developer   irc://irc.oftc.net/Tanguy
 \_


signature.asc
Description: Digital signature


Bug#721142: sam2p: Program always exits with the same error, not working at all.

2013-08-28 Thread Kristijan Caprdja
Package: sam2p
Version: 0.49.1-2
Severity: grave

Hello,

sam2p program does not seem to work any more. Regardless of the input
parameters on the command line it will always break with the same error
message, it should be easy to reproduce on any machine.


* What exactly did you do (or not do) that was effective (or ineffective)?
prompt sam2p test.jpg test.eps

* What was the outcome of this action?
prompt sam2p test.jpg test.eps
This is sam2p 0.49.1.
Available Loaders: PS PDF JAI PNG JPEG TIFF PNM BMP GIF LBM XPM PCX TGA.
Available Appliers: XWD Meta Empty BMP PNG TIFF6 TIFF6-JAI JPEG-JAI JPEG
PNM GIF89a+LZW XPM PSL1C PSL23+PDF PSL2+PDF-JAI P-TrOpBb.
sam2p: Error: MiniPS::Parser: dict key must be a /name

* What outcome did you expect instead?
prompt sam2p test.jpg test.eps
This is sam2p 0.49.1.
Available Loaders: PS PDF JAI PNG JPEG TIFF PNM BMP GIF LBM XPM PCX TGA.
Available Appliers: XWD Meta Empty BMP PNG TIFF6 TIFF6-JAI JPEG-JAI JPEG
PNM GIF89a+LZW XPM PSL1C PSL23+PDF PSL2+PDF-JAI P-TrOpBb.
sam2p: Notice: job: read InputFile: test.jpg
sam2p: Notice: writeTTT: using template: l2jbin
sam2p: Notice: applyProfile: applied OutputRule #0
sam2p: Notice: job: written OutputFile: test.eps
Success


Suggested fix:
The version from wheezy (0.49.1-1) is working as expected. The error
seems to be introduced in the testing (jessie) distribution (0.49.1-2).



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.10-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sam2p depends on:
ii  libc6  2.17-92

Versions of packages sam2p recommends:
ii  libjpeg-progs  8d-1
ii  netpbm 2:10.0-15+b1

sam2p suggests no packages.

-- no debconf information


Cheers,
Kristijan Caprdja


Bug#721142: sam2p: Program always exits with the same error, not working at all.

2013-08-28 Thread Tanguy Ortolo

Kristijan Caprdja, 2013-08-28 15:22+0200:

sam2p program does not seem to work any more. Regardless of the input
parameters on the command line it will always break with the same error
message, it should be easy to reproduce on any machine.


Well, not here. Can you provide me with an example of an image that 
leads to that error?



Suggested fix:
The version from wheezy (0.49.1-1) is working as expected. The error
seems to be introduced in the testing (jessie) distribution (0.49.1-2).


This is not a fix. The difference between 0.49.1-1 and 0.49.1-2 are:
* 0.49.1-1 does not compile with GCC 4.8, which is the compiler in 
  Jessie;

* 0.49.1-2 is patched so it compiles with GCC 4.8.

So, there is no real difference in the code except fixes, and 0.49.1-1 
cannot be built with Jessie.


Librement,

--
 ,--.
: /` )   Tanguy Ortolo  xmpp:tan...@ortolo.eu
| `-'Debian Developer   irc://irc.oftc.net/Tanguy
 \_


signature.asc
Description: Digital signature


Bug#721142: sam2p: Program always exits with the same error, not working at all.

2013-08-28 Thread Kristijan Caprdja
Hello,
Well, not here. Can you provide me with an example of an image that leads
to that error?

It does not depend on the image, it does this regardless of the input.

I have seen the patches applied and I cannot explain why they should change
the behaviour of this program so much.
The error is consistent on two machines that I tried.

If ldd output  is of any help:

prompt ldd /usr/bin/sam2p
linux-gate.so.1 (0xb77cc000)
libc.so.6 = /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb7583000)
/lib/ld-linux.so.2 (0xb77cd000)

I will try to narrow the bug down later this evening.

thanks and cheers,
  Kristijan


Bug#721142: sam2p: Program always exits with the same error, not working at all.

2013-08-28 Thread Tanguy Ortolo

Kristijan Caprdja, 2013-08-28 16:50+0200:

It does not depend on the image, it does this regardless of the input.

I have seen the patches applied and I cannot explain why they should change
the behaviour of this program so much.
The error is consistent on two machines that I tried.


Same here, reversed: whatever image I use, I do not get this error on 
the two machines I tried! :-)



I will try to narrow the bug down later this evening.


Do you have the sam2p's recommends installed?

--
 ,--.
: /` )   Tanguy Ortolo  xmpp:tan...@ortolo.eu
| `-'Debian Developer   irc://irc.oftc.net/Tanguy
 \_


signature.asc
Description: Digital signature


Bug#721142: sam2p: Program always exits with the same error, not working at all.

2013-08-28 Thread Kristijan Caprdja
I created a fresh debian installation in a virtual machine (VirtualBox)
using the daily netinst image from
here:
http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso
.

The problem was reproducable immediately.

As a test image I used a picture of Tux from wikipedia:
http://upload.wikimedia.org/wikipedia/commons/a/af/Tux.png

After downgrading the package (apt-get --purge remove sam2p  apt-get -t
wheezy install sam2p)  the program worked.
Upgrading it (apt-get --purge remove sam2p  apt-get install sam2p) broke
it again.

I can post a dropbox link to a VirtualBox image with my virtual machine
later (upload of an 400MB file is slow with dropbox).
I did nothing fancy within the virtual machine. Just a standard, minimal
installation (no gui or anything), only added link to wheezy repository in
the sources.list in order to test the older version.

Do you have the sam2p's recommends installed?
Yes, I have (netpbm and libjpeg-progs)




cheers,
  Kristijan


Bug#721142: sam2p: Program always exits with the same error, not working at all.

2013-08-28 Thread Kristijan Caprdja
Here is the link to the VirtualBox image:
http://dl.dropboxusercontent.com/u/7978838/sam2ptest.ova
Size is around 400MB.

I used the Import/Export Appliance feature in the VirtualBox user interface.

cheers,
  Kristijan