New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash while running program (MongoDB module) #6620
Comments
From @MARTIMMHi, I am experiencing crashes only ending in a message like 'Segmentation This particular program will always crash unless the work it needs to do Marcel Perl6 version: 2017.09-452-g8aa76ac50 built on MoarVM version Linux: uname -a: Linux h03-fedora 4.13.5-200.fc26.x86_64 #1 SMP Thu Oct Message; *** Error in `/home/marcel/Software/perl6/rakudo/install/bin/moar': |
From @AlexDanielHow can I reproduce this issue? What code did you use? |
The RT System itself - Status changed from 'new' to 'open' |
From @timoif you can, please re-compile MoarVM passing the same options that were Later on, to run stuff regularly again, turn optimize back up to 3, |
From @MARTIMM@Aleks-Daniel Jakimenko-Aleksejev
Well, 1) Install a mongod server and start it up. Its address might be $ curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.9.tgz When unpacked, you can find the server in the bin directory. 2) Install MongoDB. it depends on a host of modules. 3) Install the Library project from github; 4) Setup a config file in $HOME/.library/config.toml database = "Library" 5) Run the program (take a directory which is not of value for you to be $ store-file-metadata.pl6 fs -et -r <directory tree to process> If the directory is sufficiently large/deep, the program will crash. I can imagine that this will take too much to do, thanks anyway if you try. Marcel |
From @MARTIMMOn 10/17/2017 09:27 PM, Timo Paulssen via RT wrote:
@timo The program didn't crash but the system got slower until a point that I ==26702== A run on a smaller set of files and directories ended like this ==27745== Then I ran with the option '--leak-check=full' which ended with a much ==27960== Hopefully there is something to work with. |
From @AlexDanielFWIW, when toasting I observed double free or corruption when installing both BSON and MongoDB modules. The issue is really there, and should be reproducible by just running the tests. That said, I've been running BSON tests locally in a loop for hours with no luck. |
From @zoffixznetOn Thu, 26 Oct 2017 06:04:51 -0700, alex.jakimenko@gmail.com wrote:
I can repro it easily on by Ubuntu box. Golfed it down to the attached code running in BSON repo[^1] Briefly glancing at the guts of the module and seeing all the Promises created left, right, and center, |
From @zoffixznetuse v6; #------------------------------------------------------------------------------- # Init via Seq is $d<a>, 120, "\$d<a> = $d<a>"; # Add one element, encode and decode using new(Buf) # Init via list # Init via hash inhibited #------------------------------------------------------------------------------- my BSON::Document $d .= new; $d.accept-hash(True); $d.autovivify(True); $d<e><f><g> = {b => 30}; #if %*ENV<TRAVIS>:exists or '/home/marcel/Languages/Perl6'.IO ~~ :d { # Keys must be sufficiently long and value complex enough to keep a my BSON::Document $dsub .= new; for ('uqwteuyqwte-da', *.succ ... 'uqwteuyqwte-dz') -> $char { for ('jhgsajhgasjdg-ca', *.succ ... 'jhgsajhgasjdg-cz') -> $char { for ('uqwteuyqwte-ea', *.succ ... 'uqwteuyqwte-ez') -> $char { $dsub .= new($d.encode); done-testing; |
From @MARTIMMHi @Zoffix Znet Do you have any pointers or howto's to write thread-save code? Otherwise
|
From @zoffixznetOn Sat, 28 Oct 2017 01:09:59 -0700, mt1957@gmail.com wrote:
I'm the wrong person to ask. Mutating some object (e.g an array) from multiple threads is one of the things: Crash: Wrong value: |
From @MARTIMMOn 10/17/2017 08:37 PM, perl6 via RT wrote: I've modified the BSON code quite a bit thanks to examples from Zoffix, I've tested for hours with the while prove -e perl6 t; do true; done trick. So I think this ticket can be closed. Regards, |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#132316 (status was 'resolved')
Searchable as RT132316$
The text was updated successfully, but these errors were encountered: