Skip to content
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

Still crash by avahi_entry_group_free(NULL) call #5128

Closed
tillkamppeter opened this issue Sep 27, 2017 · 4 comments
Closed

Still crash by avahi_entry_group_free(NULL) call #5128

tillkamppeter opened this issue Sep 27, 2017 · 4 comments
Assignees

Comments

@tillkamppeter
Copy link

Recently I have reported an issue (Issue #5086) about all calls of the avahi_entry_group_free() function need a check that they do not get called with NULL as argument.
Now I got the following bug report at Ubuntu:
Bug #1718717: cupsd crashed with SIGSEGV in avahi_entry_group_free()
According to the stack trace attached to the bug avahi_entry_group_free() still got called with a NULL argument, but I do not actually understand what happens here, as the call in the dnssdDeregisterInstance() is actually preceded by appropriate NULL checks.
Stacktrace is

StacktraceTop:
 avahi_entry_group_free (group=0x0) at entrygroup.c:242
 dnssdDeregisterInstance (srv=0x56336dce7608 <WebIFSrv>, from_callback=from_callback@entry=0) at dirsvc.c:684
 dnssdDeregisterInstance (from_callback=0, srv=<optimized out>) at dirsvc.c:670
 dnssdStop () at dirsvc.c:1297
 cupsdStopBrowsing () at dirsvc.c:270

Note that due to distribution patches the line numbers in the Ubuntu source code are shifted (but the dnssdDeregisterInstance() function did not get modified). Line 670 is the "if (!srv || !*srv)" line and line 684 is the "avahi_entry_group_free(*srv);" line.

@michaelrsweet
Copy link
Collaborator

Unable to view linked bug...

@michaelrsweet michaelrsweet self-assigned this Sep 27, 2017
@tillkamppeter
Copy link
Author

Linked bug is now accessible.

@michaelrsweet
Copy link
Collaborator

Hmm, makes no sense. The NULL check is definitely there - maybe the debug info and version of cupsd executable aren't matched up and they are still running an old cupsd?

@michaelrsweet
Copy link
Collaborator

Well, please re-file this bug if you find more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants