bashapp icon indicating copy to clipboard operation
bashapp copied to clipboard

Couple of errors

Open zestuart opened this issue 11 years ago • 0 comments

  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!

zestuart avatar Feb 13 '14 18:02 zestuart