2025-07-21 16:58 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004130Spring engineGeneralpublic2013-11-06 23:12
Reporterbibim_ 
Assigned Toabma 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionunable to reproduce 
Product Version95.0 
Target VersionFixed in Version 
Summary0004130: Calling unitsync function "IsSpringReleaseVersion" produces a SEGFAULT on 32-bit Linux systems
DescriptionReproduced both with static unitsync binary and self-compiled unitsync binary.
Reproduced on 2 different 32-bit Linux systems.
NOT reproduced on 64-bit Linux systems.
Other unitsync functions called by SPADS seem to work normally.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0011994

bibim_ (reporter)

Last edited: 2013-11-06 20:14

View 2 revisions

Actually it segfaults when trying to read the result of the IsSpringReleaseVersion call, so I guess it's related to bool type handling on 32-bit system.

It might be a bug with SWIG and bool, investigating...

~0011995

abma (administrator)

gdb stacktrace?

~0011996

bibim_ (reporter)

Last edited: 2013-11-06 23:06

View 2 revisions

Not easy to get a useful stacktrace with Perl + Swig wrappers.

I'm still not sure if it's a bug in Swig + 32bit bool or a real problem in libunitsync but anyway I implemented a workaround, you can close this bug report.

~0011997

abma (administrator)

yep, seems to be swig or perl related, added a test which didn't fail when calling this function...

http://buildbot.springrts.com/builders/linux-static-x32/builds/1475/steps/test/logs/stdio

~0011998

abma (administrator)

https://github.com/spring/spring/commit/f8ed05bf0ff3dbfb4ee9d2441796d285cceec1d8
+Notes

-Issue History
Date Modified Username Field Change
2013-11-06 19:30 bibim_ New Issue
2013-11-06 19:57 bibim_ Note Added: 0011994
2013-11-06 20:14 bibim_ Note Edited: 0011994 View Revisions
2013-11-06 22:45 abma Note Added: 0011995
2013-11-06 23:06 bibim_ Note Added: 0011996
2013-11-06 23:06 bibim_ Note Edited: 0011996 View Revisions
2013-11-06 23:12 abma Note Added: 0011997
2013-11-06 23:12 abma Status new => resolved
2013-11-06 23:12 abma Resolution open => unable to reproduce
2013-11-06 23:12 abma Assigned To => abma
2013-11-06 23:12 abma Note Added: 0011998
+Issue History