Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when trading with Eddie Isherwood from the Isherwood ranches. #52014

Closed
Quintovir opened this issue Oct 1, 2021 · 2 comments · Fixed by #52042
Closed

Segmentation fault when trading with Eddie Isherwood from the Isherwood ranches. #52014

Quintovir opened this issue Oct 1, 2021 · 2 comments · Fixed by #52042
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes. NPC / Factions NPCs, AI, Speech, Factions, Ownership

Comments

@Quintovir
Copy link

Describe the bug

When I accept a trade with Eddie Isherwood the game crashes.

Steps To Reproduce

  1. Select Eddie's "3L glass jar (sealed) > milk (fresh)" and "plastic bag > cheese".
  2. Select my disposable batteries.
  3. Press Enter.
  4. Confirm the trade by pressing "Y".

Expected behavior

The game should not crash when trading with Eddie Isherwood.

Screenshots

No response

Versions and configuration

  • OS: Linux
    • OS Version: LSB Version: n/a; Distributor ID: ManjaroLinux; Description: Manjaro Linux; Release: 21.1.3; Codename: Pahvo;
  • Game Version: 0.F-3098-g15692c4b21-dirty [64-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [
    Dark Days Ahead [dda],
    Blaze Industries [blazeindustries],
    Fuji's Military Profession Pack [fuji_mpp],
    No Fungal Growth [no_fungal_growth],
    SpeedyDex [speedydex],
    Stats Through Kills [stats_through_kills],
    Stats Through Skills [StatsThroughSkills]
    ]

Additional context

Save game with crash.log.
TRADE SEGMENTATION FAULT.zip

@BrettDong BrettDong added <Crash / Freeze> Fatal bug that results in hangs or crashes. NPC / Factions NPCs, AI, Speech, Factions, Ownership labels Oct 1, 2021
@ferociousdork
Copy link
Contributor

Seems to have been caused by #51704. ip is copied here instead of captured by reference:

for( item_pricing ip : sorted_stuff ) {

which causes the pointer here refer to local stack memory:

from_map.push_back( &ip.loc );

@zakhad
Copy link

zakhad commented Oct 3, 2021

I believe i might have been getting the same issue but with trading with hub 0

crash (1).log
debug.log
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes. NPC / Factions NPCs, AI, Speech, Factions, Ownership
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants