Jump to content

[solved] 3.10 linux RelDebug/Release Build - Strange memory corruption


ohmtal

Recommended Posts

In Debug everything works fine - but when I switch to RelWithDebug or Release it get a Segmentation fault:
 

Breakpoint 6, _StringTable::insert (this=0x555557c598b0, _val=_val@entry=0x5555572263ab "TheoraTextureObject", caseSens=caseSens@entry=false) at /opt/OGE3D/Engine/source/core/stringTable.cpp:135
135    walk = &buckets[key % numBuckets];
1: val = 0x5555572263ab "TheoraTextureObject"
2: walk = <optimized out>
3: key = 36662630
4: numBuckets = 459
(gdb) cont
Continuing.

Breakpoint 6, _StringTable::insert (this=0x555557c598b0, _val=<optimized out>, caseSens=caseSens@entry=false) at /opt/OGE3D/Engine/source/core/stringTable.cpp:135
135    walk = &buckets[key % numBuckets];
1: val = 0x555557228c7b "TypeGFXAdapterType"
2: walk = <optimized out>
3: key = 19067645
4: numBuckets = 1819307369

From one step to another the Stringtable itemCount and numBuckets raise abnormal. I also removed Theora from build and it still happen before TypeGFXAdapterType.
I also tried a record/reverse-cont but then the count is bad in reverse too.

With stepping after the last good insert i nailed it down to:

145 in ../csu/libc-start.c
1: itemCount = <error: current stack frame does not contain a variable named `this'>
3: _gStringTable.itemCount = 309
(gdb) next
144 in ../csu/libc-start.c
1: itemCount = <error: current stack frame does not contain a variable named `this'>
3: _gStringTable.itemCount = 1886999653

Not really helps me to get the reason for the segfault / memory corruption. 

Btw. T3D 4.current runs fine.

 

EDIT:  It works fine on FreeBSD 13.1 (not a linux) - on the same machine using ubuntu 22.04LTS it makes the segfault.

 

 

Any hints?

 

Edited by ohmtal
Link to comment
Share on other sites

  • ohmtal changed the title to [solved] 3.10 linux RelDebug/Release Build - Strange memory corruption

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...