Ticket #1384 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

rtorrent (0.7.9 or 0.8.2) segfaults while running ./configure

Reported by: KSD Owned by: rakshasa
Priority: normal Component: rtorrent
Version: Severity: normal
Keywords: Cc:

Description

Using Gentoo here with kernel 2.6.25 and gcc 4.1.2. Basically if I run ./configure on either rtorrent 0.7.9 or 0.8.2 a segfault will show up in my logs, though the configuring process doesn't fail and I can still install it. This happens whether I install with paludis or by hand.

conftest[27646]: segfault at 4 ip b7f63290 sp bfbe9ecc error 4 in libc-2.6.1.so[b7e91000+12a000]

I'll post any more info if you need it but I'm pretty sure this can by replicated on any machine, and has probably just gone unnoticed until now. I only found it because I happened to be looking through the logs trying to fix another problem. This is the only package doing this on my system currently btw.

Attachments

execinfo.diff Download (457 bytes) - added by josef 4 years ago.
try this
0.7.9-configure.output Download (6.1 KB) - added by KSD 4 years ago.
output after running configure on rtorrent 0.7.9
config.log Download (33.6 KB) - added by KSD 4 years ago.
configure log for rtorrent 0.8.2
config.2.log Download (33.6 KB) - added by KSD 4 years ago.
config.log for 0.8.2 with patch applied

Change History

Changed 4 years ago by josef

I think the problem is the AC_RUN_IFELSE for testing execinfo.h, try changing it to AC_LINK_IFELSE.

Changed 4 years ago by josef

try this

Changed 4 years ago by KSD

Just tried that patch with 0.7.9 but these two lines still show up in my logs afterwards:

printk: 1018 messages suppressed. conftest[16678]: segfault at 4 ip b7e8b290 sp bfc12eec error 4 in libc-2.6.1.so[b7db9000+12a000]

I've attached the output of configure if that helps.

Changed 4 years ago by KSD

output after running configure on rtorrent 0.7.9

Changed 4 years ago by anonymous

check config.log and see if it mentions a segfault anywhere

Changed 4 years ago by KSD

Didn't know there was a configure log, that's useful. Yes, there is a segfault logged in there:

./configure: line 19804: 21233 Segmentation fault ./conftest$ac_exeext

Changed 4 years ago by anonymous

Some more context will be needed to see what it was actually testing there.

Changed 4 years ago by KSD

configure log for rtorrent 0.8.2

Changed 4 years ago by KSD

I've attached config.log for version 0.8.2. Here's some context and the kernel message:

configure:19803: ./conftest ./configure: line 19804: 5465 Segmentation fault ./conftest$ac_exeext configure:19806: $? = 139 configure: program exited with status 139 configure: failed program was: | #include <execinfo.h> | int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}

conftest[5465]: segfault at 4 ip b7e77290 sp bfa004dc error 4 in libc-2.6.1.so[b7da5000+12a000]

Changed 4 years ago by josef

Oh. Sorry I didn't say so earlier, but you need to rerun autogen.sh after applying my patch, because that crashes exactly in the place my patch fixes.

Changed 4 years ago by KSD

Oh OK, here's the config log for 0.8.2 with the patch applied.

Changed 4 years ago by KSD

config.log for 0.8.2 with patch applied

Changed 4 years ago by anonymous

Are you sure you ran autogen.sh, and that there were no errors, after applying the patch? Because it shouldn't even try to run the program that crashes, if the patch is applied properly.

Changed 4 years ago by KSD

Sorry, I somehow misread what you said about autogen.sh. Alright, this time after running autogen.sh and then re-running configure with the patch applied the segfault is gone, so that appears to have fixed the problem.

Changed 4 years ago by rakshasa

  • status changed from new to closed
  • resolution set to worksforme
Note: See TracTickets for help on using tickets.