Bug 1054312 - cupsEnumDests() 'removed' callbacks crash
Summary: cupsEnumDests() 'removed' callbacks crash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 20
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1072954
TreeView+ depends on / blocked
 
Reported: 2014-01-16 15:22 UTC by monkeyboyted
Modified: 2014-04-29 05:24 UTC (History)
11 users (show)

Fixed In Version: cups-1.6.4-5.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1072954 (view as bug list)
Environment:
Last Closed: 2014-03-09 04:33:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to fix it (780 bytes, patch)
2014-03-05 11:06 UTC, Tim Waugh
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
CUPS Bugs and Features 4380 0 None None None Never

Description monkeyboyted 2014-01-16 15:22:06 UTC
Description of problem:
Qtprinter crashes opening the print dialogue. John Layt pointed me to a Fedora specific patch that change the way CUPS discovers printer. I guess I have to mention I am currently on an university network and the computer does see  other printers on the network. GTK applications appears to work fine.

Version-Release number of selected component (if applicable):
KDE Platform Version: 4.11.5
Qt Version: 4.8.5


How reproducible:
The application crashes sometimes.


Steps to Reproduce:
1. Open a qt application
2. Open the print dialogue


Actual results:
The application crashes sometimes.
It usually freezes the application until the print dialague comes up.
The application is unresonsive for minutes.

Expected results:
Being able to print


Additional info:

