Package: openglad
Version: 0.98-3
Followup-For: Bug #463158

I have the same problem as Guus Sliepen. When I start openglad, it opens a
blank window and then segfaults.

I compiled it myself with just -g, and found that it crashes here:

#0  0x000000000045bde5 in Scale_SuperEagle (src=0x733f30 "", srcx=0, srcy=0, 
    srcw=320, srch=200, src_pitch=320, src_height=200, dst=0x2b493fd69000 "", 
    dstx=0, dsty=0, dst_pitch=640) at sai2x.cpp:472
#1  0x000000000045d245 in Screen::RenderAndReturn (this=0x6c2380, x=0, y=0, 
    w=320, h=200) at sai2x.cpp:810
#2  0x0000000000441033 in video::buffer_to_screen (this=0x679710, 
    viewstartx=0, viewstarty=0, viewwidth=320, viewheight=200)
    at video.cpp:1212
#3  0x0000000000434840 in screen (this=0x679710, howmany=1) at screen.cpp:127
#4  0x0000000000405b3c in main (argc=1, argv=0x7fff6e32ad78) at glad.cpp:71

468                             }
469
470                             *dP = product1a;
471                             *(dP+1) = product1b;
472                             *(dP+dst_pitch) = product2a;
473                             *(dP+dst_pitch+1) = product2b;
474
475                             bP += 1;
476                             dP += 2;


However, I can't figure out why. The function Scale_SuperEagle enlarges
the 320x200 surface 'screen' onto the 640x400 surface 'render'. I poked
around but it all checks out -- the pointer dP points into a pixel array
that should be large enough to do what it's doing.

I suspect this is a side effect of some earlier bug, because when I
tried to run it under valgrind it didn't crash there and actually continued
to the title screen.

You might have to be on an amd64 system to reproduce this.

Richard Braakman


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22.6
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages openglad depends on:
ii  libc6                         2.7-9      GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.0-1  GCC support library
ii  libsdl-mixer1.2               1.2.8-3    mixer library for Simple DirectMed
ii  libsdl1.2debian               1.2.13-2   Simple DirectMedia Layer
ii  libstdc++6                    4.3.0-1    The GNU Standard C++ Library v3

openglad recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to