[fixed-upstream] kernel null pointer dereference after setsockopt(…IP_ADD_MEMBERSHIP…)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-goldfish (Ubuntu) |
Confirmed
|
High
|
Ricardo Salveti |
Bug Description
Update: The "freeze" I explain in this bug is not an emulator freeze (which I thought at first), but a goldfish kernel panic.
-------
This might be a bug in one of the products the ubuntu emulator is based on, or maybe it's a configuration issue. I don't know so I report this here.
I'm trying to use libupnp in the Ubuntu emulator (My app was compiled using a 15.04 framework / i386 "kit" chroot created through ubuntu-sdk on Ubuntu 14.04, the emulator runs the "devel" i386 system image, I think r1, and libupnp is statically linked against my c++ backend module).
My system is 14.04 and I use the SDK PPA, so…
ubuntu-emulator is version 0.10-0ubuntu1
ubuntu-
There is a problem because InitUpnp() freezes the emulator instead of initializing the library correctly.
By single-stepping through that library function and the functions called by that function, I figured out that it probably freezes in a setsockopt() call: (*)
> ret = setsockopt(
> (char *)&ssdpMcastAddr, sizeof(struct ip_mreq));
Line 846:
> http://
* (That guess is based on the fact that after entering create_
That system call apparently changes the socket to receive multicast packets.
Related: http://
Changed in linux-goldfish (Ubuntu): | |
assignee: | nobody → Ricardo Salveti (rsalveti) |
status: | New → Confirmed |
importance: | Undecided → High |
Turns out that goget-ubuntu-touch is not the correct source package for this bug, since the emulator runtime is in the "android" package.