Bug 47125
Summary: | lokkit dies with SIGFPE + typo | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Pekka Pietikäinen <pp> |
Component: | gnome-lokkit | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | rvokal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-07-09 08:39:45 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pekka Pietikäinen
2001-07-03 12:31:53 UTC
What network interfaces do you have configured? (typo fixed in gnome cvs) Two ethernet interfaces, eth0 a eepro100 and eth1 a acenic (eth1 not configured, though) Here's another backtrace, this time with -g for lokkit: Program received signal SIGFPE, Arithmetic exception. 0x40032183 in distSpace (extra=0, items=0, list=0xbffff490) at grid.c:71 71 all = extra / items; (gdb) bt #0 0x40032183 in distSpace (extra=0, items=0, list=0xbffff490) at grid.c:71 #1 0x4003251d in shuffleGrid (grid=0x804f8c8, left=17, top=5, set=1) at grid.c:152 #2 0x40032777 in shuffleGrid (grid=0x804f128, left=0, top=5, set=1)ext screen at grid.c:199 #3 0x40032777 in shuffleGrid (grid=0x8053208, left=0, top=0, set=1) at grid.c:199 #4 0x40032906 in newtGridGetSize (grid=0x8053208, width=0xbffff650, height=0xbffff64c) at grid.c:236 #5 0x40032951 in newtGridWrappedWindow (grid=0x8053208, title=0x804d5a0 "Firewall Configuration - Customize") at grid.c:246 #6 0x0804a3de in runInterface () at newt.c:522 #7 0x0804abbd in main (argc=1, argv=0xbffffa94) at newt.c:671 #8 0x400b85d7 in __libc_start_main (main=0x804a650 <main>, argc=1, ubp_av=0xbffffa94, init=0x8048e98 <_init>, fini=0x804b430 <_fini>, rtld_fini=0x4000c754 <_dl_fini>, stack_end=0xbffffa8c) at ../sysdeps/generic/libc-start.c:129 So there you have it, division by zero in libnewt :) what language, and what terminal size? If you break at newt.c line 338 or so, what's numdevices set to? Umn... 0, and no surprise since I didn't have a ifcfg-eth0 in /etc/sysconfig/network-scripts (I assumed the thing used /proc/net/dev, the gnome version does) Here's a patch that makes things work even if there are no configured interfaces in /etc/sysconfig/network-scripts. --- newt.c.orig Mon Jul 9 08:37:39 2001 +++ newt.c Mon Jul 9 08:37:51 2001 @@ -54,7 +54,10 @@ qsort((void *)ret, num, sizeof(char *), (int (*)(const void *, const void *))strcmp); } - return ret; + if(!num) + return NULL; + else + return ret; } void helpCallback(newtComponent co, void * tag) { Fixed in gnome-lokkit-0.50-0.2; thanks! |