Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
|
|
We need to add posix_memalign probe because libglib-2.0.so uses it for
its own slab allocator. Missing this memory area would cause LSan false
positive reports.
Change-Id: I36a2cabd334d6255e4b403475f18fc991fe58511
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
|
|
Since we want to send information about leaked chunks to host, we need somehow
extract it from liblsan.so. LSan provides couple of hooks to achieve this:
- __lsan_get_leaked_objects_num: returns the number of leaked objects.
- __lsan_get_leaked_objects_ptr: returns a pointer to array of leaked
objects.
Just use these hooks to extract necessary information. When extraction is
completed, notify the host about this.
Change-Id: I8e779368ab440ab02a9ef0db753621720f27ec61
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
|
|
This commit adds support for LeakSanitizer tool spawning from the SWAP
in order to find leaks in user applications. Main changes are:
- Initialize LSan from da_probe_tizen.so constructor.
- Add and use LSan hooks if liblsan.so was successfully loadeded.
- Make evas_object_show probe nonblocking (0 -> 2). This prevents
memory corruptions when Glibc's free tries to free LSan's malloc.
- Introduce new FL_LSAN_ENABLED flag. It activates
pthread_create/pthread_join probes and works together with
FL_MEMORY_ALLOC_ALWAYS_PROBING feature.
- Call try_do_leak_check before application termination.
Change-Id: Ia81f70f666823466888d771054da228772456a62
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
|
|
- Add LSan sources.
- Add "lsan" target to Makefile.
- Add swap-probe-lsan rpm package.
Change-Id: I1ec597755ca5c0f4b0da43c0140fbd6165f27da1
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
|
|
rebuilds.
- PROBLEM
We use OBS to build packages in Tizen.
There is a mechanism not to rebuild when the result binary is the same.
For example, there is a dependency graph: A->B->C.
If A is modified, B would be built.
If the result RPM of B is not changed, OBS does not trigger a build of C.
To effectively use this mechanism, each packages make sure that
the result binary should be the same if the input source is the same.
There is a reason we found is that the file list given by
python(os.walk(), os.listdir()), widely used executable(find),
and system call(readdir()) is unordered.
In this case, different OBS workers can make different results
because of the file list in different order.
The same thing happens in swap-probe.
This package uses os.walk(os.path.dirname(path_mask))
in __get_libs_in_dir_by_mask() in scripts/gen_headers.py.
This makes a list libs_in_dir_tmp which is unordered.
- SOLUTION
Therefore, I suggest to sort this list libs_in_dir_tmp using sorted().
I tested this in my test OBS server, and I found that
the result RPMs are the same after this patch.
Change-Id: I78f2df2540b19d6665c0b3d6d6d3d41607e0f90f
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
|
|
Change-Id: I312651d8b372559c81a9bf93b1a7f959032ef47f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
|
|
When parsing elf binary without any symbols previously
null pointer dereference occured.
Change-Id: I67316a8e8e9f4d4d912c518f942468974003453f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
|
|
Change-Id: Ib17155e05390ee3faa248c488b6c57d2333ddb8b
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
|
|
- Use parser library directly from python
- Preprocess library list to remove not libs
- Use more faster commands
- Added x86 library (binary) for using with python-accel
Change-Id: I94202468ae2d5009885b61a8302fcde71dee3e5d
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
Change-Id: Ib1a96b98e0a4f0189000e7fc59082c85d09020d3
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
|
|
Change-Id: I1de06928a013db311220617141654b4384831fa1
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
|
|
use tbm buffer for image instead shared memory
Change-Id: I60afc17c92adf39a8e6ef933d43e0b99a425ae93
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
|
|
Change-Id: I739c832ff10a45c750bf9382bb0664cf6d74d55f
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
|
|
Change-Id: I4cf9c53deec67c8dab35409d9d6c7ae8ce87eb71
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
|
|
Change-Id: Iccbfcb78c262cdbaee07dcece5e8c56977ab85a5
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
Change-Id: I2c124cf5de324e213dd2f97c64ac4e4d4c61b4ac
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
|
|
We take screenshot using Wayland API,
for orientation events we use Tizen sensors API
Change-Id: Ib80b322d61d41e4f952d0d0ece513ed30e4898d2
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
|
|
Change-Id: Ib4cee57f1ac18ffd2879d8f7f9abd3a34c7f0d22
|
|
Change-Id: I795b61c520063b2adb883a9daae6a4e12d96d41d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
Change-Id: I871eae18a09275cccc3e0e62c12f7f7abebe628c
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
|
|
Change-Id: Ib141bbe4b992c38ea6b4933068a344b92431bf0b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
|
|
Change-Id: I574304fd4d1a98683a16bd6df3db5dbf71d3cb57
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
|
|
Removed:
- struct probeInfo and its interface macros;
- getCurrentTime();
- enum MonitorType;
- enum BlockLocation;
- postBlockEnd() (empty);
- gProbeDepth (unused);
- __appendTypeLog();
- getBacktraceString();
- some commented code;
- dautil.h (contains debug that is useless);
setProbePoint() replaced with inc_current_event_index(),
because it was the only usage of this function.
Change-Id: I08efc7a84a759d1585b20a8e907a851cb764e1ff
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
|
|
Removed because it is never used now:
- getting app map address;
- backtraces;
- screen capture initialization;
- symbol hash table;
- ui object hash table;
- object hash table;
- detector hash table;
- map list (used for filtering callers);
- app start time storing;
- pack uicontrol and pack scene;
- handling APP_MSG_MAPS_INST_LIST message.
Change-Id: Ie93c1ea717e6b9bf0fad6fe362264a46bdd234a0
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
|
|
Change-Id: I795b61c520063b2adb883a9daae6a4e12d96d41d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
Change-Id: I643b8b3bca9057dd640394c3f89ac259ebd6d1da
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
|
|
Change-Id: Ibce8e500c5172ae76aa94858ef2104c5d1775c5c
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
|
|
Add checking for length of device path
Change-Id: Ia1e9faeec5beee1de5db826f6f865ca5d61f878c
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
|
|
Change-Id: I83a7c84e99e83a0c2760c74adeaad5f3f54f1257
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
|
|
Remove symbols dependency
Change-Id: Ie036049c661a769954971bcfbf77f2c671a3373e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
|
|
Conflicts:
probe_socket/libdasocket.c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Change-Id: I21ecf3c00ea118e027e239884647cab7319309b6
|
|
Change-Id: I7018b1c62d23b615eb7012a7d840e3651f2e337a
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
Change-Id: I07d8d84dfe5e4b4445d6a71f120e6b0f48a26cf7
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
change explicit mesa dependency.
Change-Id: I0cf206b982a4553be336b84c63eaf56ddfea6a17
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
|
|
-----------------------------------------------------
| WGID | Type | File |
|---------------------------------------------------|
| 25081 | STATIC_OVERFLOW.SCANF | damaps.c |
| 25089 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25090 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25091 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25092 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25093 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25826 | BAD_SIZEOF | libdasocket.c |
| 26075 | BAD_SIZEOF | libdasocket.c |
| 27349 | OVERFLOW_UNDER_CHECK | da_chart.c |
| 27350 | OVERFLOW_UNDER_CHECK | da_chart.c |
-----------------------------------------------------
Change-Id: I0a807506ac5b1cbce6a137c5a11b612de9ddc0a2
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
WGID : 619584
Checker: SIGNED_TO_BIGGER_UNSIGNED
File:
/home/abuild/rpmbuild/BUILD/swap-probe-total_3.0/probe_socket/libdasocket.c
Line: 242
WGID : 619587
Checker: SIGNED_TO_BIGGER_UNSIGNED
File:
/home/abuild/rpmbuild/BUILD/swap-probe-total_3.0/probe_socket/libdasocket.c
Line: 344
WGID : 619586
Checker: SIGNED_TO_BIGGER_UNSIGNED
File:
/home/abuild/rpmbuild/BUILD/swap-probe-total_3.0/probe_socket/libdasocket.c
Line: 307
WGID : 619585
Checker: SIGNED_TO_BIGGER_UNSIGNED
File:
/home/abuild/rpmbuild/BUILD/swap-probe-total_3.0/probe_socket/libdasocket.c
Line: 272
Change-Id: I9b1cc48d088d3cee46bda33c95c8fa6ffba65b0e
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
|
|
Change-Id: I2684d99920e5ba8b677e78396633b8b5bf8eb135
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
Change-Id: Ib9bc50806f24f18b0dc37b079ff81cf3d6e10bb4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
|
|
Use flag MSG_NOSIGNAL in send() to supress signal SIGPIPE
when send message to socket, closed by other side
Change-Id: I0c4bfe90ded211f55fc5eebf5c4e4223d9d47a9f
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
|
|
Add message APP_MSG_STOP_WITHOUT_KILL to stop application
without exit
Change-Id: I0068e47f1238d21c46445260a1990ce483cd0ffc
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
|
|
Change-Id: I80d1d24f38386569eb56545fff845a34b7d671a5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
|
|
unsupported feature:
- screenshots
Change-Id: I717286f21e6db998e0a2ff181cbc56de81670bf6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
|
|
--------------------------------------------------------------------
| CID | Type | File | Function |
|------------------------------------------------------------------|
|41289 | check ret value | dacapture.c | captureScreen |
|41288 | check ret value | libdaprobe.c | application_exit |
|------------------------------------------------------------------|
Change-Id: I60ee49ed58521949a174ced44256142976c6068a
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
Previously it less than probes count
Change-Id: Ic56eb155c3b5301329f464120a1897cf9da41728
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
|
|
Change-Id: I1de3ae44ba5a0f7c71e9d09dc8c61850530370c9
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
Added C aliases for C++ functions
Change-Id: Ib456faef2d66ac898806eedb034dd1ae89db39e0
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
--------------------------------------------------------------------
| CID | Type | File | Function |
|------------------------------------------------------------------|
|486087 | out of bounds | btsym.c | da_backtrace_symbols |
|486088 | buffer size wrn | btsym.c | da_backtrace_symbols |
|------------------------------------------------------------------|
Change-Id: If32fa95a69101dcc1fc05b6f4d07cacdf15d7f9d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
-----------------------------------------------------------------------|
| CID | Type | File | Function |
|-----------------------------------------------------------------------|
|452748 |DC.SECURE_CODING_STRCAT | btsym.c | da_backtrace_symbol|
|452682 |DC.SECURE_CODING_STRCPY | btsym.c | da_backtrace_symbol|
|452674 |DC.SECURE_CODING_BACKTRACE | libdaprobe.c | getBacktraceString |
|452625 |DC.SECURE_CODING_SPRINTF | btsym.c | |
|452589 |DC.SECURE_CODING_SPRINTF | btsym.c | |
|452571 |DC.SECURE_CODING_USLEEP | damaps.c | print_list_sorted |
|-----------------------------------------------------------------------|
Change-Id: Ib27b74d14a011b4e9b8d4f41b0d7e9f7ae3810f8
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|
|
-----------------------------------------------------------
| CID | Type | File | Function |
|---------------------------------------------------------|
| 41294 | resource leak | lib_parse_elf.c | get_plt_addrs |
|---------------------------------------------------------|
Change-Id: I2092a963b75ba5280cef6ac801d41c1e34866454
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
|