Skip to content

Instantly share code, notes, and snippets.

@piscisaureus
Created August 28, 2012 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piscisaureus/3498710 to your computer and use it in GitHub Desktop.
Save piscisaureus/3498710 to your computer and use it in GitHub Desktop.
Berts-MacBook-Pro-2:libuv piscisaureus$ gdb --args test/run-tests fs_event_watch_dir fs_event_watch_dir
GNU gdb 6.3.50-20050815 (Apple version gdb-1820) (Sat Jun 16 02:40:11 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done
(gdb) run
Starting program: /Users/piscisaureus/libuv/test/run-tests fs_event_watch_dir fs_event_watch_dir
Reading symbols for shared libraries +++............................................................... done
watch_dir
create
schedule
start: 1
running!
callback: 1
Assertion failed in test/test-fs-event.c on line 101: filename == NULL || strcmp(filename, "file1") == 0
Program received signal SIGABRT, Aborted.
0x00007fff857e2212 in __pthread_kill ()
(gdb) bt
#0 0x00007fff857e2212 in __pthread_kill ()
#1 0x00007fff858f0b34 in pthread_kill ()
#2 0x00007fff85934dfa in abort ()
#3 0x0000000100007558 in fs_event_cb_dir (handle=0x100081868, filename=0x10020a440 "?\031\b", events=1, status=0) at test/test-fs-event.c:101
#4 0x0000000100045d48 in uv__fsevents_callback (cb=0x100081910, status=0) at src/unix/fsevents.c:70
#5 0x0000000100033bac in uv__async_io (loop=0x1000c14e8, handle=0x1000c1708, events=1) at src/unix/async.c:146
#6 0x0000000100034ecb in uv__io_rw (ev=0x1000c1bf8, w=0x1000c1708, events=1) at src/unix/core.c:663
#7 0x000000010004bd09 in ev_invoke_pending (loop=0x1000c1bf8) at src/unix/ev/ev.c:2145
#8 0x00000001000351ac in uv__poll (loop=0x1000c14e8) at src/unix/core.c:256
#9 0x0000000100034089 in uv__run (loop=0x1000c14e8) at src/unix/core.c:265
#10 0x0000000100034035 in uv_run (loop=0x1000c14e8) at src/unix/core.c:273
#11 0x00000001000071d9 in run_test_fs_event_watch_dir () at test/test-fs-event.c:194
#12 0x0000000100001f85 in run_test_part (test=0x7fff5fbffcd9 "fs_event_watch_dir", part=0x7fff5fbffcec "fs_event_watch_dir") at test/runner.c:298
#13 0x0000000100000ca6 in main (argc=3, argv=0x7fff5fbffb90) at test/run-tests.c:57
(gdb) frame 3
#3 0x0000000100007558 in fs_event_cb_dir (handle=0x100081868, filename=0x10020a440 "?\031\b", events=1, status=0) at test/test-fs-event.c:101
101 ASSERT(filename == NULL || strcmp(filename, "file1") == 0);
Current language: auto; currently minimal
(gdb) print filename
$1 = 0x10020a440 "?\031\b"
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment