Merge lp:~stewart/percona-playback/remove-null-deref into lp:~percona-dev/percona-playback/light

Proposed by Stewart Smith
Status: Merged
Merged at revision: 120
Proposed branch: lp:~stewart/percona-playback/remove-null-deref
Merge into: lp:~percona-dev/percona-playback/light
Diff against target: 480 lines (+399/-59)
2 files modified
Makefile (+399/-57)
src/long_string.cc (+0/-2)
To merge this branch: bzr merge lp:~stewart/percona-playback/remove-null-deref
Reviewer Review Type Date Requested Status
Percona developers Pending
Review via email: mp+67500@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2011-05-04 15:09:47 +0000
+++ Makefile 2011-07-11 07:26:03 +0000
@@ -1,57 +1,399 @@
1WITH_GPROF ?= 01# CMAKE generated file: DO NOT EDIT!
2CMAKE=cmake -DWITH_GPROF=$(WITH_GPROF) -G "Unix Makefiles" 2# Generated by "Unix Makefiles" Generator, CMake Version 2.8
3all: test3
44# Default target executed when no arguments are given to make.
5generate: generate_release generate_debug5default_target: all
66.PHONY : default_target
7build: build_release build_debug7
88#=============================================================================
9test: build9# Special targets provided by cmake.
10 $(MAKE) test_release10
11 $(MAKE) test_debug11# Disable implicit rules so canoncical targets will work.
1212.SUFFIXES:
13clean: clean_release clean_debug13
14 @rm -rf bin/14# Remove some rules from gmake that .SUFFIXES does not remove.
1515SUFFIXES =
16generate_release:16
17 @echo "Generating release Makefile"17.SUFFIXES: .hpux_make_needs_suffix_list
18 @mkdir -p release18
19 @(cd release; $(CMAKE) -DCMAKE_BUILD_TYPE=Release ../)19# Suppress display of executed commands.
20generate_debug:20$(VERBOSE).SILENT:
21 @echo "Generating debug Makefile"21
22 @mkdir -p debug22# A target that is always out of date.
23 @(cd debug; $(CMAKE) -DCMAKE_BUILD_TYPE=Debug ../)23cmake_force:
2424.PHONY : cmake_force
25build_release: generate_release25
26 @echo "Building release"26#=============================================================================
27 @(cd release; $(MAKE))27# Set environment variables for the build.
28 mkdir -p bin28
29 rm -f bin/ppb.release29# The shell in which to execute make rules.
30 cp release/src/ppb bin/ppb.release30SHELL = /bin/sh
3131
32build_debug: generate_debug32# The CMake executable.
33 @echo "Building debug"33CMAKE_COMMAND = /usr/bin/cmake
34 @(cd debug; $(MAKE))34
35 mkdir -p bin35# The command to remove a file.
36 rm -f bin/ppb.debug36RM = /usr/bin/cmake -E remove -f
37 cp debug/src/ppb bin/ppb.debug37
3838# The top-level source directory on which CMake was run.
39test_release: build_release39CMAKE_SOURCE_DIR = /home/stewart/percona-playback
40 @echo "Testing release"40
41 @(cd release; $(MAKE) test-bt)41# The top-level build directory on which CMake was run.
4242CMAKE_BINARY_DIR = /home/stewart/percona-playback
43test_debug: build_debug43
44 @echo "Testing debug"44#=============================================================================
45 @(cd debug; $(MAKE) test-bt)45# Targets provided globally by CMake.
4646
47clean_release:47# Special rule for the target edit_cache
48 @echo "Cleaning release"48edit_cache:
49 @rm -rf release49 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running interactive CMake command-line interface..."
50 @rm -f bin/ppb.release50 /usr/bin/cmake -i .
5151.PHONY : edit_cache
52clean_debug:52
53 @echo "Cleaning debug"53# Special rule for the target edit_cache
54 @rm -rf debug54edit_cache/fast: edit_cache
55 @rm -f bin/ppb.debug55.PHONY : edit_cache/fast
5656
57.DEFAULT_GOAL := build57# Special rule for the target rebuild_cache
58rebuild_cache:
59 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
60 /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
61.PHONY : rebuild_cache
62
63# Special rule for the target rebuild_cache
64rebuild_cache/fast: rebuild_cache
65.PHONY : rebuild_cache/fast
66
67# The main all target
68all: cmake_check_build_system
69 $(CMAKE_COMMAND) -E cmake_progress_start /home/stewart/percona-playback/CMakeFiles /home/stewart/percona-playback/CMakeFiles/progress.marks
70 $(MAKE) -f CMakeFiles/Makefile2 all
71 $(CMAKE_COMMAND) -E cmake_progress_start /home/stewart/percona-playback/CMakeFiles 0
72.PHONY : all
73
74# The main clean target
75clean:
76 $(MAKE) -f CMakeFiles/Makefile2 clean
77.PHONY : clean
78
79# The main clean target
80clean/fast: clean
81.PHONY : clean/fast
82
83# Prepare targets for installation.
84preinstall: all
85 $(MAKE) -f CMakeFiles/Makefile2 preinstall
86.PHONY : preinstall
87
88# Prepare targets for installation.
89preinstall/fast:
90 $(MAKE) -f CMakeFiles/Makefile2 preinstall
91.PHONY : preinstall/fast
92
93# clear depends
94depend:
95 $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
96.PHONY : depend
97
98#=============================================================================
99# Target rules for targets named common
100
101# Build rule for target.
102common: cmake_check_build_system
103 $(MAKE) -f CMakeFiles/Makefile2 common
104.PHONY : common
105
106# fast build rule for target.
107common/fast:
108 $(MAKE) -f src/CMakeFiles/common.dir/build.make src/CMakeFiles/common.dir/build
109.PHONY : common/fast
110
111#=============================================================================
112# Target rules for targets named ppb
113
114# Build rule for target.
115ppb: cmake_check_build_system
116 $(MAKE) -f CMakeFiles/Makefile2 ppb
117.PHONY : ppb
118
119# fast build rule for target.
120ppb/fast:
121 $(MAKE) -f src/CMakeFiles/ppb.dir/build.make src/CMakeFiles/ppb.dir/build
122.PHONY : ppb/fast
123
124#=============================================================================
125# Target rules for targets named test-bt
126
127# Build rule for target.
128test-bt: cmake_check_build_system
129 $(MAKE) -f CMakeFiles/Makefile2 test-bt
130.PHONY : test-bt
131
132# fast build rule for target.
133test-bt/fast:
134 $(MAKE) -f test/CMakeFiles/test-bt.dir/build.make test/CMakeFiles/test-bt.dir/build
135.PHONY : test-bt/fast
136
137#=============================================================================
138# Target rules for targets named introspection_complex
139
140# Build rule for target.
141introspection_complex: cmake_check_build_system
142 $(MAKE) -f CMakeFiles/Makefile2 introspection_complex
143.PHONY : introspection_complex
144
145# fast build rule for target.
146introspection_complex/fast:
147 $(MAKE) -f test/unit/CMakeFiles/introspection_complex.dir/build.make test/unit/CMakeFiles/introspection_complex.dir/build
148.PHONY : introspection_complex/fast
149
150#=============================================================================
151# Target rules for targets named introspection_integral
152
153# Build rule for target.
154introspection_integral: cmake_check_build_system
155 $(MAKE) -f CMakeFiles/Makefile2 introspection_integral
156.PHONY : introspection_integral
157
158# fast build rule for target.
159introspection_integral/fast:
160 $(MAKE) -f test/unit/CMakeFiles/introspection_integral.dir/build.make test/unit/CMakeFiles/introspection_integral.dir/build
161.PHONY : introspection_integral/fast
162
163#=============================================================================
164# Target rules for targets named queue
165
166# Build rule for target.
167queue: cmake_check_build_system
168 $(MAKE) -f CMakeFiles/Makefile2 queue
169.PHONY : queue
170
171# fast build rule for target.
172queue/fast:
173 $(MAKE) -f test/unit/CMakeFiles/queue.dir/build.make test/unit/CMakeFiles/queue.dir/build
174.PHONY : queue/fast
175
176#=============================================================================
177# Target rules for targets named file_reader
178
179# Build rule for target.
180file_reader: cmake_check_build_system
181 $(MAKE) -f CMakeFiles/Makefile2 file_reader
182.PHONY : file_reader
183
184# fast build rule for target.
185file_reader/fast:
186 $(MAKE) -f test/reader/CMakeFiles/file_reader.dir/build.make test/reader/CMakeFiles/file_reader.dir/build
187.PHONY : file_reader/fast
188
189#=============================================================================
190# Target rules for targets named socket_reader
191
192# Build rule for target.
193socket_reader: cmake_check_build_system
194 $(MAKE) -f CMakeFiles/Makefile2 socket_reader
195.PHONY : socket_reader
196
197# fast build rule for target.
198socket_reader/fast:
199 $(MAKE) -f test/reader/CMakeFiles/socket_reader.dir/build.make test/reader/CMakeFiles/socket_reader.dir/build
200.PHONY : socket_reader/fast
201
202#=============================================================================
203# Target rules for targets named stdin
204
205# Build rule for target.
206stdin: cmake_check_build_system
207 $(MAKE) -f CMakeFiles/Makefile2 stdin
208.PHONY : stdin
209
210# fast build rule for target.
211stdin/fast:
212 $(MAKE) -f test/reader/CMakeFiles/stdin.dir/build.make test/reader/CMakeFiles/stdin.dir/build
213.PHONY : stdin/fast
214
215#=============================================================================
216# Target rules for targets named add_last
217
218# Build rule for target.
219add_last: cmake_check_build_system
220 $(MAKE) -f CMakeFiles/Makefile2 add_last
221.PHONY : add_last
222
223# fast build rule for target.
224add_last/fast:
225 $(MAKE) -f test/string/CMakeFiles/add_last.dir/build.make test/string/CMakeFiles/add_last.dir/build
226.PHONY : add_last/fast
227
228#=============================================================================
229# Target rules for targets named end_of_line
230
231# Build rule for target.
232end_of_line: cmake_check_build_system
233 $(MAKE) -f CMakeFiles/Makefile2 end_of_line
234.PHONY : end_of_line
235
236# fast build rule for target.
237end_of_line/fast:
238 $(MAKE) -f test/string/CMakeFiles/end_of_line.dir/build.make test/string/CMakeFiles/end_of_line.dir/build
239.PHONY : end_of_line/fast
240
241#=============================================================================
242# Target rules for targets named query_parse
243
244# Build rule for target.
245query_parse: cmake_check_build_system
246 $(MAKE) -f CMakeFiles/Makefile2 query_parse
247.PHONY : query_parse
248
249# fast build rule for target.
250query_parse/fast:
251 $(MAKE) -f test/string/CMakeFiles/query_parse.dir/build.make test/string/CMakeFiles/query_parse.dir/build
252.PHONY : query_parse/fast
253
254#=============================================================================
255# Target rules for targets named remove_first
256
257# Build rule for target.
258remove_first: cmake_check_build_system
259 $(MAKE) -f CMakeFiles/Makefile2 remove_first
260.PHONY : remove_first
261
262# fast build rule for target.
263remove_first/fast:
264 $(MAKE) -f test/string/CMakeFiles/remove_first.dir/build.make test/string/CMakeFiles/remove_first.dir/build
265.PHONY : remove_first/fast
266
267#=============================================================================
268# Target rules for targets named trace
269
270# Build rule for target.
271trace: cmake_check_build_system
272 $(MAKE) -f CMakeFiles/Makefile2 trace
273.PHONY : trace
274
275# fast build rule for target.
276trace/fast:
277 $(MAKE) -f test/parser/CMakeFiles/trace.dir/build.make test/parser/CMakeFiles/trace.dir/build
278.PHONY : trace/fast
279
280#=============================================================================
281# Target rules for targets named connect_by_network
282
283# Build rule for target.
284connect_by_network: cmake_check_build_system
285 $(MAKE) -f CMakeFiles/Makefile2 connect_by_network
286.PHONY : connect_by_network
287
288# fast build rule for target.
289connect_by_network/fast:
290 $(MAKE) -f test/mysql_client/CMakeFiles/connect_by_network.dir/build.make test/mysql_client/CMakeFiles/connect_by_network.dir/build
291.PHONY : connect_by_network/fast
292
293#=============================================================================
294# Target rules for targets named connect_by_network_failed
295
296# Build rule for target.
297connect_by_network_failed: cmake_check_build_system
298 $(MAKE) -f CMakeFiles/Makefile2 connect_by_network_failed
299.PHONY : connect_by_network_failed
300
301# fast build rule for target.
302connect_by_network_failed/fast:
303 $(MAKE) -f test/mysql_client/CMakeFiles/connect_by_network_failed.dir/build.make test/mysql_client/CMakeFiles/connect_by_network_failed.dir/build
304.PHONY : connect_by_network_failed/fast
305
306#=============================================================================
307# Target rules for targets named connect_by_socket
308
309# Build rule for target.
310connect_by_socket: cmake_check_build_system
311 $(MAKE) -f CMakeFiles/Makefile2 connect_by_socket
312.PHONY : connect_by_socket
313
314# fast build rule for target.
315connect_by_socket/fast:
316 $(MAKE) -f test/mysql_client/CMakeFiles/connect_by_socket.dir/build.make test/mysql_client/CMakeFiles/connect_by_socket.dir/build
317.PHONY : connect_by_socket/fast
318
319#=============================================================================
320# Target rules for targets named connect_by_socket_failed
321
322# Build rule for target.
323connect_by_socket_failed: cmake_check_build_system
324 $(MAKE) -f CMakeFiles/Makefile2 connect_by_socket_failed
325.PHONY : connect_by_socket_failed
326
327# fast build rule for target.
328connect_by_socket_failed/fast:
329 $(MAKE) -f test/mysql_client/CMakeFiles/connect_by_socket_failed.dir/build.make test/mysql_client/CMakeFiles/connect_by_socket_failed.dir/build
330.PHONY : connect_by_socket_failed/fast
331
332#=============================================================================
333# Target rules for targets named create_database
334
335# Build rule for target.
336create_database: cmake_check_build_system
337 $(MAKE) -f CMakeFiles/Makefile2 create_database
338.PHONY : create_database
339
340# fast build rule for target.
341create_database/fast:
342 $(MAKE) -f test/mysql_client/CMakeFiles/create_database.dir/build.make test/mysql_client/CMakeFiles/create_database.dir/build
343.PHONY : create_database/fast
344
345#=============================================================================
346# Target rules for targets named read_query
347
348# Build rule for target.
349read_query: cmake_check_build_system
350 $(MAKE) -f CMakeFiles/Makefile2 read_query
351.PHONY : read_query
352
353# fast build rule for target.
354read_query/fast:
355 $(MAKE) -f test/mysql_client/CMakeFiles/read_query.dir/build.make test/mysql_client/CMakeFiles/read_query.dir/build
356.PHONY : read_query/fast
357
358# Help Target
359help:
360 @echo "The following are some of the valid targets for this Makefile:"
361 @echo "... all (the default if no target is provided)"
362 @echo "... clean"
363 @echo "... depend"
364 @echo "... edit_cache"
365 @echo "... rebuild_cache"
366 @echo "... common"
367 @echo "... ppb"
368 @echo "... test-bt"
369 @echo "... introspection_complex"
370 @echo "... introspection_integral"
371 @echo "... queue"
372 @echo "... file_reader"
373 @echo "... socket_reader"
374 @echo "... stdin"
375 @echo "... add_last"
376 @echo "... end_of_line"
377 @echo "... query_parse"
378 @echo "... remove_first"
379 @echo "... trace"
380 @echo "... connect_by_network"
381 @echo "... connect_by_network_failed"
382 @echo "... connect_by_socket"
383 @echo "... connect_by_socket_failed"
384 @echo "... create_database"
385 @echo "... read_query"
386.PHONY : help
387
388
389
390#=============================================================================
391# Special targets to cleanup operation of make.
392
393# Special rule to run CMake to check the build system integrity.
394# No rule that depends on this can have commands that come from listfiles
395# because they might be regenerated.
396cmake_check_build_system:
397 $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
398.PHONY : cmake_check_build_system
399
58400
=== modified file 'src/long_string.cc'
--- src/long_string.cc 2011-06-23 06:11:17 +0000
+++ src/long_string.cc 2011-07-11 07:26:03 +0000
@@ -353,7 +353,6 @@
353 if (m_null)353 if (m_null)
354 {354 {
355 ASSERT(false && "Impossible call method length when Nullable_String is null");355 ASSERT(false && "Impossible call method length when Nullable_String is null");
356 std::cout << *reinterpret_cast<int*>(0);
357 throw String_Null_Error("length");356 throw String_Null_Error("length");
358 }357 }
359 else358 else
@@ -364,7 +363,6 @@
364 if (m_null)363 if (m_null)
365 {364 {
366 ASSERT(false && "Impossible call method length when Nullable_String is null");365 ASSERT(false && "Impossible call method length when Nullable_String is null");
367 std::cout << *reinterpret_cast<int*>(0);
368 throw String_Null_Error("length");366 throw String_Null_Error("length");
369 }367 }
370 else368 else

Subscribers

People subscribed via source and target branches