-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash when generating event #2312
Comments
I am sorry but the crash is based on 0.10.3, and in master the corresponding line should be ice.c:4170 |
I won't look at any report that has not been tested on master. |
we encountered a crash too |
we encountered the same crash when we updated janus from 0.10.3 to 0.10.4, we installed the janus 0.10.4 to different folder, but forgot to modify the events_folder conf in janus.jcfg : events_folder = "/usr/local/janus/lib/janus/events", modify it, but still has problem, then we checked the code, because not pass token parameter for janus_events_notify_handlers in ice.c (line number:4170), we pass NULL for the token parameter, it is OK now. |
#2315 is a duplicate of this and contains some steps to reproduce and a stack trace from |
Hi all, The function to attach (line 1281) contains eight parameters. Instead of NULL, what happens if you pass handle->token as the last parameter on line 4170? |
So we are blindly issuing Putting NULL as the last argument in this case is just a workaround, because we are filling all the possibile parameters (thus making useless the variadic function here). Pinging @lminiero as this might involve a bigger review of how event handlers are used. |
Not a workaround, it's correct. Each event type has its own number of expected variable arguments, because that's what |
Hi,
We encountered a crash when using the event handler, and the following is part of the backtrace:
(gdb) bt #0 0x00007fc63871f641 in __strlen_sse2_pminub () at /lib64/libc.so.6 #1 0x00007fc63a0d65de in json_string () at /lib64/libjansson.so.4 #2 0x000000000042d18e in janus_events_notify_handlers (type=type@entry=2, subtype=subtype@entry=0, session_id=<optimized out>) at events.c:186 #3 0x00000000004473b6 in janus_ice_outgoing_traffic_handle (handle=0x7fc5e0004700, pkt=<optimized out>) at ice.c:4155
It looks like that the param handle->token is missed in ice.c:4155 when calling janus_events_notify_handlers()
The text was updated successfully, but these errors were encountered: