Closed josch closed 7 years ago
Works just fine here, so it's probably an issue with your libmicrohttpd installation. Closing as not a Janus issue.
PS: line 270 points to a comment in master, which revision is this happening on?
The latest release: 0.2.3
So transports/janus_http.c:270
is this:
http://sources.debian.net/src/janus/0.2.3-1/transports/janus_http.c/#L270
Where janus is doing this:
family = ifa->ifa_addr->sa_family;
Have you tried master instead? If it still happens there, I'll reopen.
I checked gdb again and it seems that ifa->ifa_addr
is NULL
which explains the segfault:
(gdb) print ifa->ifa_addr
$1 = (struct sockaddr *) 0x0
Just checked that we don't have that check in master either, so it's a good idea to add it. No interface gives me a NULL ifa->ifa_addr
(I don't even know if that makes sense, maybe some special interface of some sort) which explains why I never get this. I'll update the module, and other parts of the code where we do the same thing.
The check was already there for the same code we have in ice.c
, which means it was missing only there. Just fixed it, so if you try with master it should work. Not sure how this fix can be incorporated in the repo version of Debian.
Pinging @jonassmedegaard as he was taking care of that up to some time ago.
Quoting Lorenzo Miniero (2017-07-06 11:11:28)
Pinging @jonassmedegaard as he was taking care of that up to some time ago.
I am still on it. Thanks!
--
Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
I compiled from git master and was unable to reproduce the issue I saw in 0.2.3. And that is without commit d268c9b. So the fix was somewhere between 0.2.3 and d268c9b. Anyways, the issue is fixed, so lets just leave this closed.
When setting
ip = 127.0.0.1
in the[general]
section ofjanus.transport.http.cfg
I get a segmentation fault. Here is the backtrace: