sklar.com

...composed of an indefinite, perhaps infinite number of hexagonal galleries...

© 1994-2017. David Sklar. All rights reserved.

xsane segfault on OS X Mavericks

In attempting to use xsane with my ancient and swell CanoScan LiDE 35 on my less ancient and swell MacBook Pro running OS X Maverics, I was getting segfaults that lldb told me were happening in libcrypto:

(lldb) bt
* thread #1: tid = 0xbeb58, 0x00000001002548fd libcrypto.1.0.0.dylib`EVP_PKEY_CTX_free + 14, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1000000000)
  * frame #0: 0x00000001002548fd libcrypto.1.0.0.dylib`EVP_PKEY_CTX_free + 14
    frame #1: 0x0000000100248a73 libcrypto.1.0.0.dylib`EVP_MD_CTX_cleanup + 127
    frame #2: 0x00000001001129cc libnetsnmp.25.dylib`sc_hash + 437
    frame #3: 0x0000000100110b93 libnetsnmp.25.dylib`hash_engineID + 92
    frame #4: 0x00000001001108d3 libnetsnmp.25.dylib`search_enginetime_list + 44
    frame #5: 0x0000000100110cb6 libnetsnmp.25.dylib`set_enginetime + 60
    frame #6: 0x000000010011051d libnetsnmp.25.dylib`init_snmpv3_post_config + 150
    frame #7: 0x0000000100113bbe libnetsnmp.25.dylib`snmp_call_callbacks + 480
    frame #8: 0x00000001035ddbdd libsane-magicolor.1.so`mc_network_discovery + 118
    frame #9: 0x00000001035da4b2 libsane-magicolor.1.so`attach_one_config + 635
    frame #10: 0x00000001035d58aa libsane-magicolor.1.so`sanei_configure_attach + 169
    frame #11: 0x00000001035da02b libsane-magicolor.1.so`sane_magicolor_get_devices + 96
    frame #12: 0x000000010001e97d libsane.1.dylib`sane_dll_get_devices + 176
    frame #13: 0x0000000100003cbf scanimage`main + 1751
    frame #14: 0x00007fff90aac5c9 libdyld.dylib`start + 1
    frame #15: 0x00007fff90aac5c9 libdyld.dylib`start + 1

Various brew reinstall incantations and searching around for similar bugs/solutions proved unfruitful. However, grep -i snmp /usr/local/etc/sane.d/* turned up references in kodakaio.conf and magicolor.conf. Commenting out the net autodiscovery line in magicolor.conf solved the problem.

Yes, this is one of those “making a note of it so it gets indexed by a search engine and I (or others) can find it later” posts.

Tagged with software , bugs