Debian Codegraph @

Changes

raw
1 2.05 2024-01-08
2
3 - Added explicit boolean overloading for trace objects. Without this, Perl
4 will use the object's string overloading and then check the truthiness of
5 the returned string, which is a lot of extra work. This can produce
6 significant slowdowns in some cases, as seen in
7 https://github.com/plack/Plack/pull/697. Requested by Tatsuhiko
8 Miyagawa. GH #23.
9
10
11 2.04 2019-05-24
12
13 - Add a partial workaround for "Bizarre copy" errors (GH #11) that come when
14 attempting to look at arguments in the call stack. This is only a partial
15 fix as there are cases that can lead to a SEGV. Ultimately this needs to be
16 fixed in the Perl core. See
17 https://rt.perl.org/Public/Bug/Display.html?id=131046 for relevant
18 discussion. Fixed by pali. GH #21.
19
20
21 2.03 2017-11-18
22
23 - If all frames in the trace were skipped (via skip_frames, frame_filter,
24 ignore_*, etc.), then the stringified stack trace would be an empty
25 string. Now this has been changed to always return the message given to the
26 constructor or the string "Trace begun". Fixes GH #15, reported by Karen
27 Etheridge.
28
29
30 2.02 2016-12-07
31
32 - Switch to GitHub Issues.
33
34 - Some small pod fixes.
35
36
37 2.01 2016-03-02
38
39 - Fixed the frames method when it is called with arguments. Previously this
40 did not work if it was called before the method was called as a
41 reader. Fixed by Mark Fowler. PR #8.
42
43
44 2.00 2014-11-01
45
46 [BACKWARDS INCOMPATIBILITIES]
47
48 - The no_refs constructor parameter is now deprecated, and has been replace by
49 a new unsafe_ref_capture parameter that defaults to false, meaning no
50 references are captured by default. Capturing references by default caused
51 too many issues that couldn't be worked around, including running DESTROY
52 blocks multiple times on captured objects in the worst case.
53
54 - Removed support for the long-deprecated no_object_refs constructor parameter
55 (deprecated in 2002!).
56
57
58 1.34 2014-06-26
59
60 - Fixed use of // operator (my use, not Graham's) in previous release.
61
62
63 1.33 2014-06-26
64
65 - Added a skip_frames option. This causes the stack trace to skip an arbitrary
66 number of frames. Patch by Graham Knopp. PR #5.
67
68
69 1.32 2014-05-05
70
71 - Added a filter_frames_early option to filter frames before arguments are
72 stringified. Added by Dagfinn Ilmari Mannsåker. PR #4.
73
74
75 1.31 2014-01-16
76
77 - No code changes, just doc updates, including documenting the as_string()
78 method in Devel::StackTrace::Frame. Requested by Skef. RT #91575.
79
80
81 1.30 2012-11-19
82
83 - There was an eval which did not first localize $@ and $SIG{__DIE__}. This
84 broke Plack::Middleware::StackTrace (and possibly other tihngs).
85
86
87 1.29 2012-11-16
88
89 - The Devel::StackTrace->frames() method is now read-write. This allows you to
90 do more complex filtering of frames than is easily possible with the
91 frame_filter argument to the constructor. Patch by David Cantrell.
92
93
94 1.28 2012-11-16
95
96 - Allow arguments to a trace's as_string method, specifically max_arg_length
97 Patch by Ricardo Signes.
98
99 - Added a no_args option to the constructor in 1.26 but forgot to mention it
100 in Changes. Requested by Scott J. Miller. RT #71482.
101
102
103 1.27 2011-01-16
104
105 - Skip some tests on 5.13.8+ that are no longer relevant because of a change
106 in the Perl core. Reported by Andreas Koenig. RT #64828.
107
108
109 1.26 2010-10-15
110
111 - The as_string method did not localize $@ and $SIG{__DIE__} before doing an
112 eval. Reported and tested by Marc Mims. RT #61072.
113
114
115 1.25 2010-09-06
116
117 - Devel::StackTraceFrame was not actually subclassing
118 Devel::StackTrace::Frame. Patch by Tatsuhiko Miyagawa.
119
120
121 1.24 2010-09-03
122
123 - Version 1.23 was missing a $VERSION assignment. Reported by Sergei
124 Vyshenski.
125
126 - Moved the frame object to its own file, and renamed it
127 Devel::StackTrace::Frame. The old package name, Devel::StackTraceFrame, is
128 now a subclass of the new package, to provide a backwards compatibility
129 shim.
130
131
132 1.23 2010-08-27
133
134 - Added message and indent constructor parameters. Based on a patch by James
135 Laver. RT #59830.
136
137
138 1.22 2009-07-15
139
140 - Apparently, overload::StrVal on older Perls (5.8.5, but not 5.8.8)
141 tried to call a stringification method if it existed. So now,
142 Devel::StackTrace just uses overload::AddrRef instead, which should
143 always be safe. Reported by Michael Stevens. Fixes RT #47900.
144
145
146 1.21 2009-07-01
147
148 - Overloaded objects which didn't provide a stringification method
149 cause Devel::StackTrace to die when respect_overload was
150 true. Reported by Laurent Dami. RT #39533.
151
152 - Added a frame_filter option which allows for fine-grained control
153 over what frames are included in a trace. Based on (but expanded)
154 from a patch proposed by Florian Ragwitz. RT #47415.
155
156
157 1.20 2008-10-25
158
159 - The change in 1.15 to object creation broke the no_refs feature,
160 causing references to be stored until the trace's frame objects were
161 created.
162
163 * Exception::Class objects are always stringified by calling
164 overload::StrVal().
165
166
167 1.1902 2008-07-16
168
169 - This release just contains another test fix.
170
171 - The new tests for bad utf-8 apparently fail with any Perl before
172 5.8.8. Reported by Lee Heagney. RT #37702.
173
174
175 1.1901 2008-06-13
176
177 - This release just contains a test fix.
178
179 - The new tests for bad utf-8 fail with Perl 5.8.x where x <=
180 6. Apparently, utf-8 was just more broken back then. Reported by
181 Andreas Koenig's smokebots.
182
183
184 1.19 2008-06-13
185
186 - Dropped support for Perl 5.005.
187
188 - If a function was in stack trace had been called with invalid utf-8
189 bytes, this could cause stringifying a stack trace to blow up when
190 it tried to stringify that argument. We now catch those (and other)
191 errors and simply put "(bad utf-8)" or "?" in the stringified
192 argument list. Reported by Alex Vandiver.
193
194
195 1.18 2008-03-31
196
197 - Fix a test failure on Win32. No changes to the non-test code.
198
199
200 1.17 2008-03-30
201
202 - Added a max_arg_length parameter, which if set causes
203 Devel::StackTrace to truncate long strings when printing out a
204 frame. RT #33519. Patch by Ian Burrell.
205
206
207 1.16 2008-02-02
208
209 - A test fix for bleadperl. The value of wantarray from caller() needs
210 to be treated as a boolean, as opposed to expecting 0 (vs
211 undef). RT #32583. Patch by Jerry Hedden.
212
213
214 1.15 2007-04-28
215
216 - Changed how objects are created in order to greatly speed up the
217 constructor. Instead of processing all the stack trace data when the
218 object is first created, this is delayed until it is needed. This
219 was done in order to help speed up Exception::Class. There are cases
220 where code may be throwing many exceptions but never examining the
221 stack traces.
222
223 Here is a representative benchmark of object construction for the
224 old code versus the new code:
225
226 Rate old new
227 old 1764/s -- -76%
228 new 7353/s 317% --
229
230
231 1.14 2007-03-16
232
233 - Added a few micro-optimizations from Ruslan Zakirov, who is hoping
234 this will ultimately help speed up RT.
235
236
237 1.13 2006-04-01
238
239 - Add another fix for filename handling in the tests. Tests were
240 giving false failures on Win32 because the tests needed to use
241 File::Spec->canonpath(), just like Devel::StackTrace does
242 internally.
243
244
245 1.12 2005-09-30
246
247 - Newer versions of Perl use Unix-style filenames when reporting the
248 filename in caller(), which breaks Exception::Class tests on other
249 platforms, and is just kind of funky. This module now calls
250 File::Spec->canonpath() to clean up the filename in each frame.
251 Reported by Garret Goebel.
252
253
254 1.11 2004-04-12
255
256 - No code changes, just switching to including a Makefile.PL that uses
257 ExtUtils::MakeMaker instead of one that sneakily uses Module::Build.
258 Requested by Perrin Harkins.
259
260
261 1.10 2004-03-10
262
263 - Silence a warning from the test code if Exception::Class isn't
264 installed. Reported by Stefano Ruberti.
265
266 - Localize $@ to avoid overwriting a previously set $@ while creating
267 a Devel::StackTrace object. This caused a test failure in the
268 Exception::Class tests when run with Perl 5.6.1, but not with 5.8.3.
269 I don't really know how to test for it outside of Exception::Class.
270 Reported by Jesse Erlbaum.
271
272
273 1.09 2004-02-26
274
275 - The overload workaround blows up if a DBI handle is anywhere in the
276 stack, because of a bad interaction between overload::Overloaded and
277 DBI's custom dispatching. This release works around that.
278
279
280 1.08 2004-02-23
281
282 - Some tests failed on Win32 because they were hardcoded to expect a
283 file name with forward slashes. Reported by Steve Hay.
284
285
286 1.07 2004-02-21
287
288 - This release includes a change to the overload handling that is
289 necessary for cooperation with Exception::Class.
290
291
292 1.06 2004-02-21
293
294 - Devel::StackTrace now uses overload::StrVal() to get the underlying
295 string value of an overloaded object when creating a stack frame for
296 display. This can be turned off by setting respect_overload to a
297 true value. Suggested by Matt Sisk.
298
299
300 1.05 2004-02-17
301
302 - Devel::StackTrace incorrectly reported that arguments were being
303 passed to eval blocks (which isn't possible). Reported by Mark
304 Dedlow.
305
306
307 1.04 2003-09-25
308
309 - The special handling of Exception::Class::Base objects was broken.
310 This was exposed by the fact that Exception::Class 1.15 now uses
311 Devel::StackTrace in a slightly different way than it did
312 previously.
313
314
315 1.03 2003-01-22
316
317 - Special handling of Exception::Class::Base objects when stringifying
318 references. This avoids infinite recursion between the two classes.
319
320
321 1.02 2002-09-19
322
323 - Forgot to add Test::More to PREREQ_PM for previous releases.
324
325
326 1.01 2002-09-18
327
328 - Change the "no object refs" feature to be a plain old "no refs"
329 feature. As was pointed out to me by Jean-Phillippe Bouchard, a
330 plain reference (to an array, for example), can easily hold
331 references to objects internally. And since I'm not going to bother
332 descending through nested data structures weeding out objects, this
333 is an easier way to handle the problem. Thanks to Jean-Phillippe
334 Bouchard for a patch for this as well.
335
336 The "no_object_refs" parameter is deprecated, and now does the same
337 thing as the "no_refs" parameter.
338
339
340 1.00 2010-10-15
341
342 - Add an option to not store references to objects in stack frames.
343 This can be important if you're expecting DESTROY to be called but a
344 Devel::StackTraceFrame object is still holding a reference to your
345 object(s). Based on discussion with Tatsuhiko Miyagawa.
346
347
348 0.9 2001-11-24
349
350 - Doc tweaks.
351
352
353 0.85 2000-09-02
354
355 - doc bug fix that made it seem like args method was only available
356 under Perl 5.6.0
357
358 - converted objects from pseudo-hashes to regular hashes.
359
360
361 0.8 2000-09-02
362
363 - Should work under Perl 5.6.0+.
364
365 - Added hints & bitmask methods for use under Perl 5.6.0.
366
367
368 0.75 2000-06-29
369
370 - Added frames method (and docs for it).
371
372 - Added 'use 5.005' which I should have put in there earlier.
373
374 - DOCS: explanation of 'top' and 'bottom' as they refer to the stack.
375
376
377 0.7 2000-06-27
378
379 - First release (I think)