Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

emulation on host: fix for latest changes in dnsserver#8559

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mcspr merged 2 commits intoesp8266:masterfromd-a-v:dnserveronhost
May 10, 2022

Conversation

@d-a-v
Copy link
Collaborator

No description provided.

#ifndef DNSServer_h
#defineDNSServer_h

#include<memory>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

future-proofing, I tried adding DNSServer/examples/DNSServer to host test script, but I see valgrind error in UDP code 🤷
something to note

#ifndef DNSServer_h
#defineDNSServer_h

#include<memory>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

future-proofing, I tried adding DNSServer/examples/DNSServer to host test script, but I see valgrind error in UDP code 🤷
something to note

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Is there a line number to go with that?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Also mocking. ~DNSServer -> ~WiFiUDP -> UdpContext.disconnect() tries to delete std::map entry, which may or may not be already destroyed (?).
Not related to the DNSServer, but to the way UDP is organized there.

@d-a-v
Copy link
CollaboratorAuthor

With this change:

--- a/libraries/DNSServer/examples/DNSServer/DNSServer.ino+++ b/libraries/DNSServer/examples/DNSServer/DNSServer.ino@@ -1,5 +1,5 @@-#include <ESP8266WiFi.h> #include <DNSServer.h>+#include <ESP8266WiFi.h> #include <ESP8266WebServer.h>

This happens:

C++ ...libraries/DNSServer/examples/DNSServer/DNSServer.ino.cpp.oIn file included from ./../../libraries/DNSServer/examples/DNSServer//DNSServer.ino:1,                 from ...libraries/DNSServer/examples/DNSServer/DNSServer.ino.cpp:1:../../libraries/DNSServer/src/DNSServer.h:113:10: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type  113 |     std::unique_ptr<DNSS_REQUESTER[]> _que;      |          ^~~~~~~~~~../../libraries/DNSServer/src/DNSServer.h:4:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?    3 | #include <WiFiUdp.h>  +++ |+#include <memory>    4 |

@mcsprmcspr merged commit8d5dda0 intoesp8266:masterMay 10, 2022
@d-a-vd-a-v deleted the dnserveronhost branchMay 10, 2022 21:45
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull requestNov 18, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mcsprmcsprmcspr left review comments

+1 more reviewer

@mhightower83mhightower83mhightower83 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@d-a-v@mcspr@mhightower83

[8]ページ先頭

©2009-2025 Movatter.jp