https://bugreports.qt-project.org/browse/QTBUG-36146

Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[KCrash Handler]
#6 0x000000000000003c in ?? ()
#7 0x00007f4bb2792d79 in cups_dnssd_get_device (data=0x7fff6c3b7cb0, serviceName=0x275067c "EPSON WorkForce 545 @ jdom macbook", regtype=0x27506a4 "_ipps._tcp", replyDomain=0x27506b4 "local") at dest.c:2918
#8 0x0000003a12608c96 in avahi_service_browser_event (client=client@entry=0x2749700, event=event@entry=AVAHI_BROWSER_NEW, message=message@entry=0x2738a50) at browser.c:775
#9 0x0000003a126051ea in filter_func (bus=<optimized out>, message=0x2738a50, userdata=0x2749700) at client.c:245
#10 0x000000384c41006e in dbus_connection_dispatch (connection=0x2749bf0) at dbus-connection.c:4631
#11 0x0000003a1260b936 in dispatch_timeout_callback (t=<optimized out>, userdata=0x27494a0) at ../avahi-common/dbus-watch-glue.c:105
#12 0x0000003a0c607c18 in avahi_simple_poll_dispatch (s=0x2738c90) at simple-watch.c:570
#13 0x0000003a0c607cd5 in avahi_simple_poll_iterate (s=<optimized out>, timeout=timeout@entry=250) at simple-watch.c:605
#14 0x00007f4bb279553e in cupsEnumDests (flags=<optimized out>, msec=<optimized out>, cancel=0x0, type=0, mask=<optimized out>, cb=0x3a325e55e0 <enum_dest_cb(void*, unsigned int, cups_dest_t*)>, user_data=0x7fff6c3b7d40) at dest.c:1057
#15 0x0000003a325e6687 in resolveCups () at painting/qcups.cpp:159
#16 0x0000003a325e6825 in QCUPSSupport::isAvailable () at painting/qcups.cpp:295
#17 0x0000003a3253de8e in QPdfBaseEngine::QPdfBaseEngine (this=0x2461940, dd=..., f=...) at painting/qpdf.cpp:924
#18 0x0000003a32553dfb in QPSPrintEngine::QPSPrintEngine (this=0x2461940, m=QPrinter::ScreenResolution) at painting/qprintengine_ps.cpp:667
#19 0x0000003a32555fd7 in QPrinterPrivate::createDefaultEngines (this=this@entry=0x2717c20) at painting/qprinter.cpp:198
#20 0x0000003a325578d4 in QPrinter::init (this=this@entry=0x7fff6c3b8080, mode=mode@entry=QPrinter::ScreenResolution) at painting/qprinter.cpp:679
#21 0x0000003a32558ce5 in QPrinter::QPrinter (this=0x7fff6c3b8080, mode=QPrinter::ScreenResolution) at painting/qprinter.cpp:603
#22 0x00007f4bb5f8d75f in Okular::Part::slotPrint (this=0x15ffb90) at /usr/src/debug/okular-4.11.5/part.cpp:2501
#23 0x00007f4bb5f8f235 in Okular::Part::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=0x7fff6c3b8220, _c=<optimized out>) at /usr/src/debug/okular-4.11.5/x86_64-redhat-linux-gnu/part.moc:233
#24 0x0000003a2e398fa8 in QMetaObject::activate (sender=sender@entry=0x17fc390, m=m@entry=0x3a32e9ec40 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff6c3b8220) at kernel/qobject.cpp:3547
#25 0x0000003a323c37f2 in QAction::triggered (this=this@entry=0x17fc390, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#26 0x0000003a323c53a7 in QAction::activate (this=this@entry=0x17fc390, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#27 0x0000003a3280edcd in QMenuPrivate::activateCausedStack (this=this@entry=0x18368d0, causedStack=..., action=action@entry=0x17fc390, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1038
#28 0x0000003a32813659 in QMenuPrivate::activateAction (this=0x18368d0, action=0x17fc390, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1130
#29 0x0000003a328171b5 in QMenu::mouseReleaseEvent (this=this@entry=0x181c340, e=e@entry=0x7fff6c3b89d0) at widgets/qmenu.cpp:2372
#30 0x000000397830b6cb in KMenu::mouseReleaseEvent (this=0x181c340, e=0x7fff6c3b89d0) at /usr/src/debug/kdelibs-4.11.5/kdeui/widgets/kmenu.cpp:464
#31 0x0000003a3241cd6a in QWidget::event (this=this@entry=0x181c340, event=event@entry=0x7fff6c3b89d0) at kernel/qwidget.cpp:8376
#32 0x0000003a3281761b in QMenu::event (this=0x181c340, e=0x7fff6c3b89d0) at widgets/qmenu.cpp:2481
#33 0x0000003a323c9dfc in QApplicationPrivate::notify_helper (this=0x1432e70, receiver=0x181c340, e=0x7fff6c3b89d0) at kernel/qapplication.cpp:4562
#34 0x0000003a323d08e9 in QApplication::notify (this=this@entry=0x7fff6c3b92d0, receiver=receiver@entry=0x181c340, e=e@entry=0x7fff6c3b89d0) at kernel/qapplication.cpp:4105
#35 0x000000397824a7da in KApplication::notify (this=0x7fff6c3b92d0, receiver=0x181c340, event=0x7fff6c3b89d0) at /usr/src/debug/kdelibs-4.11.5/kdeui/kernel/kapplication.cpp:311
#36 0x0000003a2e3845ed in QCoreApplication::notifyInternal (this=0x7fff6c3b92d0, receiver=0x181c340, event=0x7fff6c3b89d0) at kernel/qcoreapplication.cpp:949
#37 0x0000003a323d0017 in QApplicationPrivate::sendMouseEvent (receiver=0x181c340, event=0x7fff6c3b89d0, alienWidget=0x0, nativeWidget=0x181c340, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:231
#38 0x0000003a32445afc in QETWidget::translateMouseEvent (this=0x181c340, event=<optimized out>) at kernel/qapplication_x11.cpp:4472
#39 0x0000003a3244423c in QApplication::x11ProcessEvent (this=0x7fff6c3b92d0, event=event@entry=0x7fff6c3b8d10) at kernel/qapplication_x11.cpp:3661
#40 0x0000003a3246bc34 in x11EventSourceDispatch (s=s@entry=0x1433000, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#41 0x0000003a276492a6 in g_main_dispatch (context=0x1432540) at gmain.c:3066
#42 g_main_context_dispatch (context=context@entry=0x1432540) at gmain.c:3642
#43 0x0000003a27649628 in g_main_context_iterate (context=context@entry=0x1432540, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713
#44 0x0000003a276496dc in g_main_context_iteration (context=0x1432540, may_block=1) at gmain.c:3774
#45 0x0000003a2e3b31a6 in QEventDispatcherGlib::processEvents (this=0x1406e80, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#46 0x0000003a3246bdb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#47 0x0000003a2e38312f in QEventLoop::processEvents (this=this@entry=0x7fff6c3b9100, flags=...) at kernel/qeventloop.cpp:149
#48 0x0000003a2e38347d in QEventLoop::exec (this=this@entry=0x7fff6c3b9100, flags=...) at kernel/qeventloop.cpp:204
#49 0x0000003a2e3889bb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#50 0x0000003a323c846c in QApplication::exec () at kernel/qapplication.cpp:3823
#51 0x00000000004083fe in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-4.11.5/shell/main.cpp:100

Comment 1 monkeyboyted 2014-01-16 15:25:41 UTC
I forgot to add that John Layt mention this patch

https://bugzilla.redhat.com/show_bug.cgi?id=980952

Comment 2 Rex Dieter 2014-01-16 15:39:15 UTC
Reasigning to Qt for now, but offhand, looks like the crash may be happening in avahi-code.

