View Issue Details

IDProjectCategoryView StatusLast Update
0011483Dwarf FortressTechnical -- Generalpublic2020-03-29 10:32
ReporterResplendentTiger Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
PlatformmacbookOSmacosOS Version10.14.6
Product Version0.47.04 
Summary0011483: Consistent segfault on save
DescriptionHello, I hope I'm providing the correct information.

I have a save I began with the "Lazy Mac Pack" which was consistently crashing at the same point. To limit the affect of any mods, I tried to repeatedly save to get a save as close to whatever event was happening, and then I reloaded the same save in a newly downloaded and unmodified 0.47.04. In both cases, I get a segfault whose stacktrace is the following:

Thread 0:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreGraphics 0x00007fff33ddbef3 RGBAf16_sample_RGBAf_inner(_ImgOp const*, long, long, int) + 778
1 com.apple.CoreGraphics 0x00007fff33dd73d2 RGBAf16_image_mark(BltDepth const*, BltOp const*, _ImgOp*, MODE) + 1301
2 com.apple.CoreGraphics 0x00007fff33dab458 RGBAf16_image + 456
3 com.apple.CoreGraphics 0x00007fff33d719bf ripl_Mark + 22
4 com.apple.CoreGraphics 0x00007fff33d71994 RIPLayerBltImage + 1018
5 com.apple.CoreGraphics 0x00007fff33d712d6 ripc_RenderImage + 228
6 com.apple.CoreGraphics 0x00007fff33d64f51 ripc_DrawImage + 812
7 com.apple.CoreGraphics 0x00007fff33d64c16 CGContextDelegateDrawImage + 41
8 com.apple.AppKit 0x00007fff31123397 __backing_store_DrawImage_block_invoke + 55
9 com.apple.AppKit 0x00007fff31122260 backing_store_delegate + 893
10 com.apple.AppKit 0x00007fff3143e665 backing_store_DrawImage.llvm.1028279097235270472 + 509
11 com.apple.CoreGraphics 0x00007fff33d64c16 CGContextDelegateDrawImage + 41
12 com.apple.CoreGraphics 0x00007fff33d643f4 CGContextDrawImageWithOptions + 432
13 com.apple.CoreGraphics 0x00007fff33d6422f CGContextDrawImage + 51
14 SDL 0x00000001026c1c5e 0x102698000 + 171102
15 SDL 0x00000001026b6b68 SDL_UpdateRect + 77
16 SDL 0x00000001026b6f23 SDL_Flip + 358
Steps To ReproduceLoad the attached http://dffd.bay12games.com/file.php?id=14975 and leave running for a minute or two
TagsNo tags attached.

Activities

PatrikLundell

2020-03-29 00:37

reporter   ~0040426

The save crashes for me as well, using Win64.

Note that a save isn't the contents of the save folder, but the regionX folder within it (you can have many saves in the save folder). Good to know for the next time.

ResplendentTiger

2020-03-29 10:32

reporter   ~0040427

Ah, thanks for the tip about the save folder! I've save/loaded a few times with the stock df 0.47.04 and gotten a save that's closer to where the crash occurs, but I don't know what's causing it. I changed the display mode to TEXT, hoping there would be a report at the bottom of the screen that would maybe hint what's going on, but all I get is a dwarf complaining about there not having any seeds to plant. LLDB doesn't give much info since the binary is stripped, but the faulting instruction is trying to dereference a null pointer

Add Note

Note

Issue History

Date Modified Username Field Change
2020-03-28 22:23 ResplendentTiger New Issue
2020-03-29 00:37 PatrikLundell Note Added: 0040426
2020-03-29 10:32 ResplendentTiger Note Added: 0040427