Opened 3 years ago

Closed 3 years ago

#16966 closed bug (fixed)

Debugger crashes when loading symbols for OpenTTD

Reported by: milek7 Owned by: anevilyak
Priority: normal Milestone: R1/beta3
Component: Applications/Debugger Version: R1/beta2
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64

Description (last modified by milek7)

To reproduce (libsdl_devel is required for build):

git clone https://github.com/OpenTTD/OpenTTD
cd OpenTTD
mkdir build
cd build
cmake ..
make
Debugger ./openttd

It seems it crashes by stack overflow caused by infinite recursion when resolving symbol, crashlog attached.

From cursory examination of coredump it seems to loop with this string: IndustryDirectoryWindow::GetIndustryString(const Industry*)::<lambda(CargoInfo, CargoInfo)>::, which seems to be the symbol _ZZNK23IndustryDirectoryWindow17GetIndustryStringEPK8IndustryENKUlSt5tupleIJhtPKcjEES6_E_clES6_S6_ (GNU tools are demangling it into IndustryDirectoryWindow::GetIndustryString(Industry const*) const::{lambda(std::tuple<unsigned char, unsigned short, char const*, unsigned int>, std::tuple<unsigned char, unsigned short, char const*, unsigned int>)#1}::operator()(std::tuple<unsigned char, unsigned short, char const*, unsigned int>, std::tuple<unsigned char, unsigned short, char const*, unsigned int>) const).

Attachments (1)

debugger_crash.txt (293.1 KB ) - added by milek7 3 years ago.

Download all attachments as: .zip

Change History (5)

by milek7, 3 years ago

Attachment: debugger_crash.txt added

comment:1 by milek7, 3 years ago

Description: modified (diff)

comment:2 by anevilyak, 3 years ago

I see this is labeled as occurring on beta2. Can you verify this on a nightly? A similar bug was fixed relatively recently there.

comment:3 by milek7, 3 years ago

Indeed it works on nightly, thanks.

comment:4 by anevilyak, 3 years ago

Milestone: UnscheduledR1/beta3
Resolution: fixed
Status: newclosed

Thanks for verifying!

Note: See TracTickets for help on using tickets.