You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(gdb) bt
#0 0x0000555555594ea8 in cupsdLogJob (job=job@entry=0x555555836c40, level=level@entry=8, message=message@entry=0x5555555b0a5b "Loading attributes...") at log.c:687 #1 0x000055555558af28 in cupsdLoadJob (job=0x555555836c40) at job.c:1812 #2 0x000055555558bdce in load_request_root () at job.c:4690 #3 0x00005555555923d2 in cupsdLoadAllJobs () at job.c:1762 #4 0x0000555555580daa in cupsdReadConfiguration () at conf.c:1762 #5 0x000055555556d72f in main (argc=, argv=) at main.c:580
It crashes because cupsdLogJob() tries to print out info about not yet loaded job.
Version: 2.1b1
CUPS.org User: jpopelka
Running 2.1b1 results in crash:
(gdb) bt
#0 0x0000555555594ea8 in cupsdLogJob (job=job@entry=0x555555836c40, level=level@entry=8, message=message@entry=0x5555555b0a5b "Loading attributes...") at log.c:687
#1 0x000055555558af28 in cupsdLoadJob (job=0x555555836c40) at job.c:1812
#2 0x000055555558bdce in load_request_root () at job.c:4690
#3 0x00005555555923d2 in cupsdLoadAllJobs () at job.c:1762
#4 0x0000555555580daa in cupsdReadConfiguration () at conf.c:1762
#5 0x000055555556d72f in main (argc=, argv=) at main.c:580
It crashes because cupsdLogJob() tries to print out info about not yet loaded job.
(gdb) display *job
2: *job = {id = 1, priority = 0, dirty = 0, state_value = 0, pending_timeout = 0, username = 0x0, dest = 0x0, name = 0x0, koctets = 0, dtype = 0, printer = 0x0, num_files = 0, filetypes = 0x0, compressions = 0x0, impressions = 0x0, sheets = 0x0, access_time = 0, cancel_time = 0, creation_time = 0, completed_time = 0, file_time = 0, history_time = 0, hold_until = 0, kill_time = 0, state = 0x0, reasons = 0x0, job_sheets = 0x0, printer_message = 0x0, printer_reasons = 0x0, current_file = 0, attrs = 0x555555836e20, print_pipes = {-1, -1}, back_pipes = {-1, -1}, side_pipes = {-1, -1}, status_pipes = {-1, -1}, status_buffer = 0x0, status_level = 0, cost = 0, pending_cost = 0, filters = {0 <repeats 21 times>}, backend = 0, status = 0, tries = 0, completed = 0, retry_as_raster = 0, auth_env = {0x0, 0x0, 0x0}, auth_uid = 0x0, profile = 0x0, bprofile = 0x0, history = 0x0, progress = 0, num_keywords = 0, keywords = 0x0, scon = 0x0, auid = 0}
(gdb) display job->printer
4: job->printer = (cupsd_printer_t *) 0x0
The text was updated successfully, but these errors were encountered: