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

Issue 6813030: Avoid shutdown-time crash in wpa_supplicant. (Closed)

Created:
9 years, 8 months ago by Luigi Semenzato
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, gauravsh
Visibility:
Public.

Description

Avoid shutdown-time crash in wpa_supplicant. Change-Id: I1fafc5ed5a4bde2b1ac89ca7fa6bf9c3a132489e BUG=chromium-os:8593 TEST=see if chromeos crash (from go/crash) with signature 9e97e (get_table_entry) goes away Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=8e30eed

Patch Set 1 #

Patch Set 2 : remove possibly harmful logging #

Patch Set 3 : move code to right location #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M src/tspi/rpc/hosttable.c View 1 2 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Luigi Semenzato
Looking at go/crash and go/uma, we're still getting about 1 crash/day, out of about 8000 ...
9 years, 8 months ago (2011-04-07 22:26:51 UTC) #1
Will Drewry
LGTM Though I'm curious now since opencryptoki is being linked into Chrome too. We may ...
9 years, 8 months ago (2011-04-07 22:38:24 UTC) #2
Greg Spencer (Chromium)
On 2011/04/07 22:38:24, Will Drewry wrote: > Though I'm curious now since opencryptoki is being ...
9 years, 8 months ago (2011-04-07 22:42:44 UTC) #3
Will Drewry
On Thu, Apr 7, 2011 at 5:42 PM, <gspencer@chromium.org> wrote: > On 2011/04/07 22:38:24, Will ...
9 years, 8 months ago (2011-04-07 22:55:05 UTC) #4
Luigi Semenzato
9 years, 8 months ago (2011-04-15 00:00:34 UTC) #5
I don't know why this happens unreliably.  Wpa_supplicant is single-threaded. 
Both libopencryptoki and libtspi have destructors.  The destructors are called
either at dlclose(), or after main() exits.  The opencryptoki destructor calls a
libtspi function which uses a data structure that is dismantled by the libtspi
destructor.  Maybe this call doesn't always occur, or maybe the process gets
killed before it gets a chance to segv.

On 2011/04/07 22:55:05, Will Drewry wrote:
> On Thu, Apr 7, 2011 at 5:42 PM,  <mailto:gspencer@chromium.org> wrote:
> > On 2011/04/07 22:38:24, Will Drewry wrote:
> >>
> >> Though I'm curious now since opencryptoki is being linked into Chrome too.
> >
> > opencryptoki is only loaded (dynamically, by NSS) if you specify
> > --load-opencryptoki on the command line, and I just checked that in this
> > morning, so I doubt if that has anything to do with it (yet!).
> 
> 
> Hehe yeah - right now wpa_supplicant uses it via the openssl engine I
> think so it could be an issue there.  The fini appears to be getting
> called twice :/  Maybe when we move wpa_supp over to use NSS this will
> go away anyhow. (I hope.)

Powered by Google App Engine
This is Rietveld 408576698