Bug 1837961 - [abrt] sane-frontends: operator delete(): scanadf killed by SIGSEGV
Summary: [abrt] sane-frontends: operator delete(): scanadf killed by SIGSEGV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sane-frontends
Version: 32
Hardware: x86_64
OS: Unspecified
low
high
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:b9d5a62306b30a723c3b3ad0265...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-20 09:41 UTC by Ludovic Hirlimann [:Paul-muadib]
Modified: 2021-03-31 10:39 UTC (History)
3 users (show)

Fixed In Version: sane-frontends-1.0.14-37.fc32 sane-frontends-1.0.14-37.fc31
Clone Of:
Environment:
Last Closed: 2020-08-28 14:55:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (30.89 KB, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: cgroup (547 bytes, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: core_backtrace (4.18 KB, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: cpuinfo (2.47 KB, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: dso_list (7.29 KB, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: environ (3.77 KB, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: exploitable (82 bytes, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: limits (1.29 KB, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: maps (44.05 KB, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: mountinfo (6.88 KB, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: open_fds (802 bytes, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: proc_pid_status (1.33 KB, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details
File: var_log_messages (692 bytes, text/plain)
2020-05-20 09:41 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details

Description Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:00 UTC
Version-Release number of selected component:
sane-frontends-1.0.14-34.fc32

Additional info:
reporter:       libreport-2.13.1
backtrace_rating: 4
cmdline:        scanadf --help --device-name=lexmark_nscan:libnet/0021B7F59377
crash_function: operator delete
executable:     /usr/bin/scanadf
journald_cursor: s=85278341b08a4612a07aacb9c7e60ea2;i=57e09;b=b1eccd310dc04877988e3400eca8af5b;m=146416ec50;t=5a603af7ea177;x=2ccba7d9266b42fd
kernel:         5.6.13-300.fc32.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #1 operator delete at ../../../../libstdc++-v3/libsupc++/del_op.cc:49
 #3 __gnu_cxx::new_allocator<unsigned int>::deallocate at /usr/include/c++/10/ext/new_allocator.h:120
 #4 std::allocator_traits<std::allocator<unsigned int> >::deallocate at /usr/include/c++/10/bits/alloc_traits.h:492
 #5 std::_Vector_base<unsigned int, std::allocator<unsigned int> >::_M_deallocate at /usr/include/c++/10/bits/stl_vector.h:354
 #6 std::_Vector_base<unsigned int, std::allocator<unsigned int> >::~_Vector_base at /usr/include/c++/10/bits/stl_vector.h:335
 #7 std::vector<unsigned int, std::allocator<unsigned int> >::~vector at /usr/include/c++/10/bits/stl_vector.h:683
 #8 genesys::Genesys_Model::~Genesys_Model at genesys/device.h:121
 #9 genesys::Genesys_USB_Device_Entry::~Genesys_USB_Device_Entry at genesys/low.h:204
 #10 std::_Destroy<genesys::Genesys_USB_Device_Entry> at /usr/include/c++/10/bits/stl_construct.h:140
 #11 std::_Destroy_aux<false>::__destroy<genesys::Genesys_USB_Device_Entry*> at /usr/include/c++/10/bits/stl_construct.h:152

Comment 1 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:04 UTC
Created attachment 1690133 [details]
File: backtrace

Comment 2 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:06 UTC
Created attachment 1690134 [details]
File: cgroup

Comment 3 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:08 UTC
Created attachment 1690135 [details]
File: core_backtrace

Comment 4 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:09 UTC
Created attachment 1690136 [details]
File: cpuinfo

Comment 5 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:11 UTC
Created attachment 1690137 [details]
File: dso_list

Comment 6 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:13 UTC
Created attachment 1690138 [details]
File: environ

Comment 7 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:15 UTC
Created attachment 1690139 [details]
File: exploitable

Comment 8 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:17 UTC
Created attachment 1690140 [details]
File: limits

Comment 9 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:19 UTC
Created attachment 1690141 [details]
File: maps

Comment 10 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:21 UTC
Created attachment 1690142 [details]
File: mountinfo

Comment 11 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:23 UTC
Created attachment 1690143 [details]
File: open_fds

Comment 12 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:24 UTC
Created attachment 1690144 [details]
File: proc_pid_status

Comment 13 Ludovic Hirlimann [:Paul-muadib] 2020-05-20 09:41:26 UTC
Created attachment 1690145 [details]
File: var_log_messages

Comment 14 Zdenek Dohnal 2020-05-22 04:40:49 UTC
Hi Ludovic,

thank you for reporting the issue!

The segfault happens in genesys backend code, regardless of used device in scanadf command. I'll reassign to sane-backends and report upstream.

Comment 15 Zdenek Dohnal 2020-05-22 04:54:35 UTC
Reported upstream here https://gitlab.com/sane-project/backends/-/issues/305 .

Comment 16 Zdenek Dohnal 2020-08-20 09:57:37 UTC
Actually it is really a bug in sane-frontends - scanadf doesn't clean up properly as it is expected for SANE apps.

I took scanimage exit function and adjusted it for scanadf. The segfault is no more.

Comment 18 Zdenek Dohnal 2020-08-20 11:00:06 UTC
Ticket for the correct project https://gitlab.com/sane-project/frontends/-/issues/19 .

Comment 19 Zdenek Dohnal 2020-08-20 11:33:31 UTC
Pull request sent upstream https://gitlab.com/sane-project/frontends/-/merge_requests/1 .

Comment 20 Fedora Update System 2020-08-20 12:48:54 UTC
FEDORA-2020-e72ed839f8 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e72ed839f8

Comment 21 Fedora Update System 2020-08-21 01:03:54 UTC
FEDORA-2020-b02acb0cdb has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b02acb0cdb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b02acb0cdb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2020-08-21 01:17:50 UTC
FEDORA-2020-e72ed839f8 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e72ed839f8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e72ed839f8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 23 Fedora Update System 2020-08-28 14:55:28 UTC
FEDORA-2020-e72ed839f8 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 24 Fedora Update System 2020-08-28 14:58:04 UTC
FEDORA-2020-b02acb0cdb has been pushed to the Fedora 31 stable repository.
If problem still persists, 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.