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

"bmx6 -c --jshow tunnels" makes BMX6 crash when too many nodes/tunnels are available #20

Open
rogerpueyo opened this issue Jul 19, 2018 · 5 comments
Assignees

Comments

@rogerpueyo
Copy link

Hi,

I am running BMX6 in qMp with 85 other network routers:

root@qMp-98d4:/# bmx6 -c --version
BMX6-0.1-alpha comPatibility=16 revision=0312168aaa384379ccbefd4b2d936fc698664d5b

and I've noticed that asking the JSON-formatted BMX6 tunnels list crashes the daemon (while the raw/plaintext list doesn't). For instance:

root@qMp-98d4:/# bmx6 -c tunnels | wc
      184      2563     27825 <==== a nice number of tunnels

and

root@qMp-98d4:/# bmx6 -c --jshow tunnels; ps | grep bmx
10434 root      3088 S    grep bmx <==== BMX6 crashed :(

The daemon does not crash when a small number of nodes is present (e.g. 4), but I don't know exactly what number of nodes/tunnels or which output message size makes the daemon crash.

@axn
Copy link
Member

axn commented Jul 24, 2018 via email

@aparcar
Copy link
Member

aparcar commented Jul 25, 2018

If it's json-c should we report that upstream? Seems like an dangerous issue?

@rogerpueyo
Copy link
Author

rogerpueyo commented Jul 25, 2018 via email

@aparcar
Copy link
Member

aparcar commented Jul 25, 2018

But isn't that rather a limit of the bmx-json plugin than of bmx routing capabilities as a protocol?

@rogerpueyo
Copy link
Author

Most likely...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants