LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-31-2018, 01:48 PM   #1
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 65
Blog Entries: 10

Rep: Reputation: 11
segfault printing in slackware64-current


A segfault may occur while printing with CUPS if foomatic-rip is in your filter chain. the version of foomatic-rip in cups-filters-1.21.0 has a heap management error in options processing, and the resulting corruption may corrupt variables or crash the foomatic-rip filter ("filter failed" error). Upstream (immediately) fixed the error in version 1.21.1, but Slackware has not updated the package yet. Here is a patch to 1.12.0 until then:

--- /tmp/cups-filters-1.21.0/filter/foomatic-rip/options.c 2018-08-24 16:06:43.794415076 -0700
+++ /usr/local/slackbuilds/cups-filters-1.21.0/filter/foomatic-rip/options.c 2018-08-25 14:23:36.781505644 -0700
@@ -1031,12 +1031,10 @@
/* TODO only set the changed option, not all of them */
choice = option_find_choice(fromopt,
option_get_value(fromopt, optionset));
-
composite_set_values(fromopt, optionset, choice->command);
- }
- else {
+ free(newvalue);
+ } else
val->value = newvalue;
- }

if (option_is_composite(opt)) {
/* set dependent values */
@@ -1044,7 +1042,6 @@
if (choice && !isempty(choice->command))
composite_set_values(opt, optionset, choice->command);
}
- free(newvalue);
return 1;
}
 
  


Reply

Tags
cups-filters, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VLC 3.0.2 segfault on slackware64 current Barx Slackware 6 05-28-2018 10:36 AM
Brightness function keys not working on Slackware64 & Slackware64 current Andersen Slackware 7 01-15-2018 04:27 AM
"noof" and "fliptext" screensavers segfault on Slackware64 current khronosschoty Slackware 6 01-02-2018 02:48 PM
Slackware64 saslauthd segfault rpedrica Slackware 18 07-02-2015 03:25 AM
Slackware64 -current: CUPS 1.4.3 and general printing related issues slackfriend Slackware 5 05-23-2010 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration