Menu

#23 coredumping (segmentation fault) at watch_handler function in glib-integration.cpp file

all
open
nobody
None
1
2019-03-07
2019-03-07
No

Issue Analysis:

We have taken the backtrace with debugging logs enabled for libdbus-c++ component and able to see that io variable to getting assigned with NULL which is causing segmentation fault when the below line is executed

##0 0xb786d37d in DBus::Glib::BusWatch::watch_handler (data=0x9fa2570)
at glib-integration.cpp:147
w = 0x9fa2570
io = 0x0
flags = 0

if (io->poll.revents &G_IO_IN)

I have added the logic to avoid crash of libdbus-c++ library and the change is available in attached watch_handler.patch file.

Please let me know whether the introduced logic will add any further regressions to component?

2 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.