Skip to content

Couple of errors #2

@zestuart

Description

@zestuart
  1. bashapp.h was missing #include <time.h> (added and it compiles fine)
  2. once compiled, and run on test.sh, it kicks out: Segmentation fault: 11

Here's the output of lldb's thread backtrace:

(lldb) thread backtrace
* thread #1: tid = 0x149835, 0x00007fff83568812 libsystem_c.dylib`strlen + 18, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00007fff83568812 libsystem_c.dylib`strlen + 18
    frame #1: 0x0000000100001414 bashapp`replace(s=0x0000000100002cc7, olds=0x0000000100002d97, news=0x0000000000000000) + 36 at bashapp.h:118
    frame #2: 0x0000000100002318 bashapp`main(argc=2, argv=0x00007fff5fbffc00) + 1528 at bashapp.c:145
    frame #3: 0x00007fff875525fd libdyld.dylib`start + 1
(lldb) 

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions