[issue12168] SysLogHandler incorrectly appends \000 to messages

2021-11-04 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg405704 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12168] SysLogHandler incorrectly appends \000 to messages

2021-11-04 Thread Eryk Sun
Change by Eryk Sun : -- components: +Library (Lib) -Regular Expressions nosy: -ahmedsayeed1982, ezio.melotti, mrabarnett versions: -Python 3.10 ___ Python tracker ___ ___

[issue12168] SysLogHandler incorrectly appends \000 to messages

2021-11-04 Thread Ahmed Sayeed
Ahmed Sayeed added the comment: This patch fixes a segfault seen when attaching to a process on Solaris. The steps leading to the segfault are: http://www.compilatori.com/tech/xiaomi/ - procfs_target::attach calls do_attach, at this point the inferior's process slot in the t

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3cf5d61fd6d7 by Vinay Sajip in branch '3.2': Documented change for Issue #12168. http://hg.python.org/cpython/rev/3cf5d61fd6d7 New changeset 6658b9b9f5f3 by Vinay Sajip in branch 'default': Merged documentation change for Issue #12168. http://hg.py

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-06-10 Thread Éric Araujo
Éric Araujo added the comment: Should this new attribute be documented? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-06-09 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 260b84851d1f by Vinay Sajip in branch '3.2': Issue #12168: SysLogHandler now allows NUL termination to be controlled using a new 'append_nul' attribute on the handler. http://hg.python.org/cpython/rev/260b84851d1f New changeset ac1217099b3f by Vin

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Vinay Sajip
Vinay Sajip added the comment: Please note: this change is too late for inclusion in Python 3.2.1 :-( as it has already rc status. So I will probably push this change once 3.2.1 is out. -- ___ Python tracker

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen added the comment: Vinay Sajip wrote: > @Petri: It's great that it worked for you, but IIRC the syslog module has had > thread-safety issues at least on some platforms, which is why it's not used > in > the SysLogHandler implementation (disclaimer: this was a while ago, I don't

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Vinay Sajip
Vinay Sajip added the comment: > Petri Lehtinen added the comment: > > FWIW, I once stumbled on this problem, and solved it by making my own log >handler that uses functions from the syslog module. @Petri: It's great that it worked for you, but IIRC the syslog module has had thread-safe

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Petri Lehtinen
Petri Lehtinen added the comment: FWIW, I once stumbled on this problem, and solved it by making my own log handler that uses functions from the syslog module. -- nosy: +petri.lehtinen ___ Python tracker

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Carl Crowder
Carl Crowder added the comment: Oh, I understand. Flume doesn't break, it handles the \0 just fine, the problem is that I ended up with a message with that additional byte on the end. Sorry for the confusion! -- ___ Python tracker

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread R. David Murray
R. David Murray added the comment: And it goes on to say: "[...] but a syslog application MAY modify these characters upon reception. For example, it might change them into an escape sequence (e.g., value 0 may be changed to "\0")" Flume should not break if it receives NULs. But there shou

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-05-25 Thread Carl Crowder
Carl Crowder added the comment: Flume certainly could avoid parsing certain values. However, while a syslog application "should avoid octet values below 32", they are still "legal" [1]. I don't think that adjusting flume to reject legal values due to legacy behaviour in some unix syslog daemo