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

DartVM segfault #836

Closed
floitschG opened this issue Dec 13, 2011 · 3 comments
Closed

DartVM segfault #836

floitschG opened this issue Dec 13, 2011 · 3 comments
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report

Comments

@floitschG
Copy link
Contributor

When running the tests with test.dart I get a segfault.
After ~5 runs in gdb debug build I get the following error-message and backtrace:

[03:50 | 85% | + 2122 | - 1]runtime/vm/snapshot.h:189: error: expected: *buffer_ != NULL

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xf353fb70 (LWP 15777)]
0xf7fdf430 in __kernel_vsyscall ()
(gdb) bt

­0 0xf7fdf430 in __kernel_vsyscall ()

­1 0xf7bd5921 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64

­2 0xf7bd8d52 in *__GI_abort () at abort.c:92

­3 0x08071d5c in dart::DynamicAssertionHelper::Fail (this=0xf353f24c, format=0x8228f7f "expected: %s") at runtime/vm/assert.cc:39

­4 0x0806076c in dart::WriteStream::WriteStream (this=0xf353f2f8, buffer=0xf353f30c, alloc=0x8050f6b <dart::allocator(uint8_t*, intptr_t, intptr_t)>) at runtime/vm/snapshot.h:189

­5 0x080608cd in dart::MessageWriter::MessageWriter (this=0xf353f2f8, buffer=0xf353f30c, alloc=0x8050f6b <dart::allocator(uint8_t*, intptr_t, intptr_t)>) at runtime/vm/snapshot.h:335

­6 0x08050fdd in dart::Dart_PostIntArray (port_id=7159, len=0, data=0x0) at runtime/vm/dart_api_impl.cc:765

­7 0x0806db1e in EventHandlerImplementation::HandleTimeout (this=0x831c9b8) at runtime/bin/eventhandler_linux.cc:333

­8 0x0806dbd8 in EventHandlerImplementation::Poll (args=0x831c9b8) at runtime/bin/eventhandler_linux.cc:355

­9 0xf7fa196e in start_thread (arg=0xf353fb70) at pthread_create.c:300

­10 0xf7c7ab5e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Backtrace stopped: Not enough registers or memory available to unwind further

@whesse
Copy link
Contributor

whesse commented Dec 13, 2011

Yes, something has changed and test.dart is using way too much memory. I'll pin down the change that made this start.


Set owner to @whesse.
Removed Area-VM label.
Added Area-Library label.

@floitschG
Copy link
Contributor Author

I tried to figure out if the program runs OOM.
Afaics htop tells me that the program uses 60/38/17MB (virt, res, shr).
Here is a dump of pmap:

$ pmap 27991
27991: gdb --args out/Release_ia32/dart tools/test.dart --component=vm
0000000000400000 6912K r-x-- /usr/bin/gdb64
0000000000ac0000 316K rw--- /usr/bin/gdb64
0000000000b0f000 180K rw--- [ anon ]
0000000002a71000 14768K rw--- [ anon ]
00007f0c8e870000 748K r---- /usr/local/google/floitsch/code/dart/dart/out/Release_ia32/dart
00007f0c8e92b000 172K r---- /usr/local/google/floitsch/code/dart/dart/out/Release_ia32/dart
00007f0c8e956000 48K r---- /usr/lib/debug/lib32/libpthread-2.11.1.so
00007f0c8e962000 36K r---- /usr/lib/debug/lib32/libz.so.1.2.3.3
00007f0c8e96b000 68K r---- /usr/lib/debug/lib32/libdl-2.11.1.so
00007f0c8e97c000 820K rw--- [ anon ]
00007f0c8ea49000 160K r---- /usr/lib/debug/lib32/libc-2.11.1.so
00007f0c8ea71000 644K r---- /usr/lib/debug/lib32/libc-2.11.1.so
00007f0c8eb12000 152K r---- /usr/lib/debug/lib32/libc-2.11.1.so
00007f0c8eb38000 520K r---- /usr/lib/debug/lib32/libc-2.11.1.so
00007f0c8ebba000 3684K r---- /usr/lib/debug/lib32/libc-2.11.1.so
00007f0c8ef53000 1272K rw--- [ anon ]
00007f0c8f091000 60K r---- /usr/lib/debug/lib32/libm-2.11.1.so
00007f0c8f0a0000 60K r---- /usr/lib/debug/lib32/libm-2.11.1.so
00007f0c8f0af000 188K r---- /usr/lib/debug/lib32/libm-2.11.1.so
00007f0c8f0de000 28K r-x-- /usr/grte/v2/lib64/libthread_db-1.0.so
00007f0c8f0e5000 2044K ----- /usr/grte/v2/lib64/libthread_db-1.0.so
00007f0c8f2e4000 4K r---- /usr/grte/v2/lib64/libthread_db-1.0.so
00007f0c8f2e5000 4K rw--- /usr/grte/v2/lib64/libthread_db-1.0.so
00007f0c8f2e6000 908K r---- /usr/local/google/floitsch/code/dart/dart/out/Release_ia32/dart
00007f0c8f3c9000 516K r---- /usr/local/google/floitsch/code/dart/dart/out/Release_ia32/dart
00007f0c8f44a000 428K r---- /usr/local/google/floitsch/code/dart/dart/out/Release_ia32/dart
00007f0c8f4b5000 216K r---- /usr/local/google/floitsch/code/dart/dart/out/Release_ia32/dart
00007f0c8f4eb000 5116K r---- /usr/local/google/floitsch/code/dart/dart/out/Release_ia32/dart
00007f0c8f9ea000 1336K rw--- [ anon ]
00007f0c8fb38000 80K r---- /usr/lib/debug/lib32/libpthread-2.11.1.so
00007f0c8fb4c000 32K r---- /usr/lib/debug/lib32/libpthread-2.11.1.so
00007f0c8fb54000 64K r---- /usr/lib/debug/lib32/libpthread-2.11.1.so
00007f0c8fb64000 288K r---- /usr/lib/debug/lib32/libpthread-2.11.1.so
00007f0c8fbac000 40K r-x-- /usr/grte/v2/k8-linux/lib/python2.6/lib-dynload/itertools.so
00007f0c8fbb6000 16K rw--- /usr/grte/v2/k8-linux/lib/python2.6/lib-dynload/itertools.so
00007f0c8fbba000 976K rw--- [ anon ]
00007f0c8fcaf000 260K rw--- [ anon ]
00007f0c8fcf0000 1552K r-x-- /usr/grte/v2/lib64/libc-2.11.1.so
00007f0c8fe74000 2048K ----- /usr/grte/v2/lib64/libc-2.11.1.so
00007f0c90074000 16K r---- /usr/grte/v2/lib64/libc-2.11.1.so
00007f0c90078000 4K rw--- /usr/grte/v2/lib64/libc-2.11.1.so
00007f0c90079000 20K rw--- [ anon ]
00007f0c9007e000 8K r-x-- /usr/grte/v2/lib64/libutil-2.11.1.so
00007f0c90080000 2044K ----- /usr/grte/v2/lib64/libutil-2.11.1.so
00007f0c9027f000 4K r---- /usr/grte/v2/lib64/libutil-2.11.1.so
00007f0c90280000 4K rw--- /usr/grte/v2/lib64/libutil-2.11.1.so
00007f0c90281000 12K r-x-- /usr/grte/v2/lib64/libdl-2.11.1.so
00007f0c90284000 2044K ----- /usr/grte/v2/lib64/libdl-2.11.1.so
00007f0c90483000 4K r---- /usr/grte/v2/lib64/libdl-2.11.1.so
00007f0c90484000 4K rw--- /usr/grte/v2/lib64/libdl-2.11.1.so
00007f0c90485000 96K r-x-- /usr/grte/v2/lib64/libpthread-2.11.1.so
00007f0c9049d000 2044K ----- /usr/grte/v2/lib64/libpthread-2.11.1.so
00007f0c9069c000 4K r---- /usr/grte/v2/lib64/libpthread-2.11.1.so
00007f0c9069d000 4K rw--- /usr/grte/v2/lib64/libpthread-2.11.1.so
00007f0c9069e000 16K rw--- [ anon ]
00007f0c906a2000 528K r-x-- /usr/grte/v2/lib64/libm-2.11.1.so
00007f0c90726000 2044K ----- /usr/grte/v2/lib64/libm-2.11.1.so
00007f0c90925000 4K r---- /usr/grte/v2/lib64/libm-2.11.1.so
00007f0c90926000 4K rw--- /usr/grte/v2/lib64/libm-2.11.1.so
00007f0c90927000 140K r-x-- /usr/grte/v2/lib64/ld-2.11.1.so
00007f0c9094e000 4K rw--- [ anon ]
00007f0c9094f000 64K r---- /usr/lib/debug/lib32/librt-2.11.1.so
00007f0c9095f000 8K rw--- [ anon ]
00007f0c90961000 20K r-x-- /usr/grte/v2/k8-linux/lib/python2.6/lib-dynload/strop.so
00007f0c90966000 8K rw--- /usr/grte/v2/k8-linux/lib/python2.6/lib-dynload/strop.so
00007f0c90968000 260K rw--- [ anon ]
00007f0c909a9000 1632K r---- /usr/grte/v2/lib64/locale/locale-archive
00007f0c90b41000 24K rw--- [ anon ]
00007f0c90b47000 8K rw--- [ anon ]
00007f0c90b49000 4K r---- /usr/grte/v2/lib64/ld-2.11.1.so
00007f0c90b4a000 4K rw--- /usr/grte/v2/lib64/ld-2.11.1.so
00007f0c90b4b000 4K rw--- [ anon ]
00007fff512db000 132K rw--- [ stack ]
00007fff513ff000 4K r-x-- [ anon ]
ffffffffff600000 4K r-x-- [ anon ]
 total 57992K

