Skip to content
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

Bus error on Raspberry Pi when using mongodb #23810

Closed
laeuter opened this issue Jul 9, 2015 · 1 comment
Closed

Bus error on Raspberry Pi when using mongodb #23810

laeuter opened this issue Jul 9, 2015 · 1 comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@laeuter
Copy link

laeuter commented Jul 9, 2015

What steps will reproduce the problem?

  1. run dart file on command line using mongodb

----------------------------mongotest.dart-----------------------------
import 'package:mongo_dart/mongo_dart.dart';
import 'package:logging/logging.dart';

void main() {
dbConnection();
}

void dbConnection() {
Logger.root.level=Level.ALL;
Logger.root.onRecord.listen((LogRecord rec) {
print('${rec.level.name}: ${rec.time}: ${rec.message}');
});
var db = new Db('mongodb://127.0.0.1/test');
print("Here");
db.open().then((success) {
print("Here B");
if (success) {
var _bios = db.collection("std");
Cursor cur = _bios.find();
cur.each((Map bio) {
print(bio);
});
}
});
}

----------------------------pubspec.yaml-----------------------------
name: MongoTest
description: A sample command-line application
dependencies:
mongo_dart: any

What is the expected output? What do you see instead?
Here
Here B
(and data in the db)

But I got

Here
[ 724.430982] Unhandled fault: alignment exception (0x001) at 0x75dc6bc5
Bus-Zugriffsfehler

What version of the product are you using?
Dart VM version: 1.12.0-edge.9f00e0591816edd4cca0cf349e87b7b4f82cd2e6 (Sun Jun 28 16:19:06 2015) on "linux_arm"

On what operating system?
Debian raspbian wheezy on Raspberry Pi 2, but I got the same error late last year when still using Raspberry Pi Model B;

What browser (if applicable)?
N/A command line app

Please provide any additional information below.
I had hoped that this were resolved by #22384, but apparently it wasn't

cat /proc/cpu/alignment before
User: 0
System: 0 ( (null))
Skipped: 0
Half: 0
Word: 0
DWord: 0
Multi: 0
User faults: 2 (fixup)

cat /proc/cpu/alignment after
User: 3
System: 0 ( (null))
Skipped: 1
Half: 0
Word: 0
DWord: 1
Multi: 1
User faults: 2 (fixup)

@sethladd sethladd added area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. Type-Defect labels Jul 9, 2015
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed Type-Defect labels Mar 1, 2016
@rmacnak-google
Copy link
Contributor

#22151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants