[squeak-dev] seg fault on squeak6/spur while attempting to add some collections to ~700, 000 objects

gettimothy gettimothy at zoho.com
Wed Nov 17 13:10:52 UTC 2021


Hi 





I tried as you suggested 



>I would try setting 



echo 2 > /proc/sys/vm/overcommit_memory 

>and re-running to see if you get a segfault.



and the segfault still occurs






I spun up a quick test to reporduce it which you can find here:
ftp://menmachinesmaterials.com/Foo-tty.1.mczThe class comment in FooTemplateBowerUpper  has the doit it reporoduce.

cordially,






stack page bytes 8192 available headroom 5576 minimum unused headroom 6000



Segmentation fault Wed Nov 17 08:07:21 2021





/usr/local/lib/squeak/5.0-202110010850-64bit/squeak

Squeak VM version: 5.0-202110010850  Fri Oct  1 13:13:17 EDT 2021 clang [Production Spur 64-bit VM]

Built from: CoInterpreter VMMaker.oscog-eem.3077 uuid: 8ad52133-62f2-4e1e-bf92-9b29ba104d62 Oct  1 2021

With: StackToRegisterMappingCogit VMMaker.oscog-eem.3077 uuid: 8ad52133-62f2-4e1e-bf92-9b29ba104d62 Oct  1 2021

Revision: VM: 202110010850 wm at tinker:usr/src/smalltalk/tmp/oscogvm

Date: Fri Oct 1 10:50:05 2021 CommitHash: 7ede113ff

Plugins: 202110010850 wm at tinker:usr/src/smalltalk/tmp/oscogvm

Build host: Linux tinker 4.4.14 #2 SMP Fri Jun 24 13:38:27 CDT 2016 x86_64 AMD Ryzen 7 2700 Eight-Core Processor AuthenticAMD GNU/Linux

plugin path: /usr/local/bin/../lib/squeak/5.0-202110010850-64bit [default: /usr/local/lib/squeak/5.0-202110010850-64bit/]





C stack backtrace & registers:

    rax     0x22889b20 rbx      0x1000010 rcx            0x1 rdx       0xffffe0

    rdi            0x1 rsi 0xffffffffffffff rbp      0x1000000 rsp 0x7ffd1c44e150

    r8      0x1394f250 r9           (nil) r10          (nil) r11          (nil)

    r12          (nil) r13 0xffffffffffffff r14    0x198700008 r15    0x1936e61e8

    rip       0x42b1e1

*/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak(remember+0x1b1)[0x42b1e1]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak[0x41a703]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak[0x41cbbe]

/lib64/libpthread.so.0(+0x113b0)[0x7f5c03bba3b0]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak(remember+0x1b1)[0x42b1e1]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak[0x47863b]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak[0x4549af]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak[0x4780aa]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak[0x44b448]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak[0x454560]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak[0x42ea3b]

/usr/local/bin/../lib/squeak/5.0-202110010850-64bit/squeak(ceStackOverflow+0xaf)[0x43464f]

[0x24db52c]

[0x0]





Smalltalk stack dump:

0x7ffd1c46fea8 M OrderedDictionary(Dictionary)>noCheckNoGrowFillFrom: 0x2a49960: a(n) OrderedDictionary

0x7ffd1c46fee8 M OrderedDictionary(HashedCollection)>growTo: 0x2a49960: a(n) OrderedDictionary

0x7ffd1c46ff20 M OrderedDictionary>growTo: 0x2a49960: a(n) OrderedDictionary

0x7ffd1c46ff58 M OrderedDictionary(HashedCollection)>grow 0x2a49960: a(n) OrderedDictionary

0x7ffd1c46ff88 M OrderedDictionary(HashedCollection)>atNewIndex:put: 0x2a49960: a(n) OrderedDictionary

0x7ffd1c46ffc8 M OrderedDictionary>atNewIndex:put: 0x2a49960: a(n) OrderedDictionary

0x7ffd1c470018 M OrderedDictionary(Dictionary)>add: 0x2a49960: a(n) OrderedDictionary

0x7ffd1c470058 M FooTemplate>initializeMetaData 0x2a49a08: a(n) FooTemplate

0x7ffd1c470088 M FooTemplate>initialize 0x2a49a08: a(n) FooTemplate

0x7ffd1c4700b8 M FooTemplate class(Behavior)>new 0x1511370e8: a(n) FooTemplate

0x7ffd1c470100 M FooTemplateBowerUpper>segFaultMeBaby 0x2a49a40: a(n) FooTemplateBowerUpper

0x7ffd1c470130 M FooTemplateBowerUpper class>DoIt 0x151137180: a(n) FooTemplateBowerUpper

0x7ffd1c470188 I Compiler>evaluateCue:ifFail: 0x2a49c68: a(n) Compiler

0x7ffd1c4701e0 I Compiler>evaluateCue:ifFail:logged: 0x2a49c68: a(n) Compiler

0x7ffd1c470238 I Compiler>evaluate:in:to:environment:notifying:ifFail:logged: 0x2a49c68: a(n) Compiler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211117/d4b60f9f/attachment.html>


More information about the Squeak-dev mailing list