@whesse
Copy link
Contributor

whesse commented Dec 14, 2011

Added Duplicate label.
Marked as being merged into #802.

@floitschG floitschG added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report labels Dec 14, 2011
copybara-service bot pushed a commit that referenced this issue Jun 29, 2023
…uf, test

Revisions updated by `dart tools/rev_sdk_deps.dart`.

dartdoc (https://github.com/dart-lang/dartdoc/compare/e04a6b3..c2ed703):
  c2ed703c  2023-06-26  dependabot[bot]  Bump ossf/scorecard-action from 2.1.3 to 2.2.0 (#3454)

ecosystem (https://github.com/dart-lang/ecosystem/compare/b1056e6..19fa443):
  19fa443  2023-06-29  Lasse R.H. Nielsen  Clean-up and tweaks of the firehose project. (#117)
  9ef5948  2023-06-27  Moritz  Excise health from firehose (#118)
  36c662e  2023-06-27  Moritz  Introduce a health checking workflow (#115)

http (https://github.com/dart-lang/http/compare/ff1fcfe..d68081f):
  d68081f  2023-06-26  Nate Bosch  Prepare to publish package:http (#973)
  067bff3  2023-06-26  Alex James  Create java http package (#971)

lints (https://github.com/dart-lang/lints/compare/79581ff..89f9519):
  89f9519  2023-06-28  Parker Lougheed  Fix typo in 3.0.0-wip changelog entry (#137)

markdown (https://github.com/dart-lang/markdown/compare/bd6ae8d..4674d09):
  4674d09  2023-06-27  Zhiguang Chen  Fix HtmlBlockSyntax (#548)

mockito (https://github.com/dart-lang/mockito/compare/1d6064a..974226e):
  974226e  2023-06-27  Googler  Internal change

protobuf (https://github.com/dart-lang/protobuf/compare/e76bd74..7bebbc6):
  7bebbc6  2023-06-29  Ömer Sinan Ağacan  Update protoc_plugin Makefile: (#858)
  acc0462  2023-06-29  Ömer Sinan Ağacan  Ignore non-items in message sets (#857)
  0eb3796  2023-06-29  Ömer Sinan Ağacan  Ignore unknown tags in message set items (#856)
  2996e1d  2023-06-27  Ömer Sinan Ağacan  Implement message set wire format (#836)

test (https://github.com/dart-lang/test/compare/cdc8178..021667a):
  021667a4  2023-06-28  Jacob MacDonald  prep to release (#2048)
  3d44fcae  2023-06-28  Yaroslav Vorobev  feat(test): add MOZ_AUTOMATION=1 to ff test runner (#2049)
  6e675f80  2023-06-28  Parker Lougheed  Replace broken link to observatory with DevTools mention (#2047)
  2904779b  2023-06-28  Yaroslav Vorobev  feat(runner): add env overrides for safari and ff (#2042)
  54350282  2023-06-28  Parker Lougheed  Update link from old linter site to dart.dev (#2046)
  8c4b15d1  2023-06-28  Jacob MacDonald  allow the latest analyzer (6.x.x) (#2045)

Change-Id: I86901fb2211adf81288f0940a355d6c33ddd8a7d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/311927
Auto-Submit: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
copybara-service bot pushed a commit that referenced this issue Dec 1, 2023
…ocess, vector_math, web, webdev

Revisions updated by `dart tools/rev_sdk_deps.dart`.

native (https://github.com/dart-lang/native/compare/0051e78..b5827f3):
  b5827f3b  2023-11-29  Daco Harkes  [infra] Hide TODOs from problems view in VSCode (#837)
  17487159  2023-11-29  Liam Appelbe  [ffigen] Only use `objc_msgSend` variants on x64 (#836)
  50b6a783  2023-11-28  Ryan Macnak  [native_toolchain_c] Setup Android RISCV64 toolchain. (#165)
  aa58de61  2023-11-28  Daco Harkes  [native] Bump deps (#834)
  6cf4c783  2023-11-28  Daco Harkes  [native_assets_builder] Only build native assets for dependencies of requested package (#833)
  f1221814  2023-11-28  Daco Harkes  [ffigen][infra] Use Apple silicon on CI (#832)

source_span (https://github.com/dart-lang/source_span/compare/ed16e0d..9398e24):
  9398e24  2023-11-29  Kevin Moore  Move to latest lints, require Dart 3.1 (#106)

stack_trace (https://github.com/dart-lang/stack_trace/compare/6496ff8..4abff44):
  4abff44  2023-11-29  Kevin Moore  Latest lints, require Dart ^3.1 (#146)

test_descriptor (https://github.com/dart-lang/test_descriptor/compare/c417cbb..59ce97f):
  59ce97f  2023-11-29  Kevin Moore  Bump and fix latest lints, require Dart 3.1 (#60)

test_process (https://github.com/dart-lang/test_process/compare/c21e40d..d68de5b):
  d68de5b  2023-11-29  Kevin Moore  Update lints, require Dart ^3.1 (#52)

vector_math (https://github.com/google/vector_math.dart/compare/e4066cc..cca3cf1):
  cca3cf1  2023-11-27  Devon Carew  Update README.md (#308)

web (https://github.com/dart-lang/web/compare/fdfbaef..cffc2e3):
  cffc2e3  2023-11-30  Devon Carew  parse spec info for generated libraries (#111)
  d902401  2023-11-29  Devon Carew  update the readme (#110)
  e5be5b3  2023-11-28  Devon Carew  delete previously generated files when generating (#108)

webdev (https://github.com/dart-lang/webdev/compare/6961b20..63e09e5):
  63e09e50  2023-11-30  Elliott Brooks  Remove unused scripting code and permission (#2294)
  8c225550  2023-11-29  Elliott Brooks  Prepare Dart Debug Extension for MV3 release (#2293)
  3bb4a6a6  2023-11-28  Elliott Brooks  Remove old code from before the new Dart Debug Extension (#2290)

Change-Id: Ia219625dce03494620a73272e8d1bde03e2e8aea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339222
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Auto-Submit: Devon Carew <devoncarew@google.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

2 participants