[MacPorts] #57203: pcreposix segfault in regfree with trivial program
MacPorts
noreply at macports.org
Sun Sep 30 22:13:00 UTC 2018
#57203: pcreposix segfault in regfree with trivial program
-----------------------+----------------------
Reporter: markpizz | Owner: larryv
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: pcre |
-----------------------+----------------------
Comment (by markpizz):
Hi Larry,
My system is running the latest macOS Hight Sierra version 10.13.6.
Looking in /Library/Logs/DiagnosticReports I do not see any 'crash log'
specific to this simple application generating a segfault. The
/Library/Logs/CrashReporter directory is empty.
If I run this test program under the debugger I get:
{{{
marks-mac-mini:simh mark$ gcc -g -O0 retest.c -I/opt/local/include
-L/opt/local/lib -lpthread -lpcreposix -lpcre -o retest
marks-mac-mini:simh mark$ lldb ./retest
(lldb) target create "./retest"
Current executable set to './retest' (x86_64).
(lldb) run
Process 20418 launched: './retest' (x86_64)
Using PCRE V 8.42 2018-03-20
Regular Expression compile of 'Match This' successful
Process 20418 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0x400280)
frame #0: 0x00007fff714ece95 libsystem_c.dylib`tre_free + 37
libsystem_c.dylib`tre_free:
-> 0x7fff714ece95 <+37>: cmpl $0x0, 0x40(%r14)
0x7fff714ece9a <+42>: movq (%r14), %rdi
0x7fff714ece9d <+45>: je 0x7fff714ecef6 ; <+134>
0x7fff714ece9f <+47>: xorl %ebx, %ebx
Target 0: (retest) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0x400280)
* frame #0: 0x00007fff714ece95 libsystem_c.dylib`tre_free + 37
frame #1: 0x0000000100000dfd retest`main(argc=1,
argv=0x00007ffeefbffb48) at retest.c:29
frame #2: 0x00007fff7142a015 libdyld.dylib`start + 1
frame #3: 0x00007fff7142a015 libdyld.dylib`start + 1
(lldb)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57203#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list