Comment 3 Kevin Kofler 2014-01-16 23:14:36 UTC
CCing the author of the incriminated patch.

Comment 4 monkeyboyted 2014-01-17 02:34:40 UTC
A few things. I realized i should of submitted the package version

yum info qt

Name        : qt
Arch        : x86_64 
Version     : 4.8.5
Release     : 11.fc20
From repo   : updates


yum info kde-baseapps
Installed Packages
Name        : kde-baseapps
Arch        : x86_64
Version     : 4.11.5
Release     : 1.fc20
From repo   : updates

I actally reinstalled the os (due to other reasons) and the problem is still presistent after I updated the os.

I didnt have this issue with the release version of fedora kde.

Comment 5 monkeyboyted 2014-01-17 03:59:36 UTC
It seems that yum is acting up. I am moving to ubuntu for awhile because I am not even sure my system is working.

it keeps throwing these errors and I realized they dont seem to be working and configured like usual.

Non-fatal POSTIN scriptlet failure in rpm package

Comment 6 Jiri Popelka 2014-01-17 06:10:09 UTC
(In reply to monkeyboyted from comment #5)
> Non-fatal POSTIN scriptlet failure in rpm package

Could be related to bug #1054350

Comment 7 Tim Waugh 2014-01-17 11:22:08 UTC
Looks like a cups bug to me. In cups/dest.c it looks like data->cb is used without being set anywhere.

Comment 9 Kevin Kofler 2014-01-17 15:09:22 UTC
OK, reassigning.

For the scriptlet failure, please see:
https://bugzilla.redhat.com/show_bug.cgi?id=1054350#c13

Comment 10 monkeyboyted 2014-01-17 15:58:29 UTC
sorry, it unrelated to cups

i moved to ubuntu

Comment 11 monkeyboyted 2014-01-17 16:04:43 UTC
Edit: cups to yum.

I was having this issue before that scriptlet issue

Comment 12 monkeyboyted 2014-01-17 16:07:48 UTC
Oh well, I am not smart enough to understand a package manager

I am little sad ever since the lead developer died, I having tons of issues with yum.

I wish I can help but small things like plugins doesnt seem to work which means I can go to through each pacakage one by one to and see if the install work.

Comment 13 Kevin Kofler 2014-01-17 16:27:26 UTC
The updating issue is not yum's fault, but SELinux's. Please read the link I gave:
https://bugzilla.redhat.com/show_bug.cgi?id=1054350#c13
If you have further comments on the updating issue, please make them in bug #1054350. Let's focus on the QtPrinter/CUPS issue here!

Comment 14 Kevin Kofler 2014-01-17 22:41:26 UTC
We are dropping the Qt patch in our next Qt build, until this issue and https://bugzilla.redhat.com/show_bug.cgi?id=980952#c18 are resolved. I'm keeping this bug open to track the underlying CUPS issue though.

Comment 15 Fedora Update System 2014-01-21 18:02:08 UTC
qt-4.8.5-15.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/FEDORA-2013-22860/qt-4.8.5-15.fc20

Comment 16 Fedora Update System 2014-01-21 18:07:31 UTC
qt-4.8.5-15.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/FEDORA-2013-22932/qt-4.8.5-15.fc19

Comment 17 Fedora Update System 2014-01-22 23:03:21 UTC
qt-4.8.5-15.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2014-01-22 23:07:25 UTC
qt-4.8.5-15.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Kevin Kofler 2014-03-04 18:51:41 UTC
Reopening this bug (assigned to CUPS) because the issue in CUPS is still present, it only got "fixed" by dropping the Qt patch that triggered it.

Comment 20 Tim Waugh 2014-03-05 11:06:56 UTC
Created attachment 870907 [details]
patch to fix it

Comment 21 Fedora Update System 2014-03-05 13:48:36 UTC
cups-1.7.1-5.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/cups-1.7.1-5.fc20

Comment 22 Fedora Update System 2014-03-06 08:10:31 UTC
Package cups-1.7.1-5.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cups-1.7.1-5.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3451/cups-1.7.1-5.fc20
then log in and leave karma (feedback).

Comment 23 Kevin Kofler 2014-03-08 23:00:09 UTC
Can we please have this fix and the default printer one also in the F19 CUPS?

Comment 24 Fedora Update System 2014-03-09 04:33:07 UTC
cups-1.7.1-6.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 25 Tim Waugh 2014-03-11 16:23:04 UTC
Sure. Here's the update:
https://admin.fedoraproject.org/updates/cups-1.6.4-4.fc19

Comment 26 Fedora Update System 2014-04-29 05:24:13 UTC
cups-1.6.4-5.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.