Apologies for the late reply.

My github repository is a quick effort in trying to expose the ABI problem,
but a more thorough (and straightforward) way to actually reproduce would
be to do the following:

First case, when using a module that ships with prebuilt binaries. With the
"nodejs" and "npm" Ubuntu packages installed, in a directory somewhere,
first do `npm install grpc`. Notice how it's mentioning installing a
prebuilt binary from remote. Next, run node, and enter the following code:
> const grpc = require('grpc')
> const creds = grpc.ServerCredentials.createSsl(null, [])
> const server = new grpc.Server()
> server.bind('0.0.0.0:8080', creds)

The last line will result in a crash of the nodejs runtime, that says
something like
node: symbol lookup error:
/tmp/ubuntu-crash/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node:
undefined symbol: SSL_library_init

Second case, when using a module that only ships source code. With the
"nodejs" and "npm" Ubuntu packages installed, try the command `npm install
node-webcrypto-ossl`. Compilation will start, but will fail due to header
expectation mismatch.

If you retry the same steps using any of the official nodejs runtime
instead of the Ubuntu package, the first case will not crash the runtime
(it'll fail because we're not providing valid SSL certificates, but that's
normal behavior), and the second case will compile properly at installation
time.

On Wed, Aug 8, 2018 at 4:56 PM, Seth Arnold <1779...@bugs.launchpad.net>
wrote:

> On Tue, Aug 07, 2018 at 05:51:56PM -0000, Robie Basak wrote:
> > For example: it's not really "node-debian-v57" either; it's
> > "node-openssl1.1-v57". Ubuntu, Debian and all other distributions that
>
> You'd probably also like this to enumerate all libraries that node
> re-exports, if you choose to go this route.
>
> Thanks
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1779863
>
> Title:
>   Ubuntu nodejs package isn't ABI compatible with mainline nodejs.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/nodejs/+bug/
> 1779863/+subscriptions
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1779863

Title:
  Ubuntu nodejs package isn't ABI compatible with mainline nodejs.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nodejs/+bug/1779863/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to