Mailinglist Archive: opensuse-bugs (6588 mails)

< Previous Next >
[Bug 1143192] open-iscsi-2.0.877-55.1.aarch64: segfault at startup
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 31 Jul 2019 15:42:24 +0000
  • Message-id: <bug-1143192-21960-Y0rJrrzWp0@http.bugzilla.suse.com/>
http://bugzilla.suse.com/show_bug.cgi?id=1143192
http://bugzilla.suse.com/show_bug.cgi?id=1143192#c6

Lee Duncan <lduncan@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|CONFIRMED |IN_PROGRESS

--- Comment #6 from Lee Duncan <lduncan@xxxxxxxx> ---
(In reply to Matwey Kornilov from comment #5)
The backtrace is not quite informative for me:

(gdb) bt
#0 0x0000aaaae59cb04c in memset (__len=<optimized out>, __ch=<optimized
out>, __dest=<optimized out>)
at ../include/list.h:29
#1 main (argc=4, argv=0xffffc96b2e28) at iscsiadm.c:3557

I use iscsi LIO target on x86_64 server running openSUSE Leap 15.1.

Also, open-iscsi-2.0.876-lp150.9.13.2.aarch64 works good at other aarch64
system running Leap 15.0 with the same x86_64 target.

Unfortunately, `iscsiadm -m node --op show' crashed without any output.

The line that seems to be failing is:

...
3531 int timeout = ISCSID_REQ_TIMEOUT;
3532 struct sigaction sa_old;
3533 struct sigaction sa_new;
...
3552
3553 INIT_LIST_HEAD(&params);
3554 INIT_LIST_HEAD(&ifaces);
3555 /* do not allow ctrl-c for now... */
3556 memset(&sa_old, 0, sizeof(struct sigaction));
3557 memset(&sa_new, 0, sizeof(struct sigaction)); <<== FAIL?
3558
...

The stack trace says the memset() is failing, which seems impossible, unless it
some sort of strange (new?) alignment error. But the stack trace output also
mentions list.h:29, which has this code:

...
18 struct list_head {
19 struct list_head *next, *prev;
20 };
21
22 #define LIST_HEAD_INIT(name) { &(name), &(name) }
23
...
27 static inline void INIT_LIST_HEAD(struct list_head *list)
28 {
29 list->next = list; <<=== FAIL?
30 list->prev = list;
31 }

This spot also does not make sense, unless (again) related to some sort of
alignment error.

I will build a test set of RPMs for you, with full debugging enabled and
perhaps a few debug statements.

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >