View Issue Details

IDProjectCategoryView StatusLast Update
0003816Spring engineBuildbotpublic2014-04-04 14:24
Reporterabma Assigned Toabma  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionnot fixable 
Summary0003816: *** error for object 0x7fff703a0500: pointer being freed was not allocated *** (osx buildslave)
Description 2/16 Test #2: testILog .........................***Failed 0.25 sec

WARNING: A log message was recorded, but no sink is registered.
         (there will be no further warnings)

Running NOTE: logging to temporary log file: /var/tmp/tmp.0.gzh3pE
Testing default logging level (INFO)
test_ILog(81440) malloc: *** error for object 0x7fff703a0500: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Error: Static min log level is: 30
test_ILog(81440) malloc: *** error for object 0x7fff703a0500: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
    NOTE: logging to temporary log file: /var/tmp/tmp.1.AJw1wt
    NOTE: logging to temporary log file: /var/tmp/tmp.2.BMH9z7
(IsSingleInstruction) Test
test_ILog(81440) malloc: *** error for object 0x7fff703a0500: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
    NOTE: logging to temporary log file: /var/tmp/tmp.3.tcXDbi
Testing logging section: <default> (level: default)
test_ILog(81440) malloc: *** error for object 0x7fff703a0500: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
    NOTE: logging to temporary log file: /var/tmp/tmp.4.7K6wWf

14/16 Test 0000014: testCreg .........................***Exception: Other 45.42 sec
spring-headless(81509) malloc: *** error for object 0x7fff703a0500: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
TagsNo tags attached.
Attached Files
ssudholt-springbuild1 (Attachment missing)
Checked infolog.txt for Errors

Activities

daftalx

2013-05-26 16:09

reporter   ~0010771

> gdb spring-headless
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
(gdb) break malloc_error_break
Breakpoint 1 at 0x3126e978c69499
(gdb) run --test-creg
Starting program: Spring_{develop}94.1.1-586-g69f0e8a.app/Contents/MacOS/spring-headless --test-creg
Reading symbols for shared libraries .........+..+............. done
spring-headless(85787) malloc: *** error for object 0x7fff703a0500: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Breakpoint 1, 0x00007fff85afb499 in malloc_error_break ()
(gdb) bt
#0 0x00007fff85afb499 in malloc_error_break ()
#1 0x00007fff85a25183 in free ()
#2 0x000000010051e757 in _ZNSt6vectorI6OptionSaIS0_EE19_M_emplace_back_auxIIRKS0_EEEvDpOT_ ()

daftalx

2013-05-26 16:26

reporter   ~0010772

(gdb) info line * 0x000000010051e757
No line number information available for address 0x10051e757 <_ZNSt6vectorI6OptionSaIS0_EE19_M_emplace_back_auxIIRKS0_EEEvDpOT_+7767>

Perhaps we shouldn't strip the executables in the packaging script for the time being...

abma

2013-05-26 16:35

administrator   ~0010773

stripping is fine, as without the package would be huge.

we should keep the debug symbols in a seperate file, so we can translate crashes as well, maybe see https://github.com/spring/spring/blob/develop/buildbot/slave/linux/create_linux_static_bundle.sh#L26 how its done for linux.

abma

2013-05-27 15:03

administrator   ~0010777

hmm, the tests doesn't show this message any more after
https://github.com/spring/spring/commit/e58e33ec038682d0c9356ff79bd1de69e1d05514

it seems.

@daftalx:
does current spring develop work for you now?

daftalx

2013-05-27 17:04

reporter   ~0010778

Spring_{develop}94.1.1-592-gb53a627.app has the exact same issue:

(gdb) bt
#0 0x00007fff8a52b499 in malloc_error_break ()
#1 0x00007fff8a455183 in free ()
#2 0x000000010051e7e7 in _ZNSt6vectorI6OptionSaIS0_EE19_M_emplace_back_auxIIRKS0_EEEvDpOT_ ()

(notice the line change from '0x10051e757' to '0x10051e7e7')

abma

2013-05-27 17:34

administrator   ~0010780

do you have a complete stacktrace?

...vector... lets me think it happens when calling free(std::vector[i])

daftalx

2013-05-27 17:39

reporter   ~0010781

That's everything that comes out of "bt"...
I'll change the script to strip debug info in an external file, you can then upload that as well on the server.

abma

2013-05-31 02:16

administrator   ~0010793

hmmm:

gdb spring
(gdb) print _ZNSt6vectorI6OptionSaIS0_EE19_M_emplace_back_auxIIRKS0_EEEvDpOT_
$1 = {<text variable, no debug info>} 0xc5bac8 <std::vector<Option, std::allocator<Option> >::_M_emplace_back_aux<Option const&>(Option const&)>
(gdb) quit
abma@sonne:/var/tmp/home/dev/spring/develop$ addr2line -e spring
0xc5bac8
/usr/include/c++/4.7/bits/vector.tcc:400

line 400 is vector<... :
void
      vector<_Tp, _Alloc>::
      _M_emplace_back_aux(_Args&&... __args)

http://paste.springfiles.com/view/59823cef

abma

2013-05-31 19:05

administrator   ~0010798

Last edited: 2013-05-31 19:06

sorry, atm no clue why this happens, i did run valgrind & cppcheck and couldn't find any issue :-(

