Opened 5 weeks ago

Closed 4 weeks ago

#19294 closed bug (fixed)

gcc fatal error: cannot write PCH file: required memory segment unavailable

Reported by: 3dEyes Owned by: waddlesplash
Priority: normal Milestone: R1/beta6
Component: System/Kernel Version: R1/beta5
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

The issue appeared after updating to hrev58388: when building some large projects, gcc started crashing with the error "fatal error: cannot write PCH file: required memory segment unavailable". The problem is not present in hrev58385.

It can be reproduced when building ports such as ppsspp or telegram_desktop.

Change History (4)

comment:1 by waddlesplash, 5 weeks ago

I guess hrev58388 itself must be to blame, there aren't any other candidates in there really.

I'll see if I can reproduce.

comment:3 by waddlesplash, 4 weeks ago

GCC invokes mmap on a file that's 0x70000 bytes large with a size parameter of 0x530F000. That sounds wrong?

Admittedly the mapping is REGION_PRIVATE_MAP, so maybe it doesn't make sense to deny it in this case.

comment:4 by waddlesplash, 4 weeks ago

Milestone: UnscheduledR1/beta6
Resolution: fixed
Status: assignedclosed

Fixed in hrev58433.

Note: See TracTickets for help on using tickets.