[asterisk-bugs] [JIRA] (ASTERISK-29981) res_calendar: Asterisk crashes when starting, and will not run

Marian Piater (JIRA) noreply at issues.asterisk.org
Mon May 30 08:54:49 CDT 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=259335#comment-259335 ] 

Marian Piater commented on ASTERISK-29981:
------------------------------------------

Probably similar crash (I don't have coredump, because server was restarted). I am waiting for another crash and coredump.

Compiled Asterisk 16.24.0. 
Checked Asterisk changelog and seems there are no changes in calendar resource in newer releases.

[calendar-1]
type=ical
url=https://calendar.google.com/calendar/ical/XXXXXX/private-XXXXXXXXXXXXXXXXX/basic.ics
user=XXXXXX at gmail.com
secret=XXXXXXXXXXXX
refresh=3
timeframe=60

[May 27 09:44:38] ERROR[19772] res_calendar.c: FRACK!, Failed assertion bad magic number 0x0 for object 0x7fa6f4475350 (0)
[May 27 09:44:38] ERROR[19772] : Got 7 backtrace records
# 0: /usr/sbin/asterisk(__ao2_ref+0x9e) [0x55f57ab04aee]
# 1: /usr/lib/asterisk/modules/res_calendar.so(+0x576d) [0x7fa6c363f76d]
# 2: /usr/sbin/asterisk(ast_sched_runq+0xfa) [0x55f57ac25a2a]
# 3: /usr/lib/asterisk/modules/res_calendar.so(+0x3774) [0x7fa6c363d774]
# 4: /usr/sbin/asterisk(+0x1ce84c) [0x55f57ac6684c]
# 5: /lib/x86_64-linux-gnu/libpthread.so.0(+0x74a4) [0x7fa71b6364a4]
# 6: /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7fa71a241d0f]


> res_calendar: Asterisk crashes when starting, and will not run
> --------------------------------------------------------------
>
>                 Key: ASTERISK-29981
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29981
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_calendar
>    Affects Versions: 18.9.0
>            Reporter: N A
>            Severity: Major
>         Attachments: full.txt
>
>
> Asterisk has been crashing every 5 minutes for the last 3 hours. I have a script that starts it up every 5 minutes, except it crashes when started. Effectively, Asterisk will no longer run.
> Backtrace when starting:
> [2022-03-22 15:26:24] WARNING[29884]: sched.c:497 sched_settime: Bug likely: Negative time interval -55584000 (interpreted as 4239383296 ms) requested!
> [2022-03-22 15:26:24] ERROR[29884]: sched.c:500 sched_settime: FRACK!, Failed assertion 0 (0)
> [2022-03-22 15:26:25] ERROR[29884]:   Got 14 backtrace records
> # 0: asterisk __ast_assert_failed()
> # 1: asterisk <unknown>()
> # 2: asterisk <unknown>()
> # 3: asterisk ast_sched_add_variable()
> # 4: [0x7f2df0a81243] res_calendar.so res_calendar.c:1002 schedule_calendar_event()
> # 5: [0x7f2df0a814a1] res_calendar.so res_calendar.c:1050 add_new_event_cb()
> # 6: asterisk <unknown>()
> # 7: asterisk __ao2_callback()
> # 8: [0x7f2df0a8153c] res_calendar.so res_calendar.c:1061 ast_calendar_merge_events()
> # 9: [0x7f2df02cec26] res_calendar_icalendar.so res_calendar_icalendar.c:383 icalendar_update_events()
> #10: [0x7f2df02cf769] res_calendar_icalendar.so res_calendar_icalendar.c:483 ical_load_calendar()
> #11: asterisk <unknown>()
> #12: [0x7f2e02b38fa3] libpthread.so.0 pthread_create.c:487 start_thread()
> #13: [0x7f2e025cc4cf] libc.so.6 clone.S:97 clone()
> Backtrace from ast_coredumper:
> This is the first time I have had an issue where Asterisk itself does not start. res_calendar causes a crash as soon as it gets loaded.
> If I add noload = res_calendar to modules.conf, Asterisk starts, but now production is impaired and operating significantly degraded.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list