BUG! in get-url and file://

Started by newdep, November 25, 2008, 12:36:38 PM

Previous topic - Next topic

newdep

This is a beauty Lutz ..   ...dont see these much ;-)

(linux slackware 12.1 -- newlisp 9.9.95)



Do as regular user a get-url on a file you dont have access on

or a file that does not exist in a directory you dont have access in..



Looks like this happens in directory's where i dont have "write" access in..







-> (get-url "file:///root/.profile")



*** glibc detected *** newlisp: free(): invalid pointer: 0xb7ebeb00 ***

======= Backtrace: =========

/lib/libc.so.6[0xb7de28c4]

/lib/libc.so.6(cfree+0x90)[0xb7de6370]

newlisp[0x806de87]

newlisp[0x806e5b5]

newlisp[0x804e821]

newlisp[0x8053e9c]

newlisp[0x8054616]

newlisp[0x8054e22]

/lib/libc.so.6(__libc_start_main+0xe0)[0xb7d8d390]

newlisp[0x804a461]

======= Memory map: ========

08048000-0807c000 r-xp 00000000 16:01 2039988    /usr/bin/newlisp

0807c000-0807f000 rw-p 00033000 16:01 2039988    /usr/bin/newlisp

0807f000-0d736000 rw-p 0807f000 00:00 0          [heap]

b7c00000-b7c21000 rw-p b7c00000 00:00 0

b7c21000-b7d00000 ---p b7c21000 00:00 0

b7d17000-b7d21000 r-xp 00000000 16:01 2039906    /usr/lib/libgcc_s.so.1

b7d21000-b7d22000 rw-p 00009000 16:01 2039906    /usr/lib/libgcc_s.so.1

b7d3f000-b7d75000 r--p 00000000 16:01 2483414    /usr/lib/locale/en_US/LC_CTYPE

b7d75000-b7d77000 rw-p b7d75000 00:00 0

b7d77000-b7ebd000 r-xp 00000000 16:01 1720390    /lib/libc-2.7.so

b7ebd000-b7ebe000 r--p 00146000 16:01 1720390    /lib/libc-2.7.so

b7ebe000-b7ec0000 rw-p 00147000 16:01 1720390    /lib/libc-2.7.so

b7ec0000-b7ec3000 rw-p b7ec0000 00:00 0

b7ec3000-b7eff000 r-xp 00000000 16:01 1720323    /lib/libncurses.so.5.6

b7eff000-b7f02000 rw-p 0003b000 16:01 1720323    /lib/libncurses.so.5.6

b7f02000-b7f2d000 r-xp 00000000 16:01 2039907    /usr/lib/libreadline.so.5.2

b7f2d000-b7f31000 rw-p 0002a000 16:01 2039907    /usr/lib/libreadline.so.5.2

b7f31000-b7f32000 rw-p b7f31000 00:00 0

b7f32000-b7f34000 r-xp 00000000 16:01 1720393    /lib/libdl-2.7.so

b7f34000-b7f36000 rw-p 00001000 16:01 1720393    /lib/libdl-2.7.so

b7f36000-b7f5a000 r-xp 00000000 16:01 1720394    /lib/libm-2.7.so

b7f5a000-b7f5c000 rw-p 00023000 16:01 1720394    /lib/libm-2.7.so

b7f5c000-b7f5d000 rw-p b7f5c000 00:00 0

b7f75000-b7f76000 rw-p b7f75000 00:00 0

b7f76000-b7f77000 r-xp 00000000 16:01 2049069    /usr/lib/gconv/ISO8859-1.so

b7f77000-b7f79000 rw-p 00000000 16:01 2049069    /usr/lib/gconv/ISO8859-1.so

b7f79000-b7f7a000 rw-p b7f79000 00:00 0

b7f7a000-b7f96000 r-xp 00000000 16:01 1720432    /lib/ld-2.7.so

b7f96000-b7f98000 rw-p 0001b000 16:01 1720432    /lib/ld-2.7.so

bfb3f000-bfb54000 rw-p bffeb000 00:00 0          [stack]

ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]

Aborted
-- (define? (Cornflakes))

Lutz

#1
Thanks Norman, this is fixed 9.9.96:


newLISP v.9.9.96 on OSX IPv4 UTF-8, execute 'newlisp -h' for more info.

> (get-url "file:///root/.profile")
"ERR: file operation failed"
>