Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

swig python: [] throws exception #1

Closed
markus2330 opened this issue Jun 22, 2014 · 0 comments
Closed

swig python: [] throws exception #1

markus2330 opened this issue Jun 22, 2014 · 0 comments
Assignees

Comments

@markus2330
Copy link
Contributor

[] throws an exception when a key does not exist:

    Traceback (most recent call last):
      File "example_kdb.py", line 10, in <module>
        key = ks["user/MyApp/mykey"]
      File "kdb.py", line 1172, in __getitem__
        raise KeyError(str(key))
    KeyError: 'user/MyApp/mykey'

When this is the intended behaviour, then the example should be changed to

    key = ks.lookup("user/MyApp/mykey")

Otherwise, [] should be changed.

manuelm added a commit that referenced this issue Jul 11, 2014
markus2330 pushed a commit that referenced this issue Feb 14, 2015
0003088 added a commit that referenced this issue Mar 14, 2015
Update helptext when hovering over various parts of the UI
@markus2330 markus2330 mentioned this issue Oct 13, 2016
18 tasks
markus2330 pushed a commit that referenced this issue Mar 31, 2017
@tom-wa

==24370==ERROR: AddressSanitizer: heap-use-after-free on address 0x60200000ee30 at pc 0x7fc48fe25bed bp 0x7ffc9dea1ba0 sp 0x7ffc9dea1b78
READ of size 2 at 0x60200000ee30 thread T0
    #0 0x7fc48fe25bec in setlocale (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x33bec)
    #1 0x402de1 in main src/plugins/range/testmod_range.c:181
    #2 0x7fc48e37eb44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
    #3 0x402f03 (bin/testmod_range+0x402f03)

0x60200000ee30 is located 0 bytes inside of 12-byte region [0x60200000ee30,0x60200000ee3c)
freed by thread T0 here:
    #0 0x7fc48fe46527 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x54527)
    #1 0x7fc48e38906e in setlocale (/lib/x86_64-linux-gnu/libc.so.6+0x2c06e)

previously allocated by thread T0 here:
    #0 0x7fc48fe4673f in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5473f)
    #1 0x7fc48e388ae3 (/lib/x86_64-linux-gnu/libc.so.6+0x2bae3)

SUMMARY: AddressSanitizer: heap-use-after-free ??:0 setlocale
Shadow bytes around the buggy address:
  0x0c047fff9d70: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa
  0x0c047fff9d80: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa
  0x0c047fff9d90: fa fa fd fa fa fa fd fa fa fa fd fd fa fa fd fd
  0x0c047fff9da0: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fff9db0: fa fa fd fa fa fa fd fd fa fa fd fa fa fa fd fd
=>0x0c047fff9dc0: fa fa 00 00 fa fa[fd]fd fa fa fd fd fa fa fd fd
  0x0c047fff9dd0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fff9de0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fff9df0: fa fa fd fd fa fa fd fd fa fa 00 04 fa fa fd fa
  0x0c047fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Contiguous container OOB:fc
  ASan internal:           fe
==24370==ABORTING
This was referenced Mar 27, 2018
@markus2330 markus2330 mentioned this issue May 14, 2018
7 tasks
@e1528532 e1528532 mentioned this issue Jun 5, 2018
7 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants