Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#22932 closed defect (fixed)

chgrep segfaults

Reported by: jabronson@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: chgrep

Description

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

Attachments (1)

chgrep.trace.zip (175.1 KB) - added by jabronson@… 14 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Port: chgrep added

Crash report? What's your build_arch?

comment:2 in reply to:  1 ; Changed 14 years ago 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

Changed 14 years ago by jabronson@…

Attachment: chgrep.trace.zip added

comment:3 Changed 14 years ago by jabronson@…

are you able to reproduce in any of your testing environments?

comment:4 in reply to:  2 Changed 14 years ago by jmroot (Joshua Root)

Replying to jabronson@…:

Not sure how to generate a crash report

Should be automatically generated in ~/Library/Logs/DiagnosticReports or ~/Library/Logs/CrashReporter (or possibly in /Library rather than ~/Library, this seems to have changed recently.)

comment:5 Changed 14 years ago 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

comment:6 Changed 14 years ago by blb@…

Resolution: fixed
Status: newclosed

comment:7 Changed 14 years ago by jabronson@…

thanks, it works now.

Note: See TracTickets for help on using tickets.