Strange Segment Fault
Posted: Mon May 30, 2005 3:21 pm
Hi Lutz,
Linux 8.5.10
This file generates very very randomly a Segmentation Fault!
Although the application works fine on my Linux machine somehow
it does crash. Its odd and im unable to detect where its
located. Though I think it has to do with 'write-file !
http://www.nodep.nl/downloads/newlisp/falert.lsp (Forum Alert)
--> a test...
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Mon May 30 17:26:48 2005 -> No new Newlisp messages found!
newdep@zeep:~/prog/nl/progs$ falert.lsp
Mon May 30 17:26:58 2005 -> No new Newlisp messages found!
Perhaps you have a clue?
Regards, Norman.
PS --> this is what Strace provides me -->
send(5, "\351\232\1\0\0\1\0\0\0\0\0\0\3www\3alh\3net\0\0\1\0\1", 29, 0) = 29
gettimeofday({1117478385, 397529}, NULL) = 0
poll([{fd=5, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(5, FIONREAD, [48]) = 0
recvfrom(5, "\351\232\201\200\0\1\0\1\0\0\0\0\3www\3alh\3net\0\0\1\0"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("jolly.good.ip.addr.")}, [16]) = 48
close(5) = 0
connect(4, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("66.33.199.75")}, 16) = 0
fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(4, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
_llseek(4, 0, 0xbfffc6d0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(4, "GET /newlisp/phpbb/ HTTP/1.1\r\nHo"..., 97) = 97
read(4, "HTTP/1.1 200 OK\r\nDate: Mon, 30 M"..., 4096) = 1390
brk(0) = 0x8091000
brk(0x8092000) = 0x8092000
read(4, "lspacing=\"0\" cellpadding=\"0\" bor"..., 4096) = 1390
read(4, "\t\t<td class=\"back_3_1\"> </t"..., 4096) = 1390
brk(0) = 0x8092000
brk(0x8094000) = 0x8094000
read(4, "cellpadding=\"0\" cellspacing=\"0\" "..., 4096) = 1390
read(4, "lpadding=\"3\" cellspacing=\"0\" bor"..., 4096) = 1390
read(4, "00%\" cellpadding=\"2\" cellspacing"..., 4096) = 1390
read(4, "ab60a3c2625c50d8ffd17518034bee#4"..., 4096) = 1390
read(4, " align=\"center\" valign=\"middle\" "..., 4096) = 1390
read(4, "><div class=\"forumlink\"><a href="..., 4096) = 1390
read(4, "0d8ffd17518034bee\" class=\"gensma"..., 4096) = 153
read(4, "fad\r\n\t</tr>\n</table>\n<br />\n\n<ta"..., 4096) = 1390
brk(0) = 0x8094000
brk(0x8098000) = 0x8098000
read(4, "pan> ]<br />Most users ever onli"..., 4096) = 1390
read(4, "mplates/Avalanche/images/folder_"..., 4096) = 1390
read(4, "r /></span>\n\r\n254\r\n\t\t\t</div>\n\t\t\t"..., 4096) = 622
close(4) = 0
munmap(0x40016000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Linux 8.5.10
This file generates very very randomly a Segmentation Fault!
Although the application works fine on my Linux machine somehow
it does crash. Its odd and im unable to detect where its
located. Though I think it has to do with 'write-file !
http://www.nodep.nl/downloads/newlisp/falert.lsp (Forum Alert)
--> a test...
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Segmentation fault
newdep@zeep:~/prog/nl/progs$ falert.lsp
Mon May 30 17:26:48 2005 -> No new Newlisp messages found!
newdep@zeep:~/prog/nl/progs$ falert.lsp
Mon May 30 17:26:58 2005 -> No new Newlisp messages found!
Perhaps you have a clue?
Regards, Norman.
PS --> this is what Strace provides me -->
send(5, "\351\232\1\0\0\1\0\0\0\0\0\0\3www\3alh\3net\0\0\1\0\1", 29, 0) = 29
gettimeofday({1117478385, 397529}, NULL) = 0
poll([{fd=5, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(5, FIONREAD, [48]) = 0
recvfrom(5, "\351\232\201\200\0\1\0\1\0\0\0\0\3www\3alh\3net\0\0\1\0"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("jolly.good.ip.addr.")}, [16]) = 48
close(5) = 0
connect(4, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("66.33.199.75")}, 16) = 0
fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(4, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
_llseek(4, 0, 0xbfffc6d0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(4, "GET /newlisp/phpbb/ HTTP/1.1\r\nHo"..., 97) = 97
read(4, "HTTP/1.1 200 OK\r\nDate: Mon, 30 M"..., 4096) = 1390
brk(0) = 0x8091000
brk(0x8092000) = 0x8092000
read(4, "lspacing=\"0\" cellpadding=\"0\" bor"..., 4096) = 1390
read(4, "\t\t<td class=\"back_3_1\"> </t"..., 4096) = 1390
brk(0) = 0x8092000
brk(0x8094000) = 0x8094000
read(4, "cellpadding=\"0\" cellspacing=\"0\" "..., 4096) = 1390
read(4, "lpadding=\"3\" cellspacing=\"0\" bor"..., 4096) = 1390
read(4, "00%\" cellpadding=\"2\" cellspacing"..., 4096) = 1390
read(4, "ab60a3c2625c50d8ffd17518034bee#4"..., 4096) = 1390
read(4, " align=\"center\" valign=\"middle\" "..., 4096) = 1390
read(4, "><div class=\"forumlink\"><a href="..., 4096) = 1390
read(4, "0d8ffd17518034bee\" class=\"gensma"..., 4096) = 153
read(4, "fad\r\n\t</tr>\n</table>\n<br />\n\n<ta"..., 4096) = 1390
brk(0) = 0x8094000
brk(0x8098000) = 0x8098000
read(4, "pan> ]<br />Most users ever onli"..., 4096) = 1390
read(4, "mplates/Avalanche/images/folder_"..., 4096) = 1390
read(4, "r /></span>\n\r\n254\r\n\t\t\t</div>\n\t\t\t"..., 4096) = 622
close(4) = 0
munmap(0x40016000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++