[MacPorts] #22932: chgrep segfaults
#22932: chgrep segfaults ---------------------------------+------------------------------------------ Reporter: jabronson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: ---------------------------------+------------------------------------------ just tried out chgrep for the first time and it segfaults: {{{ $ echo foo > chgrep_test $ chgrep foo bar chgrep_test chgrep_testSegmentation fault $ port installed chgrep The following ports are currently installed: chgrep @1.2.4_0 (active) $ uname -a Darwin hex.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 }}} -- Ticket URL: <http://trac.macports.org/ticket/22932> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22932: chgrep segfaults ---------------------------------+------------------------------------------ Reporter: jabronson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: chgrep ---------------------------------+------------------------------------------ Changes (by jmr@…): * port: => chgrep Comment: Crash report? What's your build_arch? -- Ticket URL: <http://trac.macports.org/ticket/22932#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22932: chgrep segfaults ---------------------------------+------------------------------------------ Reporter: jabronson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: chgrep ---------------------------------+------------------------------------------ Comment(by jabronson@…):
Crash report?
Not sure how to generate a crash report, but I did try setting {{{ulimit -c unlimited}}} and reproducing the segfault but there was no core dump. I did figure out how to reproduce this in Instruments (which I just used for the first time), so I'll attach the resulting trace in case it's helpful. If there's anything more I can provide, please let me know how.
What's your build_arch?
x86_64 -- Ticket URL: <http://trac.macports.org/ticket/22932#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22932: chgrep segfaults ---------------------------------+------------------------------------------ Reporter: jabronson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: chgrep ---------------------------------+------------------------------------------ Comment(by jabronson@…): are you able to reproduce in any of your testing environments? -- Ticket URL: <http://trac.macports.org/ticket/22932#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22932: chgrep segfaults ---------------------------------+------------------------------------------ Reporter: jabronson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: chgrep ---------------------------------+------------------------------------------ Comment(by jmr@…): Replying to [comment:2 jabronson@…]:
Not sure how to generate a crash report Should be automatically generated in ~/Library/Logs/DiagnosticReports or ~/Library/Logs/CrashReporter (or possible in /Library rather than ~/Library, this seems to have changed recently.)
-- Ticket URL: <http://trac.macports.org/ticket/22932#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22932: chgrep segfaults ---------------------------------+------------------------------------------ Reporter: jabronson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: chgrep ---------------------------------+------------------------------------------ Comment(by jabronson@…): thanks, got it: {{{ Process: chgrep [37355] Path: /opt/local/bin/chgrep Identifier: chgrep Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [37271] Date/Time: 2009-12-17 18:53:48.119 -0500 OS Version: Mac OS X 10.6.2 (10C540) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000000000080200c Crashed Thread: 0 Dispatch queue: com.apple.main-thread Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 chgrep 0x0000000100002ddb Copy_ch_file + 443 1 chgrep 0x0000000100001b5b main + 1515 2 chgrep 0x0000000100001564 start + 52 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x000000000000000c rbx: 0x00007fff5fbfe500 rcx: 0x00007fff82935426 rdx: 0x000000000080200c rdi: 0x0000000000000003 rsi: 0x0000000000802000 rbp: 0x00007fff5fbfd4a0 rsp: 0x00007fff5fbfb320 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x00007fff8296cae6 r11: 0x0000000000000202 r12: 0x0000000000802400 r13: 0x0000000100005228 r14: 0x0000000000000004 r15: 0x00007fff5fbfe500 rip: 0x0000000100002ddb rfl: 0x0000000000010206 cr2: 0x000000000080200c Binary Images: 0x100000000 - 0x100004fff +chgrep ??? (???) <EF63927E-F764-89C3-FBEA-FE817E689F77> /opt/local/bin/chgrep 0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B633F790-4DDB- 53CD-7ACF-2A3682BCEA9F> /usr/lib/dyld 0x7fff80e46000 - 0x7fff80e4aff7 libmathCommon.A.dylib ??? (???) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib 0x7fff8292a000 - 0x7fff82ae8ff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib 0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib }}} -- Ticket URL: <http://trac.macports.org/ticket/22932#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22932: chgrep segfaults ----------------------------------+----------------------------------------- Reporter: jabronson@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: chgrep | ----------------------------------+----------------------------------------- Changes (by blb@…): * status: new => closed * resolution: => fixed Comment: r61688 -- Ticket URL: <http://trac.macports.org/ticket/22932#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22932: chgrep segfaults ----------------------------------+----------------------------------------- Reporter: jabronson@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: chgrep | ----------------------------------+----------------------------------------- Comment(by jabronson@…): thanks, it works now. -- Ticket URL: <http://trac.macports.org/ticket/22932#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts