GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: fix addon loader regression by bnoordhuis · Pull Request #154 · nodejs/node

Conversation

@bnoordhuis

@bnoordhuis bnoordhuis commented Dec 12, 2014

Copy link
Copy Markdown
Member

Fix a regression that was introduced in commit a38b917 by removing the
bad check. Also rearrange the addon loading logic to ensure that the
list of pending addons remains in a consistent state when the shared
object fails to load; in particular, when an addon self-registers first,
then hits a dynamic linker error in a later constructor.

Fixes the following asserting when loading a .node shared object:

node: ../src/node.cc:1944: void node::node_module_register(void*):
Assertion `(modpending) != (nullptr)' failed.

Fixes strongloop/strongops#233.

R=@trevnorris

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bnoordhuis

bnoordhuis commented Dec 12, 2014

Copy link
Copy Markdown
Member Author

@trevnorris Let me know if you want me to split it into two commits.

Also, /cc @rmg.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rmg

rmg commented Dec 13, 2014

Copy link
Copy Markdown
Contributor

👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rmg

rmg commented Dec 13, 2014

Copy link
Copy Markdown
Contributor

oh, and LGTM :-)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis
src: fix addon loader regression
a60056d
Fix a regression that was introduced in commit a38b917 by removing the
bad check.  Also rearrange the addon loading logic to ensure that the
list of pending addons remains in a consistent state when the shared
object fails to load; in particular, when an addon self-registers first,
then hits a dynamic linker error in a later constructor.

Fixes the following asserting when loading a .node shared object:

    node: ../src/node.cc:1944: void node::node_module_register(void*):
    Assertion `(modpending) != (nullptr)' failed.

Fixes strongloop/strongops#233.

PR-URL: nodejs#154
Reviewed-By: Ryan Graham <[email protected]>
@bnoordhuis
bnoordhuis force-pushed the fix-addon-loader-regression branch from 2e67fac to a60056d Compare December 13, 2014 22:08
@bnoordhuis
bnoordhuis merged commit a60056d into nodejs:v0.12 Dec 13, 2014
@bnoordhuis
bnoordhuis deleted the fix-addon-loader-regression branch December 13, 2014 22:08
This was referenced Jan 31, 2020
[Snyk] Fix for 1 vulnerabilities Bhanditz/node#2
Open
[Snyk] Fix for 1 vulnerabilities vaibhavb/node#2
Open
[Snyk] Fix for 1 vulnerabilities timzwit/node#3
Open
[Snyk] Fix for 1 vulnerabilities meghasfdc/node#2
Open
[Snyk] Fix for 1 vulnerabilities erdun/node#17
Open
[Snyk] Fix for 1 vulnerabilities RoeeOren/node#5
Open
[Snyk] Fix for 1 vulnerabilities pmq20/node#17
Open
[Snyk] Fix for 1 vulnerabilities jhudaz/node#1
Open
[Snyk] Fix for 1 vulnerabilities kissofire/node#2
Open
[Snyk] Fix for 1 vulnerabilities ajesse11x/node#11
Open
[Snyk] Fix for 1 vulnerabilities apoorvanand/node-2#2
Open
[Snyk] Fix for 1 vulnerabilities saeedahassan/node#14
Open
[Snyk] Fix for 1 vulnerabilities dan-mckean/node#2
Open
[Snyk] Fix for 1 vulnerabilities santhoshkumarvs/node#2
Open
[Snyk] Fix for 1 vulnerabilities GregorFendt/node#3
Open
[Snyk] Fix for 1 vulnerabilities timscharfenort/node#6
Open
[Snyk] Fix for 1 vulnerabilities mkg20001/node#17
Open
[Snyk] Fix for 1 vulnerabilities bumplzz69/node#2
Open
[Snyk] Fix for 1 vulnerabilities adamlaska/node#10
Open
[Snyk] Fix for 1 vulnerabilities awaisab172/node#2
Open
[Snyk] Fix for 1 vulnerabilities thakursachin467/node#3
Open
[Snyk] Fix for 1 vulnerabilities olegnn/node#15
Open
[Snyk] Fix for 1 vulnerabilities Matthelonianxl/node#11
Open
@baby636 baby636 mentioned this pull request May 13, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 baby636/node#147
Open
@thisguy726 thisguy726 mentioned this pull request May 13, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 thisguy726/node#23
Open
@jhudaz jhudaz mentioned this pull request May 13, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 jhudaz/node#67
Open
@MaxMood96 MaxMood96 mentioned this pull request May 13, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 MaxMood96/node#48
Open
@wedataintelligence wedataintelligence mentioned this pull request May 13, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 wedataintelligence/node#110
Open
@RickAllMighty8195 RickAllMighty8195 mentioned this pull request May 13, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 RickAllMighty8195/node#32
Open
@JoanKalanzi1 JoanKalanzi1 mentioned this pull request May 13, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 JoanKalanzi1/node#21
Open
@RoeeOren RoeeOren mentioned this pull request May 13, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.18.1 to 0.22.0 RoeeOren/node#53
Open
@08epouu1 08epouu1 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 08epouu1/node#9
Open
@adamlaska adamlaska mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 adamlaska/node#149
Open
@Verdinjoshua26 Verdinjoshua26 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 Verdinjoshua26/node#61
Open
@terrorizer1980 terrorizer1980 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 Exhorder6/node#33
Open
@yotamselementor yotamselementor mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 yotamselementor/node#41
Open
@Matthelonianxl Matthelonianxl mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 Matthelonianxl/node#66
Open
@sirinartk sirinartk mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 sirinartk/node#57
Open
@MaxMood96 MaxMood96 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 Mement-Mori/node#41
Open
@MrBrain295 MrBrain295 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 MrBrain295/node#33
Open
@kissofire kissofire mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 kissofire/node#129
Open
@adamlaska adamlaska mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 adamlaska/node#150
Open
@awaisab172 awaisab172 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 awaisab172/node#58
Open
@mrod0101 mrod0101 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 mrod0101/node#17
Open
@xaiksan1 xaiksan1 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 xaiksan1/node#23
Open
@kaocher82 kaocher82 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 Xtuden-com/node#45
Open
@ambai ambai mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 ambai/node#79
Open
@BryanLaura BryanLaura mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 BryanLaura/node#93
Open
@karencapiiro karencapiiro mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 karencapiiro/node#78
Open
@dewaynesmith3711 dewaynesmith3711 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 dewaynesmith3711/node#84
Open
@molllyn1 molllyn1 mentioned this pull request May 14, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 molllyn1/node#112
Open
@terrorizer1980 terrorizer1980 mentioned this pull request May 15, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 terrorizer1980/node-1#20
Open
@PinkDiamond1 PinkDiamond1 mentioned this pull request May 15, 2024
[Snyk] Security upgrade rollup-plugin-typescript2 from 0.20.1 to 0.22.0 PinkDiamond1/node#37
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@bnoordhuis @rmg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.