for me it looks like vector.tcc / stdlibc++ is broken...

daftalx: can you create a debugbuild of test_ILog and run it with gdb & breakpoint please?

something like: cmake -DCMAKE_BUILD_TYPE=DEBUG3 . && make test_ILog && gdb test/test_ILog
break malloc_error_break
run
bt full

please?

Gream

2013-06-19 13:01

reporter   ~0010885

Hello guys! I am new here, been talking with Danil from NOTA!
I tried compiling spring from development build using your (out of date walk through, if I can remember how I did it, I can type up a new version for you all!).
I worked through it, and got about 27% of the way into making the game.
I have uploaded the file ssudholt-springbuild1 (sorry if this is the wrong place)

it shows a lot of warnings and errors. I hope this can help you to debug Spring. So far I love what I see.

p.s. I do have some programing experience, but not enough to code, my brain doesn't function that way. But i am willing to test ect for you all.

I have mac OSX 10.8.3 on a newer imac. just let me know. my skype name is ssudholt

abma

2013-06-19 13:12

administrator   ~0010886

Last edited: 2013-06-19 13:12

@Gream:
can you create a thread in the "Mac OS X" forum about your compile problems? the bug tracker is imo the wrong place.

Please copy&paste the error messages there, too. (at best at paste.springfiles.com, if the log is big)

http://springrts.com/phpbb/viewforum.php?f=65


edit: i guess you get this error messages because you are using an old version of gcc, you've to use ports to install a more up to date version of gcc...

abma

2013-07-16 21:46

administrator   ~0011016

ok, we tried this on carrepairers mac, too (afaik os x lion) and got this when running doing:
gdb ./spring
break malloc_error_break
run
 (gdb) bt full
#0 0x00007fff5fc01028 in __dyld__dyld_start () No symbol table info available.
#1 0x0000000100000000 in ?? () No symbol table info available.

abma

2013-07-17 00:45

administrator   ~0011019

maybe
http://stackoverflow.com/questions/7668857/updated-xcode-for-ios5-app-wont-run-stops-at-dyld-dyld-start

abma

2014-03-22 13:12

administrator   ~0012949

buildbot setup is very likely broken:

http://springrts.com/phpbb/viewtopic.php?p=555444#p555444

abma

2014-04-04 14:24

administrator   ~0012983

can't be fixed on the spring side, buildslave has to be fixed.

Issue History

Date Modified Username Field Change
2013-05-26 15:19 abma New Issue
2013-05-26 16:09 daftalx Note Added: 0010771
2013-05-26 16:26 daftalx Note Added: 0010772
2013-05-26 16:35 abma Note Added: 0010773
2013-05-27 15:03 abma Note Added: 0010777
2013-05-27 15:03 abma Assigned To => abma
2013-05-27 15:03 abma Status new => feedback
2013-05-27 17:04 daftalx Note Added: 0010778
2013-05-27 17:34 abma Note Added: 0010780
2013-05-27 17:34 abma Status feedback => assigned
2013-05-27 17:39 daftalx Note Added: 0010781
2013-05-31 02:16 abma Note Added: 0010793
2013-05-31 19:02 abma Assigned To abma =>
2013-05-31 19:05 abma Note Added: 0010798
2013-05-31 19:05 abma Status assigned => new
2013-05-31 19:06 abma Note Edited: 0010798
2013-05-31 19:06 abma Status new => feedback
2013-06-19 12:57 Gream File Added: ssudholt-springbuild1
2013-06-19 13:01 Gream Note Added: 0010885
2013-06-19 13:12 abma Note Added: 0010886
2013-06-19 13:12 abma Status feedback => new
2013-06-19 13:12 abma Note Edited: 0010886
2013-07-16 21:46 abma Note Added: 0011016
2013-07-17 00:22 abma Assigned To => abma
2013-07-17 00:22 abma Status new => assigned
2013-07-17 00:34 abma Changeset attached => spring develop ec5b4b62
2013-07-17 00:34 abma Status assigned => resolved
2013-07-17 00:34 abma Resolution open => fixed
2013-07-17 00:36 abma Changeset attached => spring develop f150e943
2013-07-17 00:45 abma Note Added: 0011019
2013-07-17 00:46 abma Status resolved => new
2013-07-17 01:46 abma Changeset attached => spring develop 4340238a
2013-07-17 01:46 abma Status new => resolved
2013-07-17 02:14 abma Changeset attached => spring develop 96a15306
2014-03-22 13:11 abma Assigned To abma =>
2014-03-22 13:11 abma Resolution fixed => reopened
2014-03-22 13:11 abma Product Version 94.1.1+git =>
2014-03-22 13:11 abma Target Version 95.0 =>
2014-03-22 13:11 abma Additional Information Updated
2014-03-22 13:11 abma Status resolved => new
2014-03-22 13:11 abma Resolution reopened => open
2014-03-22 13:12 abma Note Added: 0012949
2014-03-22 13:12 abma Additional Information Updated
2014-03-23 17:23 abma Category General => Buildbot
2014-04-04 14:24 abma Note Added: 0012983
2014-04-04 14:24 abma Status new => resolved
2014-04-04 14:24 abma Resolution open => not fixable
2014-04-04 14:24 abma Assigned To => abma