Bug 33741
Summary: | sndconfig --mungeftp segmentation fault (opl3sa2, NEC Versa 2780MT) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Jay Berkenbilt <ejb> | ||||||||||
Component: | sndconfig | Assignee: | Bill Nottingham <notting> | ||||||||||
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | medium | ||||||||||||
Version: | 7.1 | CC: | ejb, rvokal | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | i386 | ||||||||||||
OS: | Linux | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2001-03-29 05:46:25 UTC | Type: | --- | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
Jay Berkenbilt
2001-03-29 05:22:44 UTC
Created attachment 14067 [details]
strace and gdb output
Oops! I attached the strace output without saving it after cleaning up control
codes, etc. I'm attaching a clean version. Please ignore attachment 14067 [details].
Actually, it's almost certainly dying after syslogging, I would think. What does ltrace say? Created attachment 14068 [details]
correct strace and gdb output
Wow [expression of amazement] -- I've been using strace for years and I never knew about ltrace. Whatever else happens today, I've just learned of a fantastic tool. Thanks! Here's the end of the ltrace output: strcmp("sb1000", "unknown") = -2 strcmp("smc-ultra", "unknown") = -2 strcmp("aha1542", "unknown") = -20 strcmp("g_NCR5380", "unknown") = -14 free(0x080dd288) = <void> free(0x080dd268) = <void> free(0x080dd298) = <void> free(0x080dd2c8) = <void> free(0x080de8e8) = <void> free(0x080dd278) = <void> free(0x080dd2a8) = <void> free(0x080dd208) = <void> free(0x080dc200) = <void> syscall(103, 8, 0, 6, 288) = 0 --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ I'm attaching the full ltrace output to this report. No, I'm not. It's over 7mb. Anyway, you can see the syslog call is the last thing to happen and that this seems to happen after going through a bunch of stuff in /proc. I'm attaching the ltrace output starting from when it attempts to open ./isapnp. Created attachment 14069 [details]
end of ltrace output
*duuuuuuuuuuuuuuuuuuuuuh*. Patch attached, will be fixed in next build. I'm 99 1/100% sure this is it. (FYI, rawhide is now at ftp://ftp.redhat.com/pub/redhat/linux/rawhide/) Created attachment 14070 [details]
oops, probably should check this. :)
I'll try it sometime, but not right now. Anyway, where you have: if (devs && devs[0]->bus == BUS_ISAPNP && I would have coded if (devs && devs[0] && devs[0]->bus == BUS_ISAPNP && just to be safe. Maybe you know devs non-zero implies devs[0] non-zero -- I haven't looked at the code at all. Thanks for the info on the updated rawhide path. I lied. I did check it now. Your patch (as attached, without my extra mod) does indeed solve the problem for me. Thanks. |