On 05/24/2011 07:18 PM, cloonfane wrote:
> Hi Seth,
> The code you quote there is not in any of the versions I have.
> Also, I have completed hundreds of xjig puzzles over the last few years, 
> and never a crash.
>
> I now use version 2.5 ( http://sourceforge.net/projects/xjig/ ). It has 
> more options, and a frontend manager.
>
> Regards
> Les Hardy
Ok, you are obviously referring to some other package that I'm not
currently aware of.
That's funny. I just reinstalled in Ubuntu Maverick Meerkat - and it
still crashes every time I finish the puzzle.

Note that the crash might not manifest itself with different
versions/builds of libraries or on (e.g.) AMD64

Here are the details, in case it helps pinpointing our version mismatch:

    sehe@meerkat:/$ which xjig
    /usr/games/xjig

    sehe@meerkat:/$ dpkg --search /usr/games/xjig
    xjig: /usr/games/xjig

    sehe@meerkat:/$ dpkg --status xjig
    Package: xjig
    Status: install ok installed
    Priority: optional
    Section: games
    Installed-Size: 276
    Maintainer: Ubuntu Developers <[email protected]>
    Architecture: i386
    Version: 2.4-13
    Depends: libc6 (>= 2.7), libgcc1 (>= 1:4.1.1), libjpeg62,
    libnetpbm10, libstdc++6 (>= 4.1.1), libx11-6, libxext6
    Description: An X11 jigsaw puzzle
     xjig is a puzzle that tries to replicate a jigsaw puzzle on the screen
     as closely as possible. Any GIF, JPEG or PPM image may be loaded
    and cut
     into pieces. The goal (as with any jigsaw puzzle) is to reassemble the
     original picture.
     .
     Tiles may be freely rotated by use of the mouse, flipped (for
     double-sided puzzles) and even shown as shaped windows on the desktop
     (fast machine/video card recommended for the latter!). An example image
     is provided in /usr/share/games/xjig .
    Original-Maintainer: Dave Holland <[email protected]>

Trace

    sehe@meerkat:/$ xjig -w 2 -h 2 -no_flip

    xjig V2.4, by Helmut Hoenig, July-24-96

    *** buffer overflow detected ***: xjig terminated
    ======= Backtrace: =========
    /lib/libc.so.6(__fortify_fail+0x50)[0xb7582970]
    /lib/libc.so.6(+0xe486a)[0xb758186a]
    /lib/libc.so.6(+0xe3fa8)[0xb7580fa8]
    /lib/libc.so.6(_IO_default_xsputn+0x9e)[0xb7507a2e]
    /lib/libc.so.6(_IO_vfprintf+0x115)[0xb74da325]
    /lib/libc.so.6(__vsprintf_chk+0xad)[0xb758105d]
    /lib/libc.so.6(__sprintf_chk+0x2d)[0xb7580f9d]
    xjig[0x804c9d8]
    /lib/libc.so.6(__libc_start_main+0xe7)[0xb74b3ce7]
    xjig[0x804a4e1]

I can very much see the line with the problem right there: xjig.C

    685     char     buffer[20];
    686     next_sec = (unsigned long)current_time;
    687     if (!p->Finished()) {
    688         sprintf( buffer, "xpuzzle:  %02ld:%02ld",
    689             next_sec / 60, next_sec % 60 );
    690         if (!shapes)    XStoreName(dpy,win,buffer);
    691     }
    692     else {
    693         sprintf( buffer, "no more tiles left at:  %02ld:%02ld",
    694             next_sec / 60, next_sec % 60 );

I'm on

    sehe@meerkat:/tmp/xjig-2.4$ uname -a
    Linux meerkat 2.6.35-28-generic-pae #50-Ubuntu SMP Fri Mar 18
    20:43:15 UTC 2011 i686 GNU/Linux
    sehe@meerkat:/tmp/xjig-2.4$ lsb_release -a
    No LSB modules are available.
    Distributor ID:    Ubuntu
    Description:    Ubuntu 10.10
    Release:    10.10
    Codename:    maverick

Cheers,
Seth

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/787035

Title:
  guaranteed crash on completion of puzzle

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to