exult segfaults when changing scaler

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

exult segfaults when changing scaler

Post by artaxerxes »

Hi,

when I start exult and select "config", and change the scaler to scale2x, exult segfaults.

Here is what gdb has to say about it:
Starting program: /usr/local/bin/exult
Exult version 1.1.0cvs
Built at: Jun 11 2003 15:27:13
Compile-time options: HAVE_TIMIDITY_BIN, USE_EXULTSTUDIO, HAVE_ZIP_SUPPORT
Compiler: gcc, version: 3.2 (Mandrake Linux 9.0 3.2-1mdk)

Platform: Linux version 2.4.19-16mdk
Data path = /usr/local/share/exult
Music path = /usr/local/share/exult/music

Program received signal SIG32, Real-time event 32.
0x40410479 in sigsuspend () from /lib/i686/libc.so.6
Current language: auto; currently c
(gdb) c
Continuing.
is_installed: './static/endgame.dat': no
is_installed: '/home/aurelien/jeux/u7p2//static/sispeech.spc' : yes

Program received signal SIGSEGV, Segmentation fault.
Game_window::resized(unsigned, unsigned, unsigned, unsigned) (this=0x81c7f48, neww=320, newh=200,
newsc=2, newsclr=7) at objs/objs.h:108
108 { return (shape_pos >> 4) & 0xf; }
Current language: auto; currently c++
(gdb) bt
#0 Game_window::resized(unsigned, unsigned, unsigned, unsigned) (this=0x81c7f48, neww=320, newh=200,
newsc=2, newsclr=7) at objs/objs.h:108
#1 0x08086962 in ExultMenu::setup() (this=0xbffff130) at imagewin/imagewin.h:224
#2 0x08087952 in ExultMenu::run() (this=0xbffff130) at exultmenu.cc:345
#3 0x08080f28 in Init () at exult.cc:679
#4 0x0807e492 in exult_main (
runpath=0xbffff4b0 "\234È\e\b\230\e\e\bØôÿ¿ü\n/@$ß\e\bp®\e\bØôÿ¿\234>.@lÈ\e\bhà;@8õÿ¿\224ß6@\230\e\e\b0õÿ¿") at exult.cc:465
#5 0x0807d8ca in main (argc=1, argv=0x81bcba8) at exult.cc:294
#6 0x403ff082 in __libc_start_main () from /lib/i686/libc.so.6

Hope that helps!

Artaxerxes
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: exult segfaults when changing scaler

Post by wjp »

This has been in there for ages. (I also mentioned it in my email from this morning; the one you replied to ;-) )
Colourless
Site Admin
Posts: 731
Joined: Thu May 14, 2020 1:34 pm

Re: exult segfaults when changing scaler

Post by Colourless »

Congratualtions Artaxerxes, this is a 'duplicate' bug :-)

Thanks for notifying us of a bug we, already knew about, and as wjp stated, SO did you too :-)

Stating the obvious.... of course!

-Colourless Dragon
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: exult segfaults when changing scaler

Post by artaxerxes »

well, better twice than none! :-)

I must admit I did not really pay attention. Oh well, c'est la vie!

Artaxerxes
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: exult segfaults when changing scaler

Post by wjp »

It did get fixed now, though. So apparently posting about it was the right thing to do :-)
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: exult segfaults when changing scaler

Post by drcode »

Heh. The fix for that was pretty simple. But, my version still segfaults when I'm browsing around the Setup menus, this time within SDL_mixer. It happens also in the game, apparently at times when the music changes.
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: exult segfaults when changing scaler

Post by wjp »

I don't think this is a bug in Exult. It's a division by zero in SDL_mixer. It seems to happen with some instruments. (It crashes when a new instrument should start playing in the intro tune)
Locked