Ticket #47660

../../common/nation.c:563:21: runtime error: applying zero offset to null pointer

오픈 날짜: 2023-03-23 20:59 마지막 업데이트: 2023-05-10 11:12

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

3.0.6 clang

This is an error at each start of the server.

I searched in the net, but i don't understand the answers, maybe just something clang catches but gcc does not care about ?

Edited : ok i found, it is simple :-) , just a very strict compiler ...

Ticket History (3/8 Histories)

2023-03-23 20:59 Updated by: alain_bkr
  • New Ticket "../../common/nation.c:563:21: runtime error: applying zero offset to null pointer" created
2023-03-23 21:02 Updated by: alain_bkr
  • Component Update from (None) to Server
2023-03-23 22:01 Updated by: cazfi
댓글 올리기

That might be something that clang analyzer reports too. (There's about 80 analyzer reports left that I've not yet looked at - there was about 320 when I started with them a year ago)

2023-05-07 00:35 Updated by: alain_bkr
2023-05-07 00:39 Updated by: alain_bkr
  • Details Updated
2023-05-07 22:58 Updated by: cazfi
  • 소유자 Update from (None) to cazfi
  • Resolution Update from None to Accepted
  • Milestone Update from 3.1.0-beta2 (closed) to 3.0.8 (closed)
  • Component Update from Server to General
댓글 올리기

Applies to all branches, even to S2_6 (and I think the fix should go there, even though the specific symptom seen isn't critical - some other "iterator initialized while nations not in sane state" case might be)

2023-05-10 11:12 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Attachment File List

Edit

Please login to add comment to this ticket » Login