Opened 15 years ago

Closed 15 years ago

Last modified 23 months ago

#2025 closed defect (wontfix)

GCC4/MI2: Value out of bounds (crash)

Reported by: SF/xake Owned by: fingolfin
Priority: normal Component: Port: Linux
Keywords: Cc:
Game: Monkey Island 2

Description

When I try to start a previous working MI2 (don't know when it stop work):

monkey2 $ scummvm monkey2 Looking for monkey2 Trying to start game 'Monkey Island 2: LeChuck's revenge' WARNING: No path was provided. Assuming the data files are in the current directory! (0:1:0x25): Value 2565 is out of bounds (0,799) (Variable 2565 out of range(r)) (0:1:0x25): Value 2565 is out of bounds (0,799) (Variable 2565 out of range(r))!

A similar message comes with MI1CD, but the version I have does not have a MD5 Scummvm accepts.

monkey1 $ scummvm Looking for monkey Trying to start game 'Monkey Island 1' WARNING: md5_file couldn't open 'monkey.000'! Unknown MD5 (0400000000000000d4ef4500101c8908)! Please report the details (language, platform, etc.) of this game to the ScummVM team (0:1:0xC9): Value 807 is out of bounds (0,799) (Variable 807 out of range(r)) (0:1:0xC9): Value 807 is out of bounds (0,799) (Variable 807 out of range(r))!

This was with scummvm 0.7.1 and ScummVM 0.8.0CVS (May 14 2005 14:27:54) (daily tarball).

Ticket imported from: #1201939. Ticket imported from: bugs/2025.

Change History (7)

comment:1 by SF/xake, 15 years ago

Ok, this seems to be a GCC-thing.

Using GCC-4.0.0 gives me this error with MI1 MI2 but not with COMI and SKY.

However recompiling it using 3.4.3 makes everything running fine.

comment:2 by fingolfin, 15 years ago

Looking at the output, it obviously fails to find the data files...

comment:3 by SF/xake, 15 years ago

fingolfin: I am sorry to say that you are wrong. If I issue 'scummvm monkey2' in a directory where there is no data-files related to MI2 then it dies telling me that a file is missing. However as soon as scummvm is compiled using GCC-4.0 MI2 does not seem to start (true for the CVS, have not thested 0.7.1 yet). It just brings up debugmode giving me the same message about "Value out of range" as it at the same time gives me int the terminal-window.

## Heer is the errormessage if no datafile is found: ~ $ scummvm monkey2 Looking for monkey2 Trying to start game 'Monkey Island 2: LeChuck's revenge' WARNING: md5_file couldn't open 'monkey2.000'! Unknown MD5 (040000000000000090920a00804ba308)! Please report the details (language, platform, etc.) of this game to the ScummVM team (0:0:0x0): Cannot find file: 'monkey2.000'!

comment:4 by fingolfin, 15 years ago

Well the printout you included in your initial report still indicates a problem with finding the data files, as the md5_file warning ("md5_file couldn't open 'monkey.000'!) clearly shows... Maybe this is just a problem with monkey1.000 vs. monkey.000, though. Still, that shouldn't happen.

Anyway, MI2 works great here (tested Mac, Amiga, PC versions). And you say the problem only occurs with GCC 4.0. Then for the time being and until proven otherwise, I'll just have to assume you encountered one of the many bugs in GCC 4.0.0 (I would advice against using GCC 4.0 for any critical things at this point, anyway -- I assume 4.0.1/4.0.2 will be the first usable version, and GCC 4.1.1 the first really good GCC 4.x version :-)

comment:5 by fingolfin, 15 years ago

Owner: set to fingolfin
Resolution: wontfix
Status: newclosed
Summary: MI2: Value out of bounds (crash)GCC4/MI2: Value out of bounds (crash)

comment:6 by SF/xake, 15 years ago

Yes, maybe you are right. The thought that this maybe was a GCC4.0 bug hit me too, but that first after I had posted this bug-report. Waiting for final 4.0.1/4.0.2 and report back if still exist with them?

comment:7 by digitall, 23 months ago

Component: Port: Linux
Game: Monkey Island 2
Note: See TracTickets for help on using tickets.