Skip to content

Typo fix#9

Merged
tmetsch merged 1 commit intotmetsch:masterfrom
rwatson:patch-1
Dec 21, 2020
Merged

Typo fix#9
tmetsch merged 1 commit intotmetsch:masterfrom
rwatson:patch-1

Conversation

@rwatson
Copy link
Copy Markdown
Contributor

@rwatson rwatson commented Dec 21, 2020

No description provided.

@tmetsch tmetsch merged commit ea578c0 into tmetsch:master Dec 21, 2020
@tmetsch
Copy link
Copy Markdown
Owner

tmetsch commented Dec 21, 2020

Thanks :-)

@rwatson
Copy link
Copy Markdown
Contributor Author

rwatson commented Dec 21, 2020

Thanks!

FYI, we have some other local (more substantive!) changes to the python module, which we use on FreeBSD for our undergraduate and masters OS teaching. We haven't attempted to do them in such a way as to upstream them yet, but we may get to that this year, as we're doing an update on all the course material. In case you are interested in the mean time:

https://github.com/tmetsch/python-dtrace/compare/master...Cambridge-AdvancedOS:master

@tmetsch
Copy link
Copy Markdown
Owner

tmetsch commented Dec 21, 2020

Oh that is awesome! Thanks for letting me know - feel free to open a PR, let me know if I can somehow help - and if we meet someday, sometime a drink of choice is on me! :-)

arichardson added a commit to arichardson/l41-python-dtrace that referenced this pull request Dec 29, 2020
Buffered output hanlding appears to be broken on macOS. The -B flag is
disabled in dtrace.c ()
and compiling dtrace.c with that flag enabled results in the same crash
that I see with python-dtrace:
```
* thread tmetsch#1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x7fb100000000)
  * frame #0: 0x00007fff6f83de52 libsystem_platform.dylib`_platform_strlen + 18
    frame tmetsch#1: 0x00007fff6f6d9891 libsystem_c.dylib`__vfprintf + 5379
    frame tmetsch#2: 0x00007fff6f6ffad3 libsystem_c.dylib`__v2printf + 475
    frame tmetsch#3: 0x00007fff6f6e5ee7 libsystem_c.dylib`_vsnprintf + 417
    frame tmetsch#4: 0x00007fff6f6e5f90 libsystem_c.dylib`vsnprintf + 68
    frame tmetsch#5: 0x00007fff6d3650e3 libdtrace.dylib`dt_printf + 524
    frame tmetsch#6: 0x00007fff6d33da7f libdtrace.dylib`dt_consume_cpu + 2536
    frame tmetsch#7: 0x00007fff6d33c9e0 libdtrace.dylib`dtrace_consume + 1090
    frame tmetsch#8: 0x00007fff6d366534 libdtrace.dylib`dtrace_work + 116
    frame tmetsch#9: 0x000000010d6be9ff dtrace2`main(argc=4, argv=0x00007ffee2547250) at dtrace2.c:1834:17
    frame tmetsch#10: 0x00007fff6f647cc9 libdyld.dylib`start + 1
```

To work around this crash, output to stderr for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants