<font size=2 face="sans-serif">Sorry if it is a duplicate, I sent through
my linux vnet id but there is no mail sent at all. So sending through lotus
notes id.</font><br><br><br><br><font size=3 face="Helvetica">Did a little hack to file </font><font size=3 color=#2f2f2f face="HelveticaNeue">libc/string/strdup.c</font><br><br><font size=3 color=#2f2f2f face="HelveticaNeue">line # 16:</font><br><font size=3 color=#2f2f2f face="HelveticaNeue">char *strdup(const
char *src) changed to char *(strdup)(const char *src)</font><br><br><br><font size=3 face="Helvetica">And now with ‘make check’ seeing the
following </font><br><br><font size=3 face="Helvetica"> [
RUN-TEST ] core/test/run-mem_region_reservations</font><br><font size=3 face="Helvetica">run-mem_region_reservations: core/test/../mem_region.c:472:
void mem_free(struct mem_region *, void *, const char *): Assertion `mem
< region_start(region) + region->len' failed.</font><br><font size=3 face="Helvetica">./test/run.sh: line 7: 20971 Aborted
(core dumped) $*
2>&1 > $t</font><br><font size=3 face="Helvetica">MEM: parsing reserved memory from reserved-names/-ranges
properties</font><br><font size=3 face="Helvetica">Releasing unused memory:</font><br><font size=3 face="Helvetica"> ibm,firmware-heap: 1192/4096
used</font><br><font size=3 face="Helvetica"> ibm,firmware-allocs-memory@5204170:
0/1048576 used</font><br><font size=3 face="Helvetica">Reserved regions:</font><br><font size=3 face="Helvetica"> 0x000000004000..000000004fff :
test.3</font><br><font size=3 face="Helvetica">/home/rnsastry/skiboot/core/test/Makefile.check:49:
recipe for target 'core/test/run-mem_region_reservations-check' failed</font><br><font size=3 face="Helvetica">make: *** [core/test/run-mem_region_reservations-check]
Error 134</font><br><br><font size=3 face="Helvetica">The above created a file named vgcore.20971
(13MB)</font><br><br><font size=3 face="Helvetica">Tested the above on today’s git (11th
Nov 2016 5:32 PM IST)</font><br><br><font size=3 face="Helvetica">gdb shows …</font><br><br><font size=3 face="Helvetica">rnsastry@rnsastry-VirtualBox:~/skiboot$
gdb core/test/run-mem_region_reservations vgcore.20971</font><br><font size=3 face="Helvetica">GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04)
7.11.1</font><br><font size=3 face="Helvetica">Copyright (C) 2016 Free Software Foundation,
Inc.</font><br><font size=3 face="Helvetica">License GPLv3+: GNU GPL version 3 or
later <</font><a href=http://gnu.org/licenses/gpl.html><font size=3 color=#0041c2 face="Helvetica"><u>http://gnu.org/licenses/gpl.html</u></font></a><font size=3 face="Helvetica">></font><br><font size=3 face="Helvetica">This is free software: you are free to
change and redistribute it.</font><br><font size=3 face="Helvetica">There is NO WARRANTY, to the extent permitted
by law. Type "show copying"</font><br><font size=3 face="Helvetica">and "show warranty" for details.</font><br><font size=3 face="Helvetica">This GDB was configured as "x86_64-linux-gnu".</font><br><font size=3 face="Helvetica">Type "show configuration" for
configuration details.</font><br><font size=3 face="Helvetica">For bug reporting instructions, please
see:</font><br><font size=3 face="Helvetica"><</font><a href=http://www.gnu.org/software/gdb/bugs/><font size=3 color=#0041c2 face="Helvetica"><u>http://www.gnu.org/software/gdb/bugs/</u></font></a><font size=3 face="Helvetica">>.</font><br><font size=3 face="Helvetica">Find the GDB manual and other documentation
resources online at:</font><br><font size=3 face="Helvetica"><</font><a href=http://www.gnu.org/software/gdb/documentation/><font size=3 color=#0041c2 face="Helvetica"><u>http://www.gnu.org/software/gdb/documentation/</u></font></a><font size=3 face="Helvetica">>.</font><br><font size=3 face="Helvetica">For help, type "help".</font><br><font size=3 face="Helvetica">Type "apropos word" to search
for commands related to "word"...</font><br><font size=3 face="Helvetica">Reading symbols from core/test/run-mem_region_reservations...done.</font><br><br><font size=3 face="Helvetica">warning: core file may not match specified
executable file.</font><br><font size=3 face="Helvetica">[New LWP 20971]</font><br><font size=3 face="Helvetica">Core was generated by `'.</font><br><font size=3 face="Helvetica">Program terminated with signal SIGABRT,
Aborted.</font><br><font size=3 face="Helvetica">#0 0x0000000004e6f428 in __GI_raise
(sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54</font><br><font size=3 face="Helvetica">54 ../sysdeps/unix/sysv/linux/raise.c:
No such file or directory.</font><br><font size=3 face="Helvetica">(gdb) bt</font><br><font size=3 face="Helvetica">#0 0x0000000004e6f428 in __GI_raise
(sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54</font><br><font size=3 face="Helvetica">#1 0x0000000004e7102a in __GI_abort
() at abort.c:89</font><br><font size=3 face="Helvetica">#2 0x0000000004e67bd7 in __assert_fail_base
(fmt=<optimized out>, assertion=assertion@entry=0x4131bb "mem
< region_start(region) + region->len",</font><br><font size=3 face="Helvetica"> file=file@entry=0x4130d2
"core/test/../mem_region.c", line=line@entry=472,</font><br><font size=3 face="Helvetica"> function=function@entry=0x413157
"void mem_free(struct mem_region *, void *, const char *)") at
assert.c:92</font><br><font size=3 face="Helvetica">#3 0x0000000004e67c82 in __GI___assert_fail
(assertion=0x4131bb "mem < region_start(region) + region->len",
file=0x4130d2 "core/test/../mem_region.c", line=472,</font><br><font size=3 face="Helvetica"> function=0x413157 "void
mem_free(struct mem_region *, void *, const char *)") at assert.c:101</font><br><font size=3 face="Helvetica">#4 0x0000000000402073 in mem_free
(region=<optimized out>, mem=<optimized out>, location=0xb4
<error: Cannot access memory at address 0xb4>)</font><br><font size=3 face="Helvetica"> at core/test/../mem_region.c:472</font><br><font size=3 face="Helvetica">#5 0x0000000000408069 in __free
(p=0x5305420, location=<optimized out>) at core/test/../malloc.c:43</font><br><font size=3 face="Helvetica">#6 mem_region_add_dt_reserved_node
(parent=<optimized out>, region=<optimized out>) at core/test/../mem_region.c:1122</font><br><font size=3 face="Helvetica">#7 mem_region_add_dt_reserved ()
at core/test/../mem_region.c:1178</font><br><font size=3 face="Helvetica">#8 0x00000000004118fc in main ()
at core/test/run-mem_region_reservations.c:218</font><br><font size=3 face="Helvetica">(gdb) i r</font><br><font size=3 face="Helvetica">rax
0x0 0</font><br><font size=3 face="Helvetica">rbx
0x4028000 67272704</font><br><font size=3 face="Helvetica">rcx
0x4e6f428 82244648</font><br><font size=3 face="Helvetica">rdx
0x6 6</font><br><font size=3 face="Helvetica">rsi
0x51eb 20971</font><br><font size=3 face="Helvetica">rdi
0x51eb 20971</font><br><font size=3 face="Helvetica">rbp
0x4131bb 0x4131bb</font><br><font size=3 face="Helvetica">rsp
0xfff000658 0xfff000658</font><br><font size=3 face="Helvetica">r8
0xb4 180</font><br><font size=3 face="Helvetica">r9
0x0 0</font><br><font size=3 face="Helvetica">r10
0x8 8</font><br><font size=3 face="Helvetica">r11
0x5305730 87054128</font><br><font size=3 face="Helvetica">r12
0x1d8 472</font><br><font size=3 face="Helvetica">r13
0x413157 4272471</font><br><font size=3 face="Helvetica">r14
0x7 7</font><br><font size=3 face="Helvetica">r15
0x5305420 87053344</font><br><font size=3 face="Helvetica">rip
0x4e6f428 0x4e6f428 <__GI_raise+56></font><br><font size=3 face="Helvetica">eflags 0x44
[ PF ZF ]</font><br><font size=3 face="Helvetica">cs
0x0 0</font><br><font size=3 face="Helvetica">ss
0x0 0</font><br><font size=3 face="Helvetica">ds
0x0 0</font><br><font size=3 face="Helvetica">es
0x0 0</font><br><font size=3 face="Helvetica">fs
0x0 0</font><br><font size=3 face="Helvetica">gs
0x0 0</font><br><br><br><font size=3 face="Helvetica">please let me know if you need more information.
Thank you.</font><br><br><br><br><br><br><font size=2 face="sans-serif">Thank you very much.<br><br>Kind Regards,<br>R.Nageswara Sastry, CSTE®,C|EH®,CSTM®<br>Linux Technology Center<br>Phone - +91-80-40255027<br>Internet mail - nasastry@in.ibm.com/rnsastry@linux.vnet.ibm.com<br>Develop your initiative. Do something no one else has done - Thomson J
Watson, Sr.<br>**Think Green - Please print responsibly**</font><BR>