Project

General

Profile

Actions

Emulator Issues #12716

closed

Error when running simple Hello World program with printf call

Added by turbolent about 3 years ago. Updated about 3 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Current
Regression:
Yes
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
5.0-10956
Fixed in:
5.0-15419

Description

What's the problem? Describe what went wrong.

When compiling a simple Hello World program that contains a printf call with devkitPro/devkitPPC, and executing the resulting ELF/DOL in Dolphin by using -b -e, it reports an error:

#include <stdio.h>

int main(int argc, char **argv) {
  printf("Hello, world!\n");
}

IntCPU: Unknown instruction 00000000 at PC = 80001800  last_PC = 00000000  LR = 80007208

It looks like the error is reported after the print call was intercepted and completed:

59:21:014 Core/HLE/HLE_OS.cpp:85 N[OSREPORT]: 800057cc->800057c0| Hello, world!

What steps will reproduce the problem?

Run a program with a printf call, see example above.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

Yes, in 5.0-15377.

Is the issue present in the latest stable version?

No, 5.0 works.

If the issue isn't present in the latest stable version, which is the first broken version?

5.0-10956, i.e. https://github.com/dolphin-emu/dolphin/pull/8370 broke it.

What are your PC specifications? (CPU, GPU, Operating System, more)

  • OS: macOS 10.15.7
  • CPU: 2.9 GHz 6-Core Intel Core i9
  • GPUs: Intel UHD Graphics 630, Radeon Pro 560X

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)

Screenshot of the error


Files

Screen Shot 2021-10-24 at 11.00.42 AM.png (378 KB) Screen Shot 2021-10-24 at 11.00.42 AM.png Screenshot of the error turbolent, 10/24/2021 09:02 AM
test.dol (131 KB) test.dol Hello world program with printf, DOL format turbolent, 10/24/2021 09:02 AM
test.elf (923 KB) test.elf Hello world program with printf, ELF format turbolent, 10/24/2021 09:02 AM
Actions

Also available in: Atom PDF