Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Issue 1403683007: Fix for issue 23908 - error message reports the exact error when a native extension fails to load. (Closed)

Created:
5 years, 2 months ago by siva
Modified:
5 years, 2 months ago
Reviewers:
jamesr, Søren Gjesse
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix for issue 23908 - error message reports the exact error when a native extension fails to load. BUG=23908 R=sgjesse@google.com Committed: https://github.com/dart-lang/sdk/commit/e1ff27e7619cf962dcd7cc8fda52b5b0152e8a61

Patch Set 1 #

Patch Set 2 : self-review-comments #

Total comments: 2

Patch Set 3 : code-review-comments #

Patch Set 4 : code-review #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -41 lines) Patch
M runtime/bin/extensions.h View 1 chunk +5 lines, -2 lines 0 comments Download
M runtime/bin/extensions.cc View 1 chunk +12 lines, -9 lines 0 comments Download
M runtime/bin/extensions_android.cc View 1 2 2 chunks +19 lines, -6 lines 2 comments Download
M runtime/bin/extensions_linux.cc View 1 2 chunks +19 lines, -6 lines 0 comments Download
M runtime/bin/extensions_macos.cc View 1 2 2 chunks +19 lines, -6 lines 0 comments Download
M runtime/bin/extensions_win.cc View 1 2 2 chunks +21 lines, -4 lines 0 comments Download
M runtime/bin/main.cc View 1 chunk +14 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
siva
5 years, 2 months ago (2015-10-13 21:13:15 UTC) #2
Søren Gjesse
lgtm https://codereview.chromium.org/1403683007/diff/20001/runtime/bin/extensions_android.cc File runtime/bin/extensions_android.cc (right): https://codereview.chromium.org/1403683007/diff/20001/runtime/bin/extensions_android.cc#newcode36 runtime/bin/extensions_android.cc:36: return Dart_NewApiError(err_str); Drop the temp err_str like above?
5 years, 2 months ago (2015-10-14 07:00:25 UTC) #3
siva
https://codereview.chromium.org/1403683007/diff/20001/runtime/bin/extensions_android.cc File runtime/bin/extensions_android.cc (right): https://codereview.chromium.org/1403683007/diff/20001/runtime/bin/extensions_android.cc#newcode36 runtime/bin/extensions_android.cc:36: return Dart_NewApiError(err_str); On 2015/10/14 07:00:25, Søren Gjesse wrote: > ...
5 years, 2 months ago (2015-10-14 18:13:19 UTC) #4
siva
Committed patchset #4 (id:60001) manually as e1ff27e7619cf962dcd7cc8fda52b5b0152e8a61 (presubmit successful).
5 years, 2 months ago (2015-10-14 18:16:26 UTC) #5
jamesr
https://codereview.chromium.org/1403683007/diff/60001/runtime/bin/extensions_android.cc File runtime/bin/extensions_android.cc (right): https://codereview.chromium.org/1403683007/diff/60001/runtime/bin/extensions_android.cc#newcode35 runtime/bin/extensions_android.cc:35: char* err_str = dlerror(); This produces the following error ...
5 years, 2 months ago (2015-10-14 23:55:39 UTC) #7
siva
5 years, 2 months ago (2015-10-15 00:27:45 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1403683007/diff/60001/runtime/bin/extensions_...
File runtime/bin/extensions_android.cc (right):

https://codereview.chromium.org/1403683007/diff/60001/runtime/bin/extensions_...
runtime/bin/extensions_android.cc:35: char* err_str = dlerror();
On 2015/10/14 23:55:39, jamesr wrote:
> This produces the following error in the Flutter build:
> 
> ../../dart/runtime/bin/extensions_android.cc: In static member function
'static
> _Dart_Handle* dart::bin::Extensions::ResolveSymbol(void*, const char*,
void**)':
> ../../dart/runtime/bin/extensions_android.cc:39:27: error: invalid conversion
> from 'const char*' to 'char*' [-fpermissive]
>    char* err_str = dlerror();
> 
> the fix is to make this 'const char* err_str'.  Would it be possible for the
> dart build with a higher warning level?

Will fix this in the Dart repo, I thought our warnings are at the highest level
let me check that.

Powered by Google App Engine
This is Rietveld 408576698