[haiku-bugs] [Haiku] #16626: Regression: malloc/new with large buffer >2Gb fails (x64)

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 01 Dec 2020 21:16:31 -0000

#16626: Regression: malloc/new with large buffer >2Gb fails (x64)
-----------------------------+--------------------------
 Reporter:  smallstepforman  |       Owner:  nobody
     Type:  bug              |      Status:  new
 Priority:  high             |   Milestone:  Unscheduled
Component:  System           |     Version:  R1/beta2
 Keywords:                   |  Blocked By:
 Blocking:                   |    Platform:  All
-----------------------------+--------------------------
 In between hrev54154 (14th Sep 2020) and hrev54662 (21st Oct 2020), a
 regression was introduced which fails a c++ new (malloc) when requesting
 more than 2Gb of memory (x64 architecture, with 32Gb available memory).

 Stack trace:
 _kern_debugger +0x7
 abort + 0x4a
 llvm::report_bad_alloc_error(char const*, bool) + 0xea
 operator new(std::size-t) + 0x3a
 The file belongs to /sources/gcc-8.3.0/libstdc++-v3/libsupc++/new_op.cc

 Requested buffer size was 2,053,316,608 bytes.

 This has been working for a number of years until the regression was
 introduced between hrev54154 (last known working version) and hrev54662
 (earliest detected error).  Validated on 3 boxes (MacBookPro, Ryzen2700,
 Ryzen3700) with multiple haiku images (disk/usb/ssd/nvme).
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16626>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: