[nos-bbs] JNOS 2.0e Segfaults on arm-linux, but only after some seconds
Torsten Harenberg
harenberg at physik.uni-wuppertal.de
Wed Sep 6 11:58:15 EDT 2006
Dear list,
after some tweaking (uClibc problems with longjumps, got some help vom
uClibc authors) and builing a new ncurses from scratch, I successfully
compiled JNOS 2.0e (Linux source) on a Zaurus C-3200 (arm-linux).
However, after starting the binary end entering any meaningful command
(I tried "help"), the binary got a SIGSEGV. Here the gdb output:
jnos> help
Program received signal SIGSEGV, Segmentation fault.
0x020051c0 in morecmd (argc=1, argv=0x1, p=0x20d4a08) at main.c:1518
1518 if((sp = newsession(argv[1],MORE,0)) == NULLSESSION){
(gdb) li
1513 int usesession = 0;
1514
1515 /* Use a session if this comes from console - WG7J*/
1516 if(Curproc->input == Command->input) {
1517 usesession = 1;
1518 if((sp = newsession(argv[1],MORE,0)) == NULLSESSION){
1519 return 1;
1520 }
1521 /* Put tty into raw mode so single-char responses will
work */
1522 sp->ttystate.echo = sp->ttystate.edit = 0;
(gdb) bt
#0 0x020051c0 in morecmd (argc=1, argv=0x1, p=0x20d4a08) at main.c:1518
#1 0x4009fd50 in siglongjmp () from /lib/libc.so.6
#2 0x0200515c in morecmd (argc=34425352, argv=0x1, p=0x1) at main.c:1508
(gdb) print argc
$1 = 1
(gdb) print argv
$2 = (char **) 0x1
(gdb)
However, THIS ONLY HAPPENS AFTER A COUPLE OF SECONDS (approx. 5) after
starting up. Typing earlier just gives the expected error message, that
no help files are installed.
Hope anybody with a deeper knowledge of how JNOS is working inside may
comment and give any hints.
73s
Torsten DL1THM
--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<> <>
<> Torsten Harenberg harenberg at physik.uni-wuppertal.de <>
<> Bergische Universitaet <>
<> FB C - Physik Tel.: +49 (0)202 439-3521 <>
<> Gaussstr. 20 Fax : +49 (0)202 439-2811 <>
<> 42097 Wuppertal <>
<> <>
<><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><>
More information about the nos-bbs
